lapply
works, but you have to specify that you want the objects loaded to the .GlobalEnv
otherwise they’re loaded into the temporary evaluation environment created (and destroyed) by lapply
.
lapply(file_names,load,.GlobalEnv)
More Related Contents:
- Gather multiple sets of columns
- What is the difference between require() and library()?
- Is the “*apply” family really not vectorized?
- Add column which contains binned values of a numeric column
- Calculate group mean, sum, or other summary stats. and assign column to original data
- Count the number of all words in a string
- data.table “key indices” or “group counter”
- OS X package installation depends on gfortran-4.8
- Finding All Positions for Multiple Elements in a Vector
- Efficient way to filter one data frame by ranges in another
- Extend contigency table with proportions (percentages)
- Plot polynomial regression curve in R
- Position of the sun given time of day, latitude and longitude
- Scrolling page in RSelenium
- linear regression “NA” estimate just for last coefficient
- Subsetting data.table by 2nd column only of a 2 column key, using binary search not vector scan
- Using gsub to extract character string before white space in R
- How to fit a smooth curve to my data in R?
- Force ggplot legend to show all categories when no values are present [duplicate]
- Greek letters, symbols, and line breaks inside a ggplot legend label
- How to listen for more than one event expression within a Shiny observeEvent
- R dplyr rowwise mean or min and other methods?
- Shiny renderUI selectInput returned NULL
- Reset the graphical parameters back to default values without use of dev.off()
- Formatting a date in R without leading zeros
- Adding ellipses to a principal component analysis (PCA) plot
- R: Add title to Leaflet map
- How do I loop through column names and make a ggplot scatteplot for each one
- Chronological timeline with points in time and format date
- How to use superscript in axis labels with ggplot2