It will work with the following lapply
call:
lapply(names(mylist), function(x) NewVar(mylist[[x]], "y", x))
More Related Contents:
- Same function over multiple data frames in R
- Dynamically select data frame columns using $ and a character value
- Simultaneously merge multiple data.frames in a list
- Merging a lot of data.frames [duplicate]
- Create a group number for each consecutive sequence
- dplyr: nonstandard column names (white space, punctuation, starts with numbers)
- Remove columns with zero values from a dataframe
- Calculating statistics on subsets of data [duplicate]
- Identifying duplicate columns in a dataframe
- R pass variable column indices to ggplot2 [duplicate]
- How to access the last value in a vector?
- What can R do about a messy data format?
- Why is plyr so slow?
- What is the right way to multiply data frame by vector?
- How to delete rows from a data.frame, based on an external list, using R?
- How to add multiple columns to a data.frame in one go?
- Return a data frame from function
- Splitting a string into new rows in R [duplicate]
- Transforming a time-series into a data frame and back
- Converting a list of data frames into individual data frames in R [duplicate]
- Split a column into multiple binary dummy columns [duplicate]
- Split up a dataframe by number of rows
- Merge data frames based on rownames in R
- Changing Million/Billion abbreviations into actual numbers? ie. 5.12M -> 5,120,000 [duplicate]
- What is difference between dataframe and list in R?
- Define dimensions of an empty dataframe
- Merge overlapping ranges into unique groups, in dataframe
- Deleting specific rows from a data frame
- R how can I calculate difference between rows in a data frame
- Color one point and add an annotation in ggplot2?