pc_in_total_of_match: pc_in_total_of_match

View source: R/CodeAndRoll2.R

pc_in_total_of_matchR Documentation

pc_in_total_of_match

Description

Calculates the percentage of a certain value within a vector or table.

Usage

pc_in_total_of_match(vec_or_table, category, NA_omit = TRUE)

Arguments

vec_or_table

A vector or table.

category

The value to calculate the percentage for.

NA_omit

Logical. Whether to omit missing values from the calculation.

Value

The percentage of category in vec_or_table.


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.