as_percent: As Percent

Description Usage Arguments Value Examples

View source: R/as_percent.R

Description

This takes a column of numbers in decimal format and turns it into percent format.

Usage

1
as_percent(df = frequencies, var = result)

Arguments

df

The dataframe with the number column. Defaults to the name frequencies

var

The name of the number column. Defaults to the name result

Value

values will go from decimal to percent format like such: 0.03 -> 3

Examples

1
2
3
4
5
6
7
frequencies <- c(.30,.47,.25, .65, .42,.57,.74,.19,.54,.50,.46,.28,.45) %>%
as.data.frame() %>%
 rename(
   result = "."
 )

 as_percent()

tatiana-gilchrist/y2help documentation built on Jan. 29, 2020, 9:08 p.m.