smax: Special max function

Description Usage Arguments Value

View source: R/utilities.R

Description

This function ignores NA values and returns a default value if the input vector is empty or if max would return -Inf/+Inf.

Usage

1
smax(x, default = 1)

Arguments

x

A vector

default

Value to return if the input vector is empty or if max would return -Inf/+Inf.

Value

The vector in which the elements have been shuffled


aheneliu/tiler documentation built on May 21, 2019, 12:03 p.m.