search for: df_bs_id3

Displaying 1 result from an estimated 1 matches for "df_bs_id3".

Did you mean: df_bs_id1
2018 May 10
2
using for loop with data frames.
Hi, Is it possible use a loop to process many data frames in the same way? For example, if I have three data frames, all with same variables df_bs_id1 <- read.csv("test1.csv",header =TRUE) df_bs_id2 <- read.csv("test2.csv",header =TRUE) df_bs_id3 <- read.csv("test3.csv",header =TRUE) How could I would implement a code loop that , for instance, would select two coluns of interest in a fashion of the code below ? # selecting only 2 columns of interest for (1, 1:3) { df_selected [i] <- df_bs_id[i] [ , c("column1&quot...