How to draw random numbers and character strings using the random package in the R programming language. More details: [ Ссылка ]
R code of this video:
install.packages("random") # Install & load random package
library("random")
data1 <- randomNumbers(n = 200, # Apply randomNumbers() Function
min = 0,
max = 1000,
col = 4)
head(data1) # Head of random data
data2 <- randomSequence(min = 5, # Apply randomSequence() Function
max = 10,
col = 2)
head(data2) # Head of random data
vec1 <- as.vector(randomStrings(n = 7, # Apply randomStrings() Function
len = 3))
vec1 # Print vector of random strings
Follow me on Social Media:
Facebook – Statistics Globe Page: [ Ссылка ]
Facebook – Group for Discussions & Questions: [ Ссылка ]
LinkedIn – Statistics Globe Page: [ Ссылка ]
LinkedIn – Group for Discussions & Questions: [ Ссылка ]
Twitter: [ Ссылка ]
Music by bensound.com
Ещё видео!