addComma {moonBook} | R Documentation |
Change numbers into formatted numbers
Description
Change numbers into formatted numbers
Usage
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)
-
mytable
: S3 method for class mytable -
mytable.df
: S3 method for class mytable.df -
cbind.mytable
: S3 method for class cbind.mytable -
data.frame
: S3 method for class data.frame -
character
: S3 method for class character
Examples
## Not run:
require(stringr)
require(magrittr)
require(ggplot2)
mytable(cut~.,data=diamonds) %>% addComma
x=mytable(Dx~sex,data=acs)
addComma(x)
## End(Not run)
[Package moonBook version 0.3.1 Index]