Re: [R] deleting the first two characters in each row of a factorized column

From: Ben Bolker <bbolker_at_gmail.com>
Date: Mon, 28 Mar 2011 14:47:26 +0000

Bodnar Laszlo EB_HU <Laszlo.Bodnar <at> erstebank.hu> writes:

> I have a database and it has a column which looks like this one here:
>
> small_factor <- factor(c("d_variable1","d_variable2","d_variable3"))
> small_factor
>

  small_factor <- factor(gsub("^d_","",as.character(small_factor)))



R-help_at_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. Received on Mon 28 Mar 2011 - 14:54:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 28 Mar 2011 - 15:20:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive