Hi All,
Just noticed that R returns results for non-existent name if you have
another variable with the same beginning when you subset with $.
See the code below:
name_0 <- "ID"
name_1 <- "name"
name_2 <- "name1"
v0 <- 1:200
v1 <- c(rep(0,100), rep(1,100))
v2 <- c(rep(0,50), rep(1,150))
df <-
mstring1 <- c("123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890")
mstring2 <- c("123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890")
vec.in
2 matches
Mail list logo