Skip to content
Prev 348408 / 398500 Next

Subsetting a list of lists using lapply

On Fri, 20 Feb 2015, Aron Lindberg wrote:

            
This should be straightforward. Look at what grepl() is doing.

And look at what names(unlist(input)) yields.

You can either write a regular expression to handle this (perhaps 
"content.sha$") or write other grepl() expressions to select (or get rid 
of) the desired (or unwanted) pattern.

See ?grepl and the page on regular expression referenced there.

HTH,

Chuck