Removing selected dataframes from a list of dataframes in R -
if have list of dataframes, i.e.
lst comprises of dataframes named "aa0" "a0000" "a00a0a" "aababa00" "aaba" "000" "a00" "00000".....
each of dataframe consists of rows , 3 columns. want remove dataframes have names containing 0's. is, output be,
lst comprise of "aa0" "a0000" "a00a0a" "aababa00" "aaba" "a00"....
how can this? thanks!
i see no reason downvoting it.
removing names consist of 0s can done way
lst<-c( "aa0" ,"a0000", "a00a0a" ,"aababa00" ,"aaba", "000" ,"a00" ,"00000",'1001') lst[-grep('^[0]+',lst)]
r
No comments:
Post a Comment