Hello, If your data.frame is named 'dat', try the following.
cbind(year = rownames(dat), dat) Hope this helps, Rui Barradas Em 27-08-2013 20:34, catalin roibu escreveu:
hello all! I have a problem! I don't know how to convert row names in first column variables. Thank you very much for your help! CR
______________________________________________ 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.