[R-SIG-Mac] Data editor replacing empty strings by NA
ruth at stats.ox.ac.uk
Tue Jan 24 19:21:14 CET 2012
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)
R version 2.14.1 (2011-12-22)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
attached base packages:
 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.
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