brolgar icon indicating copy to clipboard operation
brolgar copied to clipboard

features help

Open dicook opened this issue 4 years ago • 0 comments

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)

dicook avatar Jul 17 '20 03:07 dicook