My sample dataset looks like below. I need to calculate the number of characters.
keyword <- c("advertising",
"advertising budget",
"marketing plan detail",
"marketing budget and forecast")
I tried the "nchar" function, but it actually calculates the number of digits. For this sample, the results should be 1,2,3,4.