count_vars: Count the number of variables (by class) in data frames

Description Usage Arguments Value Author(s) Examples

Description

The count_vars function will count the number of the variables (by class) in a data frame.

Usage

1
count_vars(dataframe)

Arguments

dataframe

One or more data frames (as a character string or a vector of character strings).

Value

A data frame. Each row gives the counts (by class) of all the variables in each data frame in the dataframe argument. If the input dataframe is not actually a data frame, then an empty data frame will be returned.

Author(s)

Sean Raleigh, sraleigh@westminstercollege.edu

Jack Wilburn jackwilburn@tutanota.com

Examples

1
2
  count_vars("CO2")
  count_vars(c("CO2", "airquality"))

VectorPosse/datafinder documentation built on May 9, 2019, 9:43 p.m.