R random number
#returns one decimal number between 5 and 7.5
#first argument is the number of numbers to generate
#second and third are the lower and upper limits
x = runif(1, 5.0, 7.5)
R random number
#returns one decimal number between 5 and 7.5
#first argument is the number of numbers to generate
#second and third are the lower and upper limits
x = runif(1, 5.0, 7.5)
random integer in r
random_x <- sample(1:10, 1)
# or
random_10x = sample(-1:1, size = 10, replace = T)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us