[R] change the R home directory

2017-04-08 Thread Da Zheng
Hello, By default, the home directory of R is "/usr/lib/R" in Ubuntu. Everything works fine. However, when I installed Jupyter notebook and the R kernel with anaconda2, it seems the R home directory is changed to some directory in anaconda2. This messes up compilation and linking. I wonder how I

Re: [R] Inconsistency of 1^NA=1 vs. 1.1^NA=NA

2016-11-17 Thread Da Zheng
f some data and an aching desire for an answer does not > > ensure that a reasonable answer can be extracted from a given body of > data. > > ~ John Tukey > > > > 2016-11-17 20:19 GMT+01:00 Da Zheng : > > > > > Hello, > > > > > > I just

[R] Inconsistency of 1^NA=1 vs. 1.1^NA=NA

2016-11-17 Thread Da Zheng
Hello, I just realized that 1^NA outputs 1 while 1.1^NA outputs NA in R v3.3.1 and R v3.2.3. I tried other values such as 0^NA and 2^NA, and they all output NA. I don't understand this inconsistency here. Shouldn't 1^NA output NA as well? Why does R handle it differently? Or is this a bug in these