how_many.data.frame: This is the S3 method for class 'data.frame'

Description Usage Arguments Value Examples

View source: R/func_how-many.R

Description

This is the S3 method for class 'data.frame'

Usage

1
2
## S3 method for class 'data.frame'
how_many(x, column, ...)

Arguments

x

Object of class 'data.frame'

column

The column of the data frame to be indexed into.

...

Additional arguments passed to or from other methods.

Value

An integer indicating how many unique observations are in the object.

Examples

1
2
how_many(mtcars, "cyl") # Subset dataframe with a character string for column name
how_many(mtcars, cyl) # Subset dataframe without needing to quote the column name

jdtrat/jdtools documentation built on Dec. 20, 2021, 10:05 p.m.