All Questions
Tagged with non-alphanumeric r
3 questions
1
vote
1
answer
111
views
Inconsistent behavior of parse_number() with non-alphanumeric strings in R
I'm having trouble using readr::parse_number() on a character column that sometimes contains non-alphanumeric prefixes before the number. In some cases, parse_number() extracts the number correctly, ...
3
votes
1
answer
2k
views
Replace all non-alphanumeric with a period
I am trying to rename all of these atrocious column names in a data frame I received from a government agency.
> colnames(thedata)
[1] "Region" "Resource ...
0
votes
2
answers
3k
views
Removing non-alpanumeric characters from an ordered collection of objects (list) in R
I have a question about removing non-alphanumeric characters from a list in R. I have a list will all sorts of odd characters, blanks, etc. and would like to remove them. I'm generally able to remove ...