when readr::read_csv() makes guesses about data types, the sparse record column is sometimes guessed to be a boolean. But strings can appear later down in the vector. Then readr will raise a warning.
I'll let everything be a character, except for timestamp (datetime). I'll use readr::cols()'s .default parameter so it accommodates new columns REDCap may add in the future.
when
readr::read_csv()
makes guesses about data types, the sparserecord
column is sometimes guessed to be a boolean. But strings can appear later down in the vector. Then readr will raise a warning.I'll let everything be a character, except for
timestamp
(datetime). I'll use readr::cols()'s.default
parameter so it accommodates new columns REDCap may add in the future.