Re: [R] Problem installing rgdal.

2016-10-04 Thread Jeff Newmiller
And if that was not intuitively obvious, googling "CRAN Ubuntu" would lead you to [1]. There is also R-sig-debian for these kinds of OS-specific questions next time. (I wish there was an R-sig-windows, but I suppose no one would support it.) [1] https://cran.r-project.org/bin/linux/ubuntu/ --

Re: [R] Problem installing rgdal.

2016-10-04 Thread Bob Rudis
​Hey Ron, I (literally, in the correct use of the term) fired up an Ubuntu 16.04 vagrant box - https://atlas.hashicorp.com/bento/boxes/ubuntu-16.04 - and then did: lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial

Re: [R] Problem installing rgdal.

2016-10-04 Thread Rolf Turner
On 05/10/16 12:56, ProfJCNash wrote: Can you build/install the source package? I had a problem once where my libraries were "too recent" for the R package, but I could build against my installed base. In any event, it may point out the source of the problem. I can appreciate your frustration -

Re: [R] Problem installing rgdal.

2016-10-04 Thread ProfJCNash
Can you build/install the source package? I had a problem once where my libraries were "too recent" for the R package, but I could build against my installed base. In any event, it may point out the source of the problem. I can appreciate your frustration -- been there, but wish I hadn't. Best,

Re: [R] Problem installing rgdal.

2016-10-04 Thread Rolf Turner
On 05/10/16 01:10, ProfJCNash wrote: I found that I have libgdal1-dev installed too. john@john-J6-2015 ~ $ dpkg -l | grep gdal ii libgdal-dev 1.10.1+dfsg-5ubuntu1 amd64 Geospatial Data Abstraction Library - Development files ii li

Re: [R] R Compile From Source Issue RHEL 6.5

2016-10-04 Thread Jeff Newmiller
You may get a response here, but the Posting Guide is pretty clear that this is not the recommended place to ask this question. -- Sent from my phone. Please excuse my brevity. On October 4, 2016 11:27:07 AM PDT, "Barros, Chris" wrote: >Hi- > >I’m compiling R from source and running into an iss

Re: [R] NA treatment when comparing two vectors

2016-10-04 Thread fabien verger
Thank you all - Bert, Marc and William - for your suggestions and the material (Rseek, r4stats.com...). Following your advices, I will create a dedicated function since I will have to use this tool in many programs. Actually, I regularly load economic data from various sources and I need to spot wh

[R] R Compile From Source Issue RHEL 6.5

2016-10-04 Thread Barros, Chris
Hi- I’m compiling R from source and running into an issue when enabling --enable-R-shlib. I get the following below. I did try and add “-fPIC" to the bzip2 makefile with no luck. /usr/bin/ld: /usr/local/apps/R/3.3.1/library/lib/libbz2.a(bzlib.o): relocation R_X86_64_32S against `.text' can not

Re: [R] NA treatment when comparing two vectors

2016-10-04 Thread Marc Schwartz
Bill, I had initially thought of using all.equal() along with isTrue(), however Fabien's desire for a pairwise element based approach, along with the specific NA handling steered me away from it and towards code along the lines of what Bert had offered, which builds on the basic notion of appro

Re: [R] NA treatment when comparing two vectors

2016-10-04 Thread William Dunlap via R-help
The all.equal function returns TRUE if two objects are pretty similar to one another and a textual description of the differences if not. Use isTRUE on its output if you just want a TRUE/FALSE answer. > all.equal(c(1,2*(1+.Machine$double.eps),NaN), c(1,2,NaN)) [1] TRUE > all.equal(c(1,2*(1+

Re: [R] NA treatment when comparing two vectors

2016-10-04 Thread Marc Schwartz
Hi, A couple of comments: 1. Fabien, since you are transitioning from SAS, you may find the resources that Bob Muenchen has made available to be of value: http://r4stats.com/ There is a free download (PDF) of an earlier version of his book available via his web site

Re: [R] NA treatment when comparing two vectors

2016-10-04 Thread Bert Gunter
Fabien: In general, R's philosophy as a programming language is that it should make it easy (and maybe efficient) to do the (data analysis) things you want to do, not necessarily provide all pre-packaged procedures (although with all the packages, it seems to come close to that!). So the following

Re: [R] To submit R jobs via SLURM

2016-10-04 Thread Sema Atasever
Thank you very much for your help. On Mon, Oct 3, 2016 at 10:35 PM, Erin Hodgess wrote: > Get a SLURM batch file from someone there and make the appropriate changes > to it. Best way to learn. > > > > On Mon, Oct 3, 2016 at 2:10 PM, Dominik Schneider > wrote: > >> I typically call Rscript insi

Re: [R] R-help Digest, Vol 164, Issue 4

2016-10-04 Thread Kamil Bartoń
Hi Caitie, whatever it is you want to achieve, you seem to be doing it in a very complicated way. The code you gave appears to be for producing a model selection table, yet you say you're trying to do model averaging. If you want a model selection table, why not use the one `dredge` produces (

[R] NA treatment when comparing two vectors

2016-10-04 Thread fabien verger
Hello, I want to get the differences when comparing 2 vectors, by pair (element by element). I'd like to get TRUEs when: - the two compared elements are different and non-missing (like `!=` does) - one element is missing and the other is not missing (unfortunatelly `!=` gives NA and not TRUE) Note

Re: [R] What does lm() output coefficient mean when it's been given a categorical predictor of string values?

2016-10-04 Thread peter dalgaard
> On 04 Oct 2016, at 17:39 , mviljamaa wrote: > > I'm using lm() for a model that has a predictor that has two values {poika, > tyttö} (boy and girl in Finnish). > > I make a model with this categorical variable: > > fit1 <- lm(dta$X.U.FEFF..mpist. ~ dta$sukup + dta$HISEI + dta$SES) > > and

Re: [R] What does lm() output coefficient mean when it's been given a categorical predictor of string values?

2016-10-04 Thread David Winsemius
> On Oct 4, 2016, at 8:39 AM, mviljamaa wrote: > > I'm using lm() for a model that has a predictor that has two values {poika, > tyttö} (boy and girl in Finnish). > > I make a model with this categorical variable: > > fit1 <- lm(dta$X.U.FEFF..mpist. ~ dta$sukup + dta$HISEI + dta$SES) > > and

[R] What does lm() output coefficient mean when it's been given a categorical predictor of string values?

2016-10-04 Thread mviljamaa
I'm using lm() for a model that has a predictor that has two values {poika, tyttö} (boy and girl in Finnish). I make a model with this categorical variable: fit1 <- lm(dta$X.U.FEFF..mpist. ~ dta$sukup + dta$HISEI + dta$SES) and while the variable/vector is here named as dta$sukup, what lm() r

Re: [R] Trouble with parameter estimation in nonlinear regression model

2016-10-04 Thread Adams, Jean
Syela, If you want to constrain parameter "a" to be positive, you can rewrite the equation replacing "a" with "exp(theta)". Then when you get the estimate for "theta", simply convert it back to "a". Jean On Mon, Oct 3, 2016 at 12:23 PM, Syela Mohd Noor wrote: > Hi all, I had a problem with th

Re: [R] Problem installing rgdal.

2016-10-04 Thread ProfJCNash
I found that I have libgdal1-dev installed too. john@john-J6-2015 ~ $ dpkg -l | grep gdal ii libgdal-dev 1.10.1+dfsg-5ubuntu1 amd64 Geospatial Data Abstraction Library - Development files ii libgdal1-dev

Re: [R] Error in aictab with CLM model "function not yet defined"

2016-10-04 Thread Kamil Bartoń
Hi Caitie, whatever it is you want to achieve, you seem to be doing it in a very complicated way. The code you gave appears to be for producing a model selection table, yet you say you're trying to do model averaging. If you want a model selection table, why not use the one `dredge` produces (