11# #' @export
2+ # #' @examples
3+ # #' op <- options(asciiType = "org")
4+ # #' ascii(c(a=1L,b=2L),FALSE,TRUE,digits=0)
5+ # #' options(op)
26# #' @method ascii integer
37ascii.integer <- function (x , include.rownames = FALSE , include.colnames = FALSE , rownames = NULL , colnames = NULL , format = " f" , digits = 2 , decimal.mark = " ." , na.print = " " , caption = NULL , caption.level = NULL , width = 0 , frame = NULL , grid = NULL , valign = NULL , header = FALSE , footer = FALSE , align = NULL , col.width = 1 , style = NULL , tgroup = NULL , n.tgroup = NULL , talign = " c" , tvalign = " middle" , tstyle = " h" , bgroup = NULL , n.bgroup = NULL , balign = " c" , bvalign = " middle" , bstyle = " h" , lgroup = NULL , n.lgroup = NULL , lalign = " c" , lvalign = " middle" , lstyle = " h" , rgroup = NULL , n.rgroup = NULL , ralign = " c" , rvalign = " middle" , rstyle = " h" , ... ){
48 obj <- asciiTable $ new(x = x , include.rownames = include.rownames ,
@@ -19,6 +23,10 @@ ascii.integer <- function (x, include.rownames = FALSE, include.colnames = FALSE
1923}
2024
2125# #' @export
26+ # #' @examples
27+ # #' op <- options(asciiType = "org")
28+ # #' ascii(seq(0,1,length=11),digits=1)
29+ # #' options(op)
2230# #' @method ascii numeric
2331ascii.numeric <- function (x , include.rownames = FALSE , include.colnames = FALSE , rownames = NULL , colnames = NULL , format = " f" , digits = 2 , decimal.mark = " ." , na.print = " " , caption = NULL , caption.level = NULL , width = 0 , frame = NULL , grid = NULL , valign = NULL , header = FALSE , footer = FALSE , align = NULL , col.width = 1 , style = NULL , tgroup = NULL , n.tgroup = NULL , talign = " c" , tvalign = " middle" , tstyle = " h" , bgroup = NULL , n.bgroup = NULL , balign = " c" , bvalign = " middle" , bstyle = " h" , lgroup = NULL , n.lgroup = NULL , lalign = " c" , lvalign = " middle" , lstyle = " h" , rgroup = NULL , n.rgroup = NULL , ralign = " c" , rvalign = " middle" , rstyle = " h" , ... ){
2432 obj <- asciiTable $ new(x = x , include.rownames = include.rownames ,
@@ -39,6 +47,10 @@ ascii.numeric <- function (x, include.rownames = FALSE, include.colnames = FALSE
3947}
4048
4149# #' @export
50+ # #' @examples
51+ # #' op <- options(asciiType = "org")
52+ # #' ascii(c(a="A",b="B"),FALSE,TRUE,header=TRUE)
53+ # #' options(op)
4254# #' @method ascii character
4355ascii.character <- function (x , include.rownames = FALSE , include.colnames = FALSE , rownames = NULL , colnames = NULL , format = " f" , digits = 2 , decimal.mark = " ." , na.print = " " , caption = NULL , caption.level = NULL , width = 0 , frame = NULL , grid = NULL , valign = NULL , header = FALSE , footer = FALSE , align = NULL , col.width = 1 , style = NULL , tgroup = NULL , n.tgroup = NULL , talign = " c" , tvalign = " middle" , tstyle = " h" , bgroup = NULL , n.bgroup = NULL , balign = " c" , bvalign = " middle" , bstyle = " h" , lgroup = NULL , n.lgroup = NULL , lalign = " c" , lvalign = " middle" , lstyle = " h" , rgroup = NULL , n.rgroup = NULL , ralign = " c" , rvalign = " middle" , rstyle = " h" , ... ){
4456 obj <- asciiTable $ new(x = x , include.rownames = include.rownames ,
@@ -59,6 +71,10 @@ ascii.character <- function (x, include.rownames = FALSE, include.colnames = FAL
5971}
6072
6173# #' @export
74+ # #' @examples
75+ # #' op <- options(asciiType = "org")
76+ # #' ascii(factor(c("A","B")),FALSE)
77+ # #' options(op)
6278# #' @method ascii factor
6379ascii.factor <- function (x , include.rownames = FALSE , include.colnames = FALSE , rownames = NULL , colnames = NULL , format = " f" , digits = 2 , decimal.mark = " ." , na.print = " " , caption = NULL , caption.level = NULL , width = 0 , frame = NULL , grid = NULL , valign = NULL , header = FALSE , footer = FALSE , align = NULL , col.width = 1 , style = NULL , tgroup = NULL , n.tgroup = NULL , talign = " c" , tvalign = " middle" , tstyle = " h" , bgroup = NULL , n.bgroup = NULL , balign = " c" , bvalign = " middle" , bstyle = " h" , lgroup = NULL , n.lgroup = NULL , lalign = " c" , lvalign = " middle" , lstyle = " h" , rgroup = NULL , n.rgroup = NULL , ralign = " c" , rvalign = " middle" , rstyle = " h" , ... ){
6480 obj <- asciiTable $ new(x = x , include.rownames = include.rownames ,
0 commit comments