mattroumaya / doubleheadr

R package for cleaning column + sub-column/second row names from SurveyMonkey, or other similarly structured data. + helper functions for SurveyMonkey exports.

Home Page:https://mattroumaya.github.io/doubleheadr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on clean_headr

scamicha opened this issue · comments

I've been trying to use this package following the demo at https://www.mattroumaya.com/post/doubleheadr-surveymonkey-column-cleaning-in-r/, but I keep getting this error.

> demo %>% clean_headr(., "...", clean_names = TRUE) %>% colnames(.)
Error in startsWith(name, rep_val) : non-character object(s)

Any way you can provide a sample of your data or the column names? I'll be happy to try and troubleshoot but am unsure what's causing that error.

I was using the frame doubleheadr::demo. However, I upgraded R from 3.6.3 to 4.2 last night and it is working now. Sorry for the false alarm!

Cool - no problem at all! Hope it's working out for you!