Displaying 4 results from an estimated 4 matches for "_list_".
Did you mean:
_list
2004 Nov 09
2
do.call invoking a function with multiple arguments
Hi users,
I am not sure to understand the help page about do.call.
--
do.call(what, args)
args: a _list_ of arguments to the function call. The 'names'
attribute of 'args' gives the argument names.
--
If we take the following sample data:
> (tab=as.data.frame(table(factor(1:10))))
Var1 Freq
1 1 1
2 2 1
3 3 1
4 4 1
5 5 1
6 6...
2004 Feb 19
1
piece wise application of functions
...1 1e+06 0.597
2 2e+06 0.504
3 5e+06 0.327
4 1e+07 0.204
>
> strs.missgp
intvl.mb ic
1 1e+06 0.67200
2 2e+06 0.62325
3 5e+06 0.51000
4 1e+07 0.38775
>
I would like to apply the functions on these data frames
piece-wise and create a data frame per function _list_.
So I am looking for a final output like this:
> case0
gap snps strs
1 1e+06 .. ..
2 2e+06 .. ..
3 5e+06 .. ..
Here, case0$snps[1] is, for example, the result of applying the
function in missgp0[1] on the entry snps.missgp$ic[1];
and, case0$strs[1] is the result of applying the same...
2006 Mar 10
2
lapply and list attributes
Hi
I have a list that has attributes:
attributes(lis[2])
$names
[1] "150096_at"
I want to use those attributes in a function and then use lapply to
apply that function to every element of the list, eg for simplicity's
sake:
my.fun <- function(x) {
attributes(x)
}
Then
l2 <- lapply(lis, my.fun)
It seems that "attributes(x)" within the function is not the
2009 Jun 08
3
caret package
Hi all
I am using the caret package and having difficulty in obtaining the results
using regression, I used the glmnet to model and trying to get the
coefficients and the model parameters I am trying to use the
extractPrediction to obtain a confusion matrix and it seems to be giving me
errors.
x<-read.csv("x.csv", header=TRUE);
y<-read.csv("y.csv", header=TRUE);