write_xtable: Write Summary Table

write_xtableR Documentation

Write Summary Table

Description

Write xtable in a file

Usage

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 leo.lahti@iki.fi

References

See citation("bibliographica")

Examples

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

rOpenGov/bibliographica documentation built on April 10, 2022, 8:51 p.m.