zero1: Recode 0 to 1

Description Usage Arguments Value Examples

View source: R/zero1.R

Description

Takes a vector of values, min and max values if not observed, and recodes to 0 to 1 range

Usage

1
zero1(x, minx = NA, maxx = NA)

Arguments

x

vector

minx

min value of x

maxx

max value of x

Value

recoded vector

Examples

1
x <- c(1,2,3); zero1(x)

soodoku/goji documentation built on May 30, 2019, 6:29 a.m.