Write a R program to find Sum, Mean and Product of a Vector.
x = c(10, 20, 30) print("Sum:") print(sum(x)) print("Mean:") print(mean(x)) print("Product:") print(prod(x))
Sample Output:
[1] "Sum:" [1] 60 [1] "Mean:" [1] 20 [1] "Product:" [1] 6000
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