Hi, My next problem is that I have a data frame with an years column. This column for some reason is recognised as factor instead of being numeric. The years go from 1970 to 2007. When I convert it to numeric with as.numeric then it goes from 1 to 38. Is there a way to convert it with saving its "levels"?
This would be actually important as I am affraid of converting my real values that are recognised as factors as well. Thanks, Viktor ______________________________________________ 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.