sides: Figure out how many "sides" a formula has See also...

Description Usage Arguments Value Examples

View source: R/Rfunctions.R

Description

Figure out how many "sides" a formula has See also SimonO101's answer at http://stackoverflow.com/a/16376939/636656

Usage

1
2
3
4
5
6
7
  sides(x, ...)

  ## Default S3 method:
 sides(x, ...)

  ## S3 method for class 'formula'
 sides(x, ...)

Arguments

x

The object to calculate the sidedness of

...

Other items to pass along

Value

An integer of the number of sides

Examples

1
2
test <- list( ~ a + b, a ~ b + c, b + c ~ a, ~ a ~ b, a ~ b ~ c, a~b+c|d~c~d~e~f~g )
sapply(test,sides)

taRifx documentation built on April 14, 2020, 6:27 p.m.

Related to sides in taRifx...