Hello !
I'm a beginner in R and I have some difficulties to import my data in R.
I try to import 40 csv file, all in one document, and I would like then to manipulate them and analyse the data for my thesis.
I could do a list of my files, but I can't find how to manipulate them ; they do not have exactly the same columns (some have one more column that's useless) so I can't bind them. So I really wish I could do a for loop or something after my code to select the column I would like to keep for each of my files (I tried select from dplyr with a for loop but it doesn't seem to work).
I also would like to delete some rows that are useless in my files before binding them, is it possible to also do it for each of my files ?
I didin't wrote much code because they don't work, so I just showed only the code that was working.
Your first answer actually look like it work as magic, I just tried it. Thank you for that. And do you know how I can delete rows using a function like this ?
I wonder that it worked like magic, since select is not base R, you don't know how to select rows and are loop affine. Maybe going back to basics will help you.
For example you can "delete" a row with