search for: _lists_

Displaying 2 results from an estimated 2 matches for "_lists_".

Did you mean: _lists
2003 Oct 30
2
'nls' and its arguments
...rt(pred) } Pur.wt <- nls( ~ weighted.MM(rate, conc, Vm, K), data = Treated, start = list(Vm = 200, K = 0.1)) So, in this example I wouldn't like to write `weighted.MM(rate, conc, Vm, K'), and `start = list(Vm = 200, K = 0.1)', instead I'd like to supply _lists_. With the 'start' parameter it's easy - I create list p.start <- list(Vm = 200, K = 0.1) and assign it to 'start' in nls(): start = p.start - that works. But, with the formula it's not so simple. Well, I tried at first to make formula more "list-like&quot...
2010 Jan 31
2
Reshaping matrix of vectors as dataframe
Dear R people, I have to deal with the output of a function which comes as a matrix of vectors. You can reproduce the structure as given below: x <- list(c(1,2,4),c(1,3,5),c(0,1,0), c(1,3,6,5),c(3,4,4,4),c(0,1,0,1), c(3,7),c(1,2),c(0,1)) data <- matrix(x,byrow=TRUE,nrow=3) colnames(data) <- c("First", "Length", "Value") rownames(data)