write_xtable: Write Summary Table

Description Usage Arguments Value Author(s) References Examples

View source: R/write_xtable.R

Description

Write xtable in a file

Usage

1
2
write_xtable(x, filename = NULL, count = FALSE, sort.by = "Count",
  na.rm = TRUE, add.percentages = FALSE)

Arguments

x

a vector or matrix

filename

output file

count

Add total count of cases in the beginning

sort.by

Column used for sorting. The Count is the default.

na.rm

Remove NA entries

add.percentages

Add percentage information to the table. This indicates the total fraction of the count, calculated from all input entries if na.rm is FALSE, and from non-NA entries if na.rm is TRUE.

Value

Table indicating the count for each unique entry in the input vector or matrix. The function writes the statistics in the file.

Author(s)

Leo Lahti [email protected]

References

See citation("bibliographica")

Examples

1
## Not run: tab <- write_xtable(x, "tmp.tab")

rOpenGov/bibliographica documentation built on Aug. 11, 2018, 1:36 a.m.