Which function in R converts a string to a raw vector?
a) rawToChar()
b) charToRaw()
c) str_raw()
d) raw_vector()
Answer:
b) charToRaw()
Explanation:
The charToRaw()
function converts a character string into a raw vector in R.
The charToRaw()
function converts a character string into a raw vector in R.