Learn R Programming

netdiffuseR (version 1.17.0)

diffnet_check_attr_class: Infer whether value is dynamic or static.

Description

Intended for internal use only, this function is used in diffnet_index methods.

Usage

diffnet_check_attr_class(value, meta)

Arguments

value
Either a matrix, data frame or a list. Attribute values.
meta
A list. A diffnet object's meta data.

Value

The value object either as a data frame (if static) or as a list of data frames (if dynamic). If value does not follows the permitted types of diffnet_index, then returns with error.