R: using grepl, how to only list that is true -


i have list of data , i'm trying divide them , pm groups.

i did

df1 <- split(start, grepl('pm', start$starttime)) 

which split list am/pm groups. want view evaluate true (i.e. pms).

does have idea?

similar akrun's suggestion:

subset(start, grepl('pm', starttime)) 

Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -