[R] Spitting a df Column Name
s.blomberg1 at uq.edu.au
Mon Jan 12 03:29:14 CET 2009
names(datanamessplit) <- gsub("count.", "", names(data))
On Sun, 2009-01-11 at 18:13 -0800, jimdare wrote:
> If I have the following column names:
>  "count.run" "count.walk" "count.drive"
> How do I split these so i get
>  "run" "walk" "drive"
> Thanks for your help,
Simon Blomberg, BSc (Hons), PhD, MAppStat.
Lecturer and Consultant Statistician
Faculty of Biological and Chemical Sciences
The University of Queensland
St. Lucia Queensland 4072
Room 320 Goddard Building (8)
T: +61 7 3365 2506
1. I will NOT analyse your data for you.
2. Your deadline is your problem.
The combination of some data and an aching desire for
an answer does not ensure that a reasonable answer can
be extracted from a given body of data. - John Tukey.
More information about the R-help