simple_rectify converts a set of cells extracted by read_ods_cells() into a traditional rectangular two-dimensional structure.

## Usage

simple_rectify(ods_cells, base_values = TRUE)

## Arguments

ods_cells

A set of cells from an ODS sheet

base_values

Whether to use the base_value of a cell (TRUE, the default) or whether to provide the cell content as seen by a spreadsheet user.

## Value

A tibble representing the original spreadsheet format.

## Details

When set to TRUE (the default) the base_values argument then the underlying cell values are used. When FALSE then cell content as seen by a spreadsheet application user will be shown. See read_ods_cells() for further details.

Column headers are of the format "X#", i.e. "X" and the column number. You can use another function such as janitor::row_to_names() to replace these with values from a row within the dataset.

## Examples

example <- system.file("extdata", "basic_example.ods", package = "tidyods")
#> Unzipping ODS file