Skip to content

Commit

Permalink
Merge pull request #19 from aghaynes/main
Browse files Browse the repository at this point in the history
Add option to include the head in the output
  • Loading branch information
lbueti authored May 1, 2024
2 parents dae30a0 + af0a903 commit 5b07cbc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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`.
4 changes: 3 additions & 1 deletion R/btable.r
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -107,6 +108,7 @@ btable<-function(dat,
sfile="",
print=TRUE,
comment = FALSE,
include.colnames = FALSE,
...) {


Expand Down Expand Up @@ -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,
Expand Down
3 changes: 3 additions & 0 deletions man/btable.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5b07cbc

Please sign in to comment.