Learn R Programming

Fgmutils (version 0.9.5)

calculaPerc: calculates percentage

Description

With this function, you can calculate the ratio of one quantity or magnitude relative to another evaluated in percentage.

Usage

calculaPerc(valor, observados)

Arguments

valor

number amount you to know the percentage

observados

number relationship to which you want to calculate the percentage, if it is a vector of integers is calculated its average.

Details

calculaPerc = ((valor)/mean(observados))*100