[R] How can I delete components in a column ?

Mark Lyman mark.lyman at gmail.com
Mon Oct 9 17:51:45 CEST 2006


Yen Ngo <yen_h_ngo <at> yahoo.se> writes:

> 
> Hi all R-helpers,
> 
>   i am a new R-user and have problem with deleting some components in a 
column. I have a dataset like
> 
>   Name  Id        x
>            empty   2
>            empty   3
>   a        none    2
>   b        none    3
>   d       none     2
>   ad      cfh       4
>   bf       cdt       5
>            empty   2
>            empty   2
>   gf      cdh       4
>   d       none     5
> 
>   and want to eliminate all components that have id=none and empty . The 
remaining data should be


Take a look at the subset function.

Mark Lyman



More information about the R-help mailing list