Write a R program to create a vector which contains 10 random integer values between -50 and +50.
v = sample(-50:50, 10, replace=TRUE) print("Content of the vector:") print("10 random integer values between -50 and +50:") print(v)
Sample Output:
[1] "Content of the vector:" [1] "10 random integer values between -50 and +50:" [1] 31 -13 -21 42 49 -39 20 12 39 -2
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer