googlesheets (version 0.1.0)

gs_reshape_cellfeed: Reshape data from the "cell feed"

Description

Reshape data from the "cell feed" and convert to a tbl_df

Usage

gs_reshape_cellfeed(x, col_names = TRUE, verbose = TRUE)

Arguments

x
a data.frame returned by gs_read_cellfeed
col_names
if TRUE, the first row of the input will be used as the column names; if FALSE, column names will be X1, X2, etc.; if a character vector, vector will be used as the column names
verbose
logical; do you want informative messages?

See Also

Other data.consumption.functions: gs_read_cellfeed; gs_read_csv; gs_read_listfeed; gs_read; gs_simplify_cellfeed

Examples

Run this code
gap_ss <- gs_gap() # register the Gapminder example sheet
gs_read_cellfeed(gap_ss, "Asia", range = cell_rows(1:4))
gs_reshape_cellfeed(gs_read_cellfeed(gap_ss, "Asia", range = cell_rows(1:4)))
gs_reshape_cellfeed(gs_read_cellfeed(gap_ss, "Asia",
                                     range = cell_rows(2:4)),
                    col_names = FALSE)
gs_reshape_cellfeed(gs_read_cellfeed(gap_ss, "Asia",
                                     range = cell_rows(2:4)),
                    col_names = paste0("yo", 1:6))

Run the code above in your browser using DataCamp Workspace