calcPercentNonzero: Calculate percent non-zero occurrences from a set of...

View source: R/calcPercentNonzero.R

calcPercentNonzeroR Documentation

Calculate percent non-zero occurrences from a set of dataframe columns, possibly by factor levels

Description

Function to calculate percent non-zero occurrences from a set of dataframe columns, possibly by factor levels.

Usage

calcPercentNonzero(dfr, vars = NULL, factors = NULL)

Arguments

dfr
  • dataframe with data in columns

vars
  • vector of columns (names) on which to calculate percentages

factors
  • vector of columns to use as factors

Details

None.

Value

a dataframe


wStockhausen/wtsUtilities documentation built on Feb. 3, 2025, 6:29 a.m.