Which command allows you to get the median tree height of the r sample dataset?
Answers
Answered by
0
Answer :- Below answer is in the context of 'R' programming.
There are in-built functions in R to do statistical analysis. These are present in R base package.
Median is calculated in R using median() function.
Syntax of the function is median(x, na.rm = FALSE).
x - Dataset vector
na.rm - This removes missing values in dataset
# Create the vector.
r <- c(1,72,32,44.2,44.1,-5,-231)
# Find the median.
median.result <- median(r)
print(median.result)
Similar questions