cynkra / sdtools

tools to work with swissdata sets
1 stars 0 forks source link

added level_operations #6

Closed karoliskoncevicius closed 5 years ago

karoliskoncevicius commented 5 years ago

NOTES:

  1. Renamed dim_add.R to dim_operations.R
  2. Added dim_rename to dim_operations.R
  3. Created level_operations.R
  4. Added level_drop and level_rename to level_operations.R
  5. added rfind() to utils.R - to perform recursive find on hierarchy list.
karoliskoncevicius commented 5 years ago

Didn't add level_add() - not sure what context it would be useful in. And also what to do with x$data when adding a new level for an existing dimension.

karoliskoncevicius commented 5 years ago

Also is it OK for these functions to work on one dimension/level at a time? For multiple renames Map() or equivalent could be used instead?