SyntaxFix
Write A Post
Hire A Developer
Questions
x = list(1, 2, 3, 4) x2 = list(1:4) all.equal(x,x2)
is not the same because 1:4 is the same as c(1,2,3,4). If you want them to be the same then:
x = list(c(1,2,3,4)) x2 = list(1:4) all.equal(x,x2)