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.
See also
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'))