victim_table: Vicimisation distribution table

Description Usage Arguments Examples

View source: R/victim_table.R

Description

A function to create distribution tables of victimisation counts.

Usage

1
2
victim_table(x, data = NULL, print_option = c("none", "markdown", "pandoc",
  "latex", "html"))

Arguments

x

A numeric or intenger vector of event counts. If data is provided, x is the character label of the column of event counts.

data

A data frame.

print_options

Provides the option to print out results as a table formatted by kable from the knitr package.

Examples

1
2
3
victim_table(testdata$extortions)

victim_table("extortions", data = testdata, print_option = "pandoc")

prestevez/victim documentation built on Jan. 30, 2020, 7:16 p.m.