Dear R user community, I have many data.frames in a list, as follows (only one data.frame in the list of 21 shown for convenience):
I got a bunch dynamically created regressions stored in some list called regressions. Now I´d like to rename their coefficients efficiently. What I have so far is this loop that works:
I am having trouble working with a list of xts objects.I get different and strange behavior when running lapply on the list elements, and sometimes the program segfaults.I am running R 2.12.2 on Ubunt
I have a tricky problem with applying a function to a list of data frames. Ultimately I want to plot individual time series charts for large data set of drug usage figures.
I am trying to come up with a variant of mapply (call it xapply for now) that combines the functionality (sort of) of expand.grid and mapply.That is, for a function FUN and a list of arguments L1, L2,
I have run up against the wall regarding the application of lapply() in a simulation study.The data are designed to help us understand how a standardization formula impacts the outcomes of a proposal
Is there a function that can extract two or more columns from a coeftest object? This is easy one coeftest object at a time, but can I do the same to a list (other than a for() loop)?
R textbooks continue to promote the use of lapply instead of loops. This is easy even for functions 开发者_如何学JAVAwith arguments like
Is this possible? I can get mapply to work with the help examples, but I can\'t get a trivial example with lm to work. Here\'s my attempt which returns a matrix, instead of a list of lm objects.
As a guideline I prefer apply functions on elements of a list using lapply or *ply (from plyr) rather than explicitly iterating through them. However, this works well when I have to process one list a