Select only the indicated attributes from the flat table.
Usage
select_attributes(ft, attributes)
# S3 method for flat_table
select_attributes(ft, attributes)
See also
Other flat table transformation functions:
add_custom_column()
,
remove_instances_without_measures()
,
replace_empty_values()
,
replace_string()
,
replace_unknown_values()
,
select_instances_by_comparison()
,
select_instances()
,
select_measures()
,
separate_measures()
,
transform_attribute_format()
,
transform_from_values()
,
transform_to_attribute()
,
transform_to_measure()
,
transform_to_values()
Examples
ft <- flat_table('iris', iris) |>
select_attributes(attributes = c('Species'))
ft <- flat_table('ft_num', ft_num) |>
select_attributes(attributes = c('Year', 'WEEK', 'Week Ending Date'))