On 17-Sep-08 05:27:40, Alexy Khrabrov wrote:
> Exactly -- also found creating horizontal vector helps:
>
> > df <- data.frame(matrix(1:5,nrow=1))
> > colnames(df) <- LETTERS[1:5]
> > df
>A B C D E
> 1 1 2 3 4 5
>
> Thanks,
> Alexy
Another (though similar) approach (e.g. if you want to bui
Exactly -- also found creating horizontal vector helps:
> df <- data.frame(matrix(1:5,nrow=1))
> colnames(df) <- LETTERS[1:5]
> df
A B C D E
1 1 2 3 4 5
Thanks,
Alexy
On Sep 17, 2008, at 1:17 AM, Moshe Olshansky wrote:
If df is your data.frame, then
colnames(df) <- c("col1","Col2","COL3")
2 matches
Mail list logo