View source: R/CreateLVIndices.R
CreateLVIndices | R Documentation |
Format a data frame/matrix so that it is in the right format for INLA
CreateLVIndices(dat, nLVs = 1)
dat |
data. A data frame or matrix |
nLVs |
The number of latent variables required |
A data frame with the same number of columns, but each row only has one value in it (the rest are NAs)
CreateLVIndices(matrix(1:10, ncol=5), nLVs=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.