How do you convert a numeric value to a string in R?

How do you convert a numeric value to a string in R?

a) as.numeric()
b) as.character()
c) numToString()
d) str_numeric()

Answer:

b) as.character()

Explanation:

The as.character() function is used to convert a numeric value into a string in R.

Reference:

R Programming – String MCQ Questions and Answers

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top