Skip to contents

Select only the indicated measures from the flat table.

Usage

select_measures(ft, measures, na_rm)

# S3 method for flat_table
select_measures(ft, measures = NULL, na_rm = TRUE)

Arguments

ft

A flat_table object.

measures

A vector of names.

na_rm

A boolean, remove rows from output where all measure values are NA.

Value

A flat_table object.

Examples


ft <- flat_table('iris', iris) |>
  select_measures(measures = c('Sepal.Length', 'Sepal.Width'))