@ethanwhite Currently the Add Data Code page doesn't have an example of data manipulation in datascript.R. I could very quickly add this example to the datascript.R which takes the original raw data and writes a "post-processed" csv file:
print("Have this script run whatever data cleaning you do")
library(dplyr)
base_data <- read.csv('data-raw/data.csv',
stringsAsFactors = F)
base_data %>%
mutate(SH_plus_SO = SH + SO) %>%
write.csv("data-raw/data_post_processed.csv")
This would require explaining how to modify the .github/workflows/R-CMD-check.yaml file to allow GitHub Actions to add Commit files and Push changes jobs to push to the new csv file to the repo (I modified this code to do so):
@ethanwhite Currently the Add Data Code page doesn't have an example of data manipulation in
datascript.R
. I could very quickly add this example to thedatascript.R
which takes the original raw data and writes a "post-processed" csv file:This would require explaining how to modify the
.github/workflows/R-CMD-check.yaml
file to allow GitHub Actions to addCommit files
andPush changes
jobs to push to the new csv file to the repo (I modified this code to do so):Thoughts?