R Programming: Find Sum, Mean and Product of a Vector
R Programming Code :
Sample Output:
R Programming Code :
x = c(9,8,7,6,78,34)
print("Given Vector:")
print(x)
print(paste("Sum of a Vector:",sum(x)))
print(paste("Mean of a Vector:",mean(x)))
print(paste("Product of a Vector:",prod(x)))
Sample Output: