We can use ls
with mget
library(data.table)
rbindlist(mget(ls(pattern = "^df\\.\\d+")))
Or with dplyr
library(dplyr)
mget(ls(pattern="^df\\.\\d+")) %>%
bind_rows()
Or with rbind
from base R
do.call(rbind, mget(ls(pattern="^df\\.\\d+")))
More Related Contents:
- Remove columns from dataframe where ALL values are NA
- R Apply() function on specific dataframe columns
- rbind dataframes with a different column name
- Converting nested list to dataframe
- apply a function over groups of columns
- How can I prevent rbind() from geting really slow as dataframe grows larger?
- Dataframe create new column based on other columns
- Calculate row-wise proportions
- Last Observation Carried Forward In a data frame? [duplicate]
- Combine several data frames in the global environment by row (rbind)
- use multiple columns as variables with sapply
- Repeat each row of data.frame the number of times specified in a column
- Filter data.frame rows by a logical condition
- Split column at delimiter in data frame [duplicate]
- Pass a data.frame column name to a function
- How to convert a list consisting of vector of different lengths to a usable data frame in R?
- Select groups based on number of unique / distinct values
- Filtering a data frame on a vector [duplicate]
- Sample n random rows per group in a dataframe
- Select every nth row from dataframe
- Remove Rows From Data Frame where a Row matches a String
- duplicates in multiple columns
- R – add column that counts sequentially within groups but repeats for duplicates
- R self reference
- Unlist a data frame by rows, not columns
- Using lapply to apply a function over list of data frames and saving output to files with different names
- Applying a function to two lists?
- DT[!(x == .)] and DT[x != .] treat NA in x inconsistently
- Row-wise sum of values grouped by columns with same name
- R how can I calculate difference between rows in a data frame