Re: [R] using for loop with data frames.

2018-05-10 Thread MacQueen, Don
Evidently, you want your loop to create new data frames, named (in this example) df_selected1 df_selected2 df_selected3 Yes, it can be done. But to do it you will have to use the get() and assign() functions, and construct the data frame names as character strings. Syntax like df_bs_id[

Re: [R] using for loop with data frames.

2018-05-10 Thread John Kane via R-help
Why not just use an rbind() and create one data.frame? On Thursday, May 10, 2018, 10:34:19 a.m. EDT, Marcelo Mariano Silva wrote: 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 <