addComma: Change numbers into formatted numbers

View source: R/addComma.R

addCommaR 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)

  • addComma(mytable): S3 method for class mytable

  • addComma(mytable.df): S3 method for class mytable.df

  • addComma(cbind.mytable): S3 method for class cbind.mytable

  • addComma(data.frame): S3 method for class data.frame

  • addComma(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)

cardiomoon/moonBook documentation built on Jan. 3, 2024, 8:15 p.m.