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@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.