sum_tab: Create a Frequency Table for a Variable in a Data Frame

View source: R/sum_tab.R

sum_tabR Documentation

Create a Frequency Table for a Variable in a Data Frame

Description

This function generates a frequency table for a specific variable in a dataset.

Usage

sum_tab(data, var_name)

Arguments

data

A data frame or tibble.

var_name

The name of the variable/column to generate the frequency table.

Details

It uses enquo() to capture the unquoted variable name and !! to unquote it within the function.

Value

A table showing the frequency of each unique value in the specified variable. #'


setgree/PrejMetaFunctions documentation built on April 28, 2024, 9:29 a.m.