I am a beginner in R and currently learn how to do the data wrangling job in multiple data sets. Right now I read 55 csv.file data sets with 300 rows using the following code:
Rawdata <- list.files(pattern = "*.csv")
for(i in 1:length(Rawdata)){
assign(Rawdata[i],read.csv(Rawdata[i], header = TRUE)[1:300])
}
Each data set has variables "acc_X_value", "acc_Y_value", and "acc_Z_value". I failed to add a column with mutate() in these data sets. I want to show the average of these variables in a new column. Any ideas? Thank you!