Skip to contents

Calculate percent

Usage

pc(x)

Arguments

x

vector to calculate the percent from

Value

a vector of percents given the vectors whole.

Examples

pc(1:10)
#>  [1] 0.01818182 0.03636364 0.05454545 0.07272727 0.09090909 0.10909091
#>  [7] 0.12727273 0.14545455 0.16363636 0.18181818