Question: In this question, your goal is to write a function that takes a numeric vector of weight in lbs and converts it into kg .

In this question, your goal is to write a function that takes a numeric vector of weight in lbs and converts it into kg.
The name of the function your creating is Var_lbstokg, as suggested below.
Partial codes are provided below. Complete the missing parts of letters colored in red.
*FYI: the conversion rate of lbs to kg is 1 to 0.454.
Var_lbstokg <-?(x){
?
}
weight_vector <- c(18,24,21,37,51,34,41)
Var_lbstokg(weight_vector)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!