Re: [R] Remove Even Number from A Vector

2019-03-02 Thread Jim Lemon
Hi Darren, You're probably looking for the %% (remainder) operator: x<-1:10 # get odd numbers x[as.logical(x%%2)] # get even numbers x[!(x%%2)] Jim On Sun, Mar 3, 2019 at 4:10 PM Darren Danyluk wrote: > > Hello, > > I found this email when looking for some help with R Studio. It's actually >

Re: [R] Remove Even Number from A Vector

2019-03-02 Thread Darren Danyluk
Hello, I found this email when looking for some help with R Studio. It's actually my daughter who is looking for help. It sounds like she is working with the very basics of this software, and her task is to write the code which would result in the extraction of "odd" data from a dataset of

[R] R installation Ubuntu 10.04 missing dependency

2019-03-02 Thread John Kane
To upgrade to R.3.5.2 from 3.4.4 I have been following the instructions at https://www.r-bloggers.com/installation-of-r-3-5-on-ubuntu-18-04-lts-and-tips-for-spatial-packages/ . I seem to have the repository properly connected and verified. I am getting an error: