Learn R Programming

flattabler (version 1.0.0)

pivot_table: pivot_table S3 class

Description

Creates a pivot_table object from a data frame. Additional information associated with the pivot table can be indicated. Data frame data is converted to character type.

Usage

pivot_table(df, page = vector("character"))

Arguments

df

A data frame, contains one or more pivot tables.

page

A string, additional information associated with the pivot table.

Value

A pivot_table object.

Examples

Run this code
# NOT RUN {
df <- data.frame(unclass(pt_m4)[c(1:7)])
pt <- pivot_table(df)

pt <- pivot_table(df, page = "M4")

# }

Run the code above in your browser using DataLab