rowcount: Count matches of a value across columns, per row

View source: R/primitives.R

rowcountR Documentation

Count matches of a value across columns, per row

Description

Count matches of a value across columns, per row

Usage

rowcount(data, cols = NULL, value = TRUE, na.rm = FALSE)

Arguments

data

A data.frame.

cols

Character vector of column names.

value

Value to test, assign, or match against.

na.rm

Drop missing values before computing the result.

Value

An integer vector.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.