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 March 16, 2024, 10:38 a.m.