[R] Swedish characters in data frames
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Jul 2 08:19:30 CEST 2003
On Wed, 2 Jul 2003, Neil White wrote:
> I have some data that was prepared while I was Sweden. The columns
> labelled using ä or å are fine, but for some reason ö is changed to a
> period.
The reason is in ?data.frame and ?read.table
> so Blåbär stay the same, but Dödved becomes D.dved
>
> I'd like to keep to original variable names
>
> the data is read in using
> vegFreqFull <- read.csv("/dat/neil/voles/veg/FrequentFull.csv", header=TRUE)
Use check.names = FALSE. You should also do this by setting a Swedish
locale.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list