pass_infos {LifemapR} | R Documentation |
Infer numerical values to nodes.
pass_infos(M, FUN, value)
M |
The dataframe returned by create_matrix. |
FUN |
The function to be applied when inferring the values. |
value |
The column name to which the function applies. |
An array of values.
data(LM_eukaryotes)
infos <- create_matrix(LM_eukaryotes$df, c("GC.", "Genes"))
inferred_values <- pass_infos(M = infos, FUN = mean, value = "GC.")