Prof Brian Ripley wrote: > See the help, especially argument 'check.names'. > > On Sat, 29 Dec 2007, Thomas Schwander wrote: > >> Hi guys, another question today: >> >> >> >> If I import an external csv-file with headers (with read.csv2), the blanks >> are interpreted as points. So "Test 1" becomes "Test.1". >> >> >> >> Is there a way to change this? >> >> >> >> Thanks, >> >> Thomas
Depending on the ultimate need, you can also use the csv.get function in the Hmisc package. csv.get keeps the original column names as variable labels, then transforms the names to become legal R names as with read.csv. In the new version there is also an option to read the variable labels from another row. Frank Harrell ______________________________________________ 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.