vendredi 19 février 2021

R: Viewing the observations that were included in my random sample

Part of an assignment that I'm working on requires that I take a 10% sample from the data in my df:

sample <- sample(NROW(toyota.df), round(.1*NROW(toyota.df)))

...this runs, and I then attempt to view the sample:

View(sample)

...and all I get is this:

screenshot of my view

...is there a way for me to view the observations that make up my sample?




Aucun commentaire:

Enregistrer un commentaire