Learn R Programming

moonBook (version 0.3.1)

addComma: Change numbers into formatted numbers

Description

Change numbers into formatted numbers

Usage

addComma(x)

# S3 method for mytable addComma(x)

# S3 method for mytable.df addComma(x)

# S3 method for cbind.mytable addComma(x)

# S3 method for data.frame addComma(x)

# S3 method for 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

Run this code
# NOT RUN {
require(stringr)
require(magrittr)
require(ggplot2)
mytable(cut~.,data=diamonds) %>% addComma
x=mytable(Dx~sex,data=acs)
addComma(x)
# }

Run the code above in your browser using DataLab