Skip to content

Subsetting from pareto distribution

2 messages · W Z, David Winsemius

W Z
#
I have a dataset of 20k records heavily right skewed as pareto
distribution, I'd like to pull 1k subset of it with same distribution, any
R package would do that?

Thanks.
#
On Apr 28, 2015, at 12:20 PM, W Z wrote:

            
Why not just:

 subdat <- dat[sample( nrow(dat), 1000), ] # if "dataset" is a dataframe

Or:

subdat <- dat[sample( length(dat), 1000) ] # if "dataset" is a vector
Do read the posting guide and the documentation for your mail client and learn how to post in plain text.
David Winsemius
Alameda, CA, USA