Just to follow up on Robert's comment,
If you do an ls() you'll see that you've created objects V1, V2 in
your global environment.
A very similar question was discussed last week (I think... it's all a
blur) in the context of using "<-" instead of "=" with named function
arguments.
Michael
On
On Mon, Dec 13, 2010 at 1:09 PM, robert denham wrote:
> in
> test <- data.frame(V1=c(1,2,3), V2=c(4,5,6))
>
> you are using arguments to the data.frame function in the tag=value format.
> From the help:
>
>...: these arguments are of either the form value or tag =
> value. Comp
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
V1c.1..2..3. V2c.4..5..6.
11
3 matches
Mail list logo