Question: Coercion: Write an R function named Str2Num which accepts a single argument which is a character vector whose elements are single digits. The function should

Coercion: Write an R function named Str2Num which accepts a single argument which is a character vector whose elements are single digits. The function should convert this vector of characters to a numeric value. Test function with the R command >Str2Num(c("3", "6", "5")).

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 Databases Questions!