Learn R Programming

NMF (version 0.2.2)

parse_formula: Simple Parsing of Formula

Description

Formula parser for formula-based NMF models.

Usage

parse_formula(x)

Arguments

x
formula to parse

Value

  • a list with the following elements:
  • responselogical that indicates if the formula has a response term.
  • yname of the response variable.
  • xlist of regressor variable names.
  • nnumber of regressor variables.