nschools: Counts Number of Unique Items in a Data Frame.

View source: R/nschools.R

nschoolsR Documentation

Counts Number of Unique Items in a Data Frame.

Description

nschools returns the number of distinct values in a column. In this case, schools.

Usage

nschools(data, column_name)

Arguments

data

a dataframe or tibble to pass in.

column_name

the column you want to find the number of unique universities of.

Details

This is a function that takes the main data on schools, and counts how many schools there are by using the distinct() function.

Examples

nschools(dataframe, columnname)



michaeltopper1/ifc documentation built on Jan. 30, 2023, 10:08 a.m.