Hello,
I come across this problem regularly and I would like to know if there's a more elegant, less redundant way to do this.
For example, say I read x .csv files and I want to remove the first column from each one. I can remove it individually with x[,-1] several times, I can create a function:
rmx <- function(x){
x[,-1]
}
x <- rmx(x)
But I would still have to type that out x amount of times, or I can store these data frames in a list and pass them through a loop or a function like sapply, but then how do I unlist them so that they return to variables in my global environment so I can continue working with them individually? Or is there another way to do this?
Thanks so much for your help!