parse_formula: Simple Parsing of Formula

View source: R/nmfModel.R

parse_formulaR Documentation

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:

response

logical that indicates if the formula has a response term.

y

name of the response variable.

x

list of regressor variable names.

n

number of regressor variables.


NMF documentation built on Sept. 11, 2024, 8:34 p.m.