[R] Subseting a data.frame
S Ellison
S.Ellison at LGCGroup.com
Fri Oct 18 14:58:34 CEST 2013
> -----Original Message-----
> > mydat
> basel_asset_class defa_frequency
> 1 2 0.150
> 2 8 0.070
> 3 8 0.030
> 4 8 0.001
>
>
> I need to get the subset of this data.frame where no of records for the
> given basel_asset_class is > 2,
Maybe something like
subset(mydat, ave(1:nrow(mydat), base_asset_class, FUN=length)>2)
?
S Ellison
*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}
More information about the R-help
mailing list