[R] a remove question
Hugo Mildenberger
Hugo.Mildenberger at web.de
Sun Jan 16 22:26:12 CET 2011
How about
ls(pattern="NY")
#rm(list=ls(pattern="NY"))
On Sunday 16 January 2011 22:08:16 Erin Hodgess wrote:
> Dear R People:
>
> I have the following:
>
> > ls(pattern="NY*")
> [1] "CRAN_df" "CRAN_df0" "CRAN_df1" "CRAN_mat" "CRAN_sp"
> [6] "CRAN_spdf1" "CRAN_spdf2" "CRAN_spdf4" "delauney_NY" "dist2_NY"
> [11] "dist3_NY" "Gabriel_NY" "NY8a_nb" "rel_neigh_NY" "scot_BNG"
> [16] "SOI_NY"
> > rm(pattern="NY*")
> Warning message:
> In rm(pattern = "NY*") : object 'NY*' not found
> >
>
> How do I remove all of NY* items, please? I suspect it might be an sapply issue
> thanks,
> Erin
>
>
>
More information about the R-help
mailing list