[R-SIG-Mac] Data editor replacing empty strings by NA
Ruth Ripley
ruth at stats.ox.ac.uk
Tue Jan 24 19:21:14 CET 2012
Dear All,
I have a data frame with empty strings in some cells. If I use fix() in
R.app I get the strings replaced by NA. If use fix() in a terminal (I
get an X window) I do not. No editing in either case.
mydf <- data.frame(x=rep("",3), y=1:3, stringsAsFactors=FALSE)
mydf
fix(mydf)
mydf
sessionInfo() is:
R version 2.14.1 (2011-12-22)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
This appears to be a recent change of behavior in R.app.
I can work around this, but suspect it is not the intended behavior.
Regards,
Ruth
--
Ruth M. Ripley, Email:ruth at stats.ox.ac.uk
Dept. of Statistics, http://www.stats.ox.ac.uk/~ruth/
University of Oxford, Tel: 01865 282857
1 South Parks Road, Oxford OX1 3TG, UK Fax: 01865 272595
More information about the R-SIG-Mac
mailing list