Learn R Programming

kyotil (version 2015.11-13)

print.functions: Print Functions

Description

roundup prints a specified number of digits after decimal point even if 0s are needed at the end. formatInt prints a specified number of digits before decimal point even if 0s are needed at the beginning.

Usage

formatInt(x, digits, fill = "0", ...)
make.latex.coef.table(models, model.names = NULL, row.major = FALSE, round.digits = NULL)
mytex (dat=NULL, file.name="temp", digits=NULL, display=NULL, align="r", include.rownames=TRUE, include.dup.rownames=FALSE, include.colnames=TRUE, col.headers=NULL, comment=FALSE, floating=FALSE, lines=TRUE, hline.after=NULL, add.to.row=NULL, sanitize.text.function = NULL, #function(x) x, append=FALSE, preamble="", stand.alone=TRUE, ...) mytex.begin(file.name, preamble = "")
mytex.end(file.name)
mywrite(x, ...)
mywrite.csv(x, file = "tmp", row.names = FALSE, digits = NULL, ...)
roundup(value, digits)
formatDouble(value, digits)

Arguments

include.colnames
Boolean
col.headers
string. Column headers
comment
Boolean, whether to include the version and timestamp comment
hline.after
vector
add.to.row
a list
sanitize.text.function
a function
stand.alone
Boolean. If true, only one latex file that is stand alone file is made; otherwise both a file that is to be inputted and a standalone version are made
value

digits

fill

models

model.names

row.major

round.digits

dat

file.name

display

align

append

preamble

include.rownames

include.dup.rownames

floating

lines

...

x

file

row.names

Examples

Run this code

roundup (3.1, 2) # 3.10

formatInt(3, 2) # 03



Run the code above in your browser using DataLab