constant: Generic test for constant

Description Usage Arguments Methods (by class)

View source: R/new_up.R

Description

Generic test for constant

Usage

1
2
3
4
5
6
7
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)


john-d-fox/gspline documentation built on Sept. 17, 2020, 3:19 a.m.