select_attributes {rolap} | R Documentation |
Select attributes of a flat table
Description
Select only the indicated attributes from the flat table.
Usage
select_attributes(ft, attributes)
## S3 method for class 'flat_table'
select_attributes(ft, attributes)
Arguments
ft |
A |
attributes |
A vector of names. |
Value
A flat_table
object.
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'))
[Package rolap version 2.5.1 Index]