diff --git a/NEWS.md b/NEWS.md new file mode 100644 index 0000000..8ebe653 --- /dev/null +++ b/NEWS.md @@ -0,0 +1,4 @@ +# btabler 0.0.3 + +* Added a `NEWS.md` file to track changes to the package. +* Added option `include.varnames` option to `btable`. diff --git a/R/btable.r b/R/btable.r index fdc8337..6d5c2c1 100644 --- a/R/btable.r +++ b/R/btable.r @@ -42,6 +42,7 @@ #' @param sfile sanitizing file for latex, dataframe with two columns, pattern and replacement #' @param print logical, indicates whether table should be printed, TRUE by default #' @param comment logical, indicates whether xtable should print it's comment, FALSE by default +#' @param include.colnames logical, indicated whether the columns names are printed, FALSE by default. #' @param ... further arguments passed to print.xtable() #' #' @return table in latex format @@ -107,6 +108,7 @@ btable<-function(dat, sfile="", print=TRUE, comment = FALSE, + include.colnames = FALSE, ...) { @@ -372,7 +374,7 @@ btable<-function(dat, } #ptint xtable - xtp<-print(xt,include.rownames=FALSE,include.colnames=FALSE,sanitize.text.function=sf, + xtp<-print(xt,include.rownames=FALSE,include.colnames=include.colnames,sanitize.text.function=sf, booktabs = TRUE,hline.after=hlinea, caption.placement = "top", latex.environments = "center", table.placement=table.placement, diff --git a/man/btable.Rd b/man/btable.Rd index 3b1b938..63a4243 100644 --- a/man/btable.Rd +++ b/man/btable.Rd @@ -32,6 +32,7 @@ btable( sfile = "", print = TRUE, comment = FALSE, + include.colnames = FALSE, ... ) } @@ -92,6 +93,8 @@ default value is "ht".} \item{comment}{logical, indicates whether xtable should print it's comment, FALSE by default} +\item{include.colnames}{logical, indicated whether the columns names are printed, FALSE by default.} + \item{...}{further arguments passed to print.xtable()} } \value{