metaGE.incidence | R Documentation |
The function metaGE.incidence convert categorical variable describing the environments into a matrix of dummy variables with in rows the levels of the variables and in columns the environment.
metaGE.incidence(VarName, Covariate, EnvName, Data, AtLeast = 1)
VarName |
The name of the column containing the categorical variable in the Covariate dataset. |
Covariate |
A dataset containing categorical variables (in columns) describing the environments (in rows). |
EnvName |
The name of the column containing the names of the environment in the Covariate dataset. |
Data |
A dataset containing the effects and pvalues of each marker (in rows) in each environment (in columns), as obtained from |
AtLeast |
A numeric value indicating the minimum number of environments must belong to each level (equals |
The names of the environment must be the same as used in the Data dataset.
A binary matrix containing indicator variables with in rows the levels of the variables and in columns the environment.
# Import the data
data("metaData")
data("envDesc")
# Build the matrix of incidence
(Incidence.Temp <- metaGE.incidence(VarName = "Temp",Covariate = envDesc,
EnvName = "ShortName", Data = metaData))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.