names(datanamessplit) <- gsub("count.", "", names(data))
On Sun, 2009-01-11 at 18:13 -0800, jimdare wrote:
> Hi,
>
> If I have the following column names:
>
> names(data)
> [1] "count.run" "count.walk" "count.drive"
>
> How do I split these so i get
>
> names(datanamessplit)
> [1] "run"
Hi,
If I have the following column names:
names(data)
[1] "count.run" "count.walk" "count.drive"
How do I split these so i get
names(datanamessplit)
[1] "run" "walk" "drive"
Thanks for your help,
Jim
--
View this message in context:
http://www.nabble.com/Spitting-a-df-Column-Name-t
2 matches
Mail list logo