Compare two vector in R

后端 未结 2 1138
没有蜡笔的小新
没有蜡笔的小新 2021-01-18 20:57

I have two vectors:a = c(1,2,3), b = c(1,2,3)

I want to test whether a is exactly the same as b. I know the resul

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-18 21:46

    In addition to the answer above; you could also consider the package 'compare'.

    library(compare)
    compareEqual(a,b)#TRUE
    

提交回复
热议问题