Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function Factor to transform a continue value to a limited number of different values #125

Open
Seddryck opened this issue Dec 24, 2022 · 0 comments
Labels
new-feature Request for a new feature in the tool

Comments

@Seddryck
Copy link
Owner

The function factor is used to encode a value as a factor (the terms ‘category’ and ‘enumerated type’ are also used for factors). The factor levels are assumed to be ordered.

factor(
  "Baby"     =? {[age] ?| less-than(1)},  
  "Children" =? {[age] ?| less-than(12)},  
  "Teenager" =? {[age] ?| less-than(18)},  
  "Teenager" =? {{[age] ?| less-than(21)} |AND {[continent] ?| equivalent-to("America")}},
  "Adult"
)
@Seddryck Seddryck added the new-feature Request for a new feature in the tool label Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature Request for a new feature in the tool
Projects
None yet
Development

No branches or pull requests

1 participant