constant: Generic test for constant

View source: R/up.R

constantR Documentation

Generic test for constant

Description

Generic test for constant

Usage

constant(x, ...)

## Default S3 method:
constant(x, na.rm = FALSE, ...)

## S3 method for class 'data.frame'
constant(x, id, all = FALSE, ...)

Arguments

x

vector or data frame

...

other arguments

na.rm

(default FALSE) logical value indicating whether NA values should be ignored

id

vector or list of vectors used to define clusters within which to check whether x is constant

all

if TRUE, report whether constant overall instead of checking within subgroups created by id

Methods (by class)

  • constant(default): Default methods

  • constant(data.frame): method for class 'data.frame'


gmonette/spida2 documentation built on Aug. 11, 2024, 7:52 p.m.