Skip to content

Instantly share code, notes, and snippets.

@ricardoochoa
Created December 8, 2019 04:40
Show Gist options
  • Save ricardoochoa/c0c2fc8f2621ae4108e00ffd5826dcec to your computer and use it in GitHub Desktop.
Save ricardoochoa/c0c2fc8f2621ae4108e00ffd5826dcec to your computer and use it in GitHub Desktop.
[Random numbers] Create random numbers in R #random
# Select random numbers from a list with no replacement
sample(x = 1:18, # vector with numbers to choose from
size = 18, # size of the sample
replace = F) # no replacement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment