describe_data: Return a sentence describing the given data

Description Usage Arguments Value

View source: R/describeData.R

Description

Return a sentence describing the given data

Usage

1
2
describe_data(data, dimension, metric, subject = "users",
  action = "made up", label = "%", object = "of total traffic")

Arguments

data

A dataframe to summarize.

dimension

The dimension (or grouping variable).

metric

The data to summarize.

subject

The subject of the sentence (e.g. users, pageviews, etc.)

action

The action of the subject (e.g. made up, spent, etc.)

label

The label for the metric (e.g. %, minutes, etc.)

object

Noun phrase to include in predicate (e.g. "of total traffic", "of all users", etc.)

Value

A sentence describing the data provided.


niedermansam/marketR documentation built on Nov. 4, 2019, 10:06 p.m.