Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

How do I apply the same filter to 50+ data frames?

$
0
0

I have about 50 unique data frames with the same column names.

Right now I have something like this:

df1_cleaned <- df1$price
df1_cleaned <- df1$date 
df2_cleaned <- df2$price
df2_cleaned <- df2$date
...

There are 10 columns in the uncleaned data frames, I'm only interested in getting the 3rd and 5th columns of each.

Is there a way to do this without writing out every single data frame?

Cheers


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>