Displaying 1 result from an estimated 1 matches for "data_frame2".
Did you mean:
data_frame
2012 Sep 25
2
Strange data frame behavior
Hello all,
I don't understand a strange behavior in data frame manipulation.
data_frame1 = data.frame(Site = c("S1", "S2", "S3", "S4", "L1", "L2",
"L3", "L4"),
Number = c(1, 3, 5, 2, 1, 1, 2, 1))
data_frame2 = data_frame1 [data_frame1$Site != "S1", ]
dput (data_frame2)
structure(list(Site = structure(c(6L, 7L, 8L, 1L, 2L, 3L, 4L), .Label = c("L1",
"L2", "L3", "L4", "S1", "S2", "S3", "S4"), class = "factor&q...