Pure curiosity but does anyone know why '<-' and '=' generate different
columning headers?

> test <- data.frame(V1=c(1,2,3), V2=c(4,5,6))
> test
  V1 V2
1  1  4
2  2  5
3  3  6

> test <- data.frame(V1<-c(1,2,3), V2<-c(4,5,6))
> test
  V1....c.1..2..3. V2....c.4..5..6.
1                1                4
2                2                5
3                3                6

> names(test)
[1] "V1....c.1..2..3." "V2....c.4..5..6."

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to