Social Media Research

02 R Data Analysis


Question

Show the range of the numbers 2,9,10,13. What will be the output? Additionally print the difference between the largest and the smallest value.


Answer

y <- c(2,9,10,13)

range (y)

Output: 2 13

Showing the difference: diff(range(y))




Comments