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
>
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 re
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:
--
3 matches
Mail list logo