,
Estefania
From: Sarah Goslee
To: Estefanía Gómez Galimberti
Cc: "r-help@r-project.org"
Sent: Friday, December 21, 2012 4:56 PM
Subject: Re: [R] remove from column a group of elements I have in another vector
You can probably do it with not in in
%in% work??? Is it a normal in and the not comes with the ! ate
> the beggining? I have never used it, so thanks for teaching me this!.
>
> Thanks again,
> Estefania
>
>
> From: Sarah Goslee
> To: Estefanía Gómez Galimberti
> Cc: "r
You can probably do it with not in in R too:
for a data frame x where you want to remove rows where values in
column A are not in the vector y:
x[!(x$A %in% y), ]
If you'd provided a reproducible example, I could give code that works
in your particular circumstance.
Sarah
On Fri, Dec 21, 2012 a
3 matches
Mail list logo