how do i subset a data frame based on the values in another data frame?

Perhaps try

dat[as.numeric(gsub(".*?\\.(\\d+)\\..*","\\1",names(dat)))<50]

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top