Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 211988

R: How to select 100 random rows based on column text?

$
0
0

I'm using the spam dataset in R where one of the columns ("type") divides e-mails into "spam" and "nonspam"

I want to create an object with 100 randomly selected rows that are classed as "spam".


Viewing all articles
Browse latest Browse all 211988

Trending Articles



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