How do you convert a string to lowercase in R?

How do you convert a string to lowercase in R?

a) tolower()
b) str_lower()
c) lowercase()
d) toLowerCase()

Answer:

a) tolower()

Explanation:

The tolower() function converts all characters of a string to lowercase 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