mikeblazanin / gcplyr

gcplyr is an R package that facilitates wrangling and analysis of microbial growth curve data
https://mikeblazanin.github.io/gcplyr/
Other
30 stars 2 forks source link

why does write_blocks sometimes write "" and sometimes writes NA #67

Closed mikeblazanin closed 1 year ago

mikeblazanin commented 1 year ago

E.g. in the make_design sections of the vignette

mikeblazanin commented 1 year ago

This was actually not an issue with write_blocks, which was behaving consistently and only writing "" for NA's. In fact, it was an issue with read.csv sometimes putting in NA's (where it inferred a numeric column) and sometimes leaving "" (where it inferred a character column). Fixed by forcing read.csv inside print_df calls to use "character" colClasses