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

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

Bodnar Laszlo EB_HU <Laszlo.Bodnar <at>> 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))) mailing list PLEASE do read the posting guide 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 Please read the posting guide before posting to the list.

list of date sections of archive