rescale: rescale a numerical vector using a new total sum value

View source: R/lib_vector.R

rescaleR Documentation

rescale a numerical vector using a new total sum value

Description

rescale a numerical vector using a new total sum value

Usage

rescale(x, total)

Arguments

x

a numerica lvector

total

the new total sum to scale to

Value

a rescaled numerical vector with total sum = total argument


jorritvm/jrutils documentation built on Feb. 14, 2023, 11:33 p.m.