Skip to contents

The values of an attribute will become measure names. There can only be one measure that will be from where the new defined measures take the values.

Usage

transform_from_values(ft, attribute)

# S3 method for flat_table
transform_from_values(ft, attribute = NULL)

Arguments

ft

A flat_table object.

attribute

A string, attribute that stores the measures names.

Value

A flat_table object.

Examples


ft <- flat_table('iris', iris) |>
  transform_to_values(attribute = 'Characteristic',
                      measure = 'Value',
                      id_reverse = 'id')
ft <- ft |>
  transform_from_values(attribute = 'Characteristic')