Question: 1 2 . Write a function called add _ four ( that adds the number 4 to each element of a numeric vector. (
Write a function called "addfour that adds the number to each element of a numeric vector. pt
Write a function called myfun that divides each element of a numeric vector by the sum of that vector. pt
Write a for loop that calculates the mean of each of the first three variables in the data frame trees accessible in base R and saves them to an output vector. pts This is multipart:
create empty output vector pt
write for loop that fills the empty vector with calculated means pt
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
