percentage: calculate a percentage within a data.frame.

Description Usage Arguments

Description

Takes a data.frame and a specified field, calculates the percentage of that field each value represents, and then appends that to the data.frame

Usage

1
percentage(x, field, for_writing = TRUE)

Arguments

x

a data.frame

field

the name of a field to generate the percentages of.

for_writing

whether the percentages are for writing out and consumption by the public (1.03 to TRUE by default.


Ironholds/olivr documentation built on May 7, 2019, 6:40 a.m.