Learn R Programming

causaloptim (version 0.9.1)

numberOfValues: Get the number of values of a given variable in the graph

Description

Get the number of values of a given variable in the graph

Usage

numberOfValues(graph, varname)

Arguments

graph

An igraph object.

varname

A string. The name of a vertex in 'graph'.

Value

An integer greater than 1. The number of values of 'varname'.