View source: R/extrafunctions.R
relist | R Documentation |
Generate a list of a given structure with new values
relist(lst, value, p = 0)
lst |
List whose structure will be replicated with the new values |
value |
vector of values to replace in 'lst'. The order of replacement is given by 'unlist(lst)' |
p |
Used internally to track level of recursion |
A list of the same structure as 'lst' but with the values given by 'value'
df <- nelder(~(cl(5)*t(5)) > ind(5)) cov <- Covariance$new(formula = ~(1|gr(j)*pexp(t)), parameters = list(list(0.05,0.8)), data= df) cov$parameters <- relist(cov$parameters, c(0.01,0.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.