Learn R Programming

LifemapR (version 1.1.5)

pass_infos: Infer numerical values to nodes.

Description

Infer numerical values to nodes.

Usage

pass_infos(M, FUN, value)

Value

An array of values.

Arguments

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.

Examples

Run this code
data(LM_eukaryotes)

infos <- create_matrix(LM_eukaryotes$df, c("GC.", "Genes"))

inferred_values <- pass_infos(M = infos, FUN = mean, value = "GC.")

Run the code above in your browser using DataLab