do.call Questions
2
Solved
Let's say I have some models stored in a list:
mods <- list()
mods[[1]] <- lm(mpg ~ disp, data = mtcars)
mods[[2]] <- lm(mpg ~ disp + factor(cyl), data = mtcars)
mods[[3]] <- lm(mpg ~ ...
1
Solved
I am trying to bind some sub elements of the elements from the list
The list OC is as follows
> library(quantmod)
> OC <- getOptionChain('AAPL', NULL)
> str(OC)
List of 9
$ Feb 201...
4
Solved
4
Solved
I am facing a strange problem about do.call and curve:
func1 <- function (m, n) {
charac <- paste ("func2 <- function(x)", m, "*x^", n, sep = "")
eval(parse(text = charac))
return(func...
1
Solved
When run the following code, I obtain Error in as.graphicsAnnot(text) : could not find function "bold". How can I fix this?
my.qq <- function(x, main=expression(bold(italic(F)~~"Q-Q plot")),
m...
4
Solved
I know there are many questions here in SO about ways to convert a list of data.frames to a single data.frame using do.call or ldply, but this questions is about understanding the inner workings of...
Statuary asked 15/3, 2012 at 21:25
4
I would like to find a way to create a data.frame by using cbind() to join together many separate objects. For example, if A, B, C & D are all vectors of equal length, one can create data.frame...
Varese asked 4/4, 2011 at 18:16
5
This is a question regarding coding in R.
The example I provide is didactic. Suppose I have functions called 'func1' and 'func2', where each takes two arguments (let's say scalars). I want to spec...
© 2022 - 2024 — McMap. All rights reserved.