Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 445

select rows that match character vector in any column

$
0
0

I'd like to extract df (tax_table) rows that match a character vector (gross) in ANY column. I know to specify for a specific column is:

grossasv <- tax_table[tax_table$column %in% gross,]

but how about every column?


Viewing all articles
Browse latest Browse all 445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>