addComma: Change numbers into formatted numbers

Description Usage Arguments Methods (by class) Examples

View source: R/addComma.R

Description

Change numbers into formatted numbers

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
addComma(x)

## S3 method for class 'mytable'
addComma(x)

## S3 method for class 'mytable.df'
addComma(x)

## S3 method for class 'cbind.mytable'
addComma(x)

## S3 method for class 'data.frame'
addComma(x)

## S3 method for class 'character'
addComma(x)

Arguments

x

An object

Methods (by class)

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
require(stringr)
require(magrittr)
require(ggplot2)
mytable(cut~.,data=diamonds) %>% addComma
x=mytable(Dx~sex,data=acs)
addComma(x)

## End(Not run)

moonBook documentation built on Jan. 5, 2022, 9:06 a.m.