commfish / seak_sablefish

NSEI sablefish stock assessment
8 stars 5 forks source link

.rds vs .csv #1

Closed ben-williams closed 7 years ago

ben-williams commented 7 years ago

I think that maintaining the .csv structure will be beneficial as it allows for easy sharing with non R programs / people

jysullivan commented 7 years ago

Do you know how to maintain factor formatting in a csv? My frustration is I get the data in the format I want in 0-clean, write it as a csv, but then when I read it in I have to go through an extra hoop of defining the column class in order to keep the data structured properly.

ben-williams commented 7 years ago

Can convert all characters brought in with read_csv using mutate_if(is.character, factor). I think that read.csv will read in as factors (though it can be considerably slower than read_csv)