select_measures {rolap}R Documentation

Select measures of a flat table

Description

Select only the indicated measures from the flat table.

Usage

select_measures(ft, measures, na_rm)

## S3 method for class '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.

See Also

flat_table

Other flat table transformation functions: add_custom_column(), remove_instances_without_measures(), replace_empty_values(), replace_string(), replace_unknown_values(), select_attributes(), select_instances_by_comparison(), select_instances(), separate_measures(), transform_attribute_format(), transform_from_values(), transform_to_attribute(), transform_to_measure(), transform_to_values()

Examples


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


[Package rolap version 2.5.1 Index]