keep_minimal: Keep a subset of columns in spreadsheet data

Description Usage Arguments Examples

Description

Keeps these columns, if they exist: sheet, address, row, col, data_type, and value, and if types is TRUE, also is_blank, logical, numeric, date, character, and formula.

Usage

1
keep_minimal(.data, types = FALSE)

Arguments

.data

A table of tidy spreadsheet data (i.e., with columns row, col, and value).

types

If TRUE, also keep columns is_blank, logical, numeric, date, character, and formula.

Examples

1
2
3
4
.data = data.frame(row=rep(1:3, each = 2), col = rep(1:2, times = 3), value = sample.int(6),
  format_code = sample.int(6))
head(.data)
keep_minimal(.data)

MEDSL/medslcleaner documentation built on May 31, 2019, 7:39 a.m.