I've got multiple R scripts; one that cleans my original data and produces a tidy data frame, and several others that performs functions on that data frame.
When I wrote them, the data frame produced by the first script was in my RStudio environment and the other scripts referenced the resulting data frame without trouble.
Now that I'm trying to run them from the console, the data frame produced by the first script isn't reference-able for the others.
What's the best way to share a data frame between scripts?
fwriteandfreadfrom packagedata.tablesaveRDS()andreadCSV(). Faster, smaller (compressed), no need serialize and de-serialize to text.