Learn R Programming

flattabler (version 1.2.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"))

Value

A pivot_table object.

Arguments

df

A data frame, contains one or more pivot tables.

page

A string, additional information associated with the pivot table.

See Also

Other import functions: read_excel_file(), read_excel_folder(), read_excel_sheet(), read_text_file(), read_text_folder()

Examples

Run this code

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