brolgar
brolgar copied to clipboard
features help
It could be useful to have documentation on using features. The function comes from fabletools but its not documented well there, points to many other things to read.
Trying to add a new calculation, and just setting the function works but gives bad labels.
> wages %>%
+ features(xp, min)
New names:
* `` -> ...1
New names:
* ...1 -> ...2
# A tibble: 888 x 2
id ...2
<int> <dbl>
1 31 0.015
and trying to give a name, throws an error
> wages %>%
+ features(xp, m=min)
Error in .l[[1]] : subscript out of bounds
# insert reprex here
wages %>%
features(xp, min)
wages %>%
features(xp, m=min)