Skip to content

Instantly share code, notes, and snippets.

@StuHorsman-zz
Created June 12, 2014 04:52
Show Gist options
  • Select an option

  • Save StuHorsman-zz/bc37b232078367873307 to your computer and use it in GitHub Desktop.

Select an option

Save StuHorsman-zz/bc37b232078367873307 to your computer and use it in GitHub Desktop.
R: Sample a dataframe
df[sample(nrow(df), 100, replace=TRUE), ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment