Learn R Programming

GPIC (version 0.1.0)

n2p: Calculate Proportions

Description

n2p converts a vector of counts to a vector of proportions.

Usage

n2p(n)

Arguments

n

a vector of counts.

Value

n2p returns a vector of proportions.

Examples

Run this code
# NOT RUN {
n2p(c(61, 477, 836, 1007))
# }

Run the code above in your browser using DataLab