0

I need make a for loop like this df, when I can put certain rule like this:

Rack = 48, all rows
profundidad = 1 to 13, in all nivel.
nivel = A to E, put  in _enable_  **Y**
nivel = F to L, put in _enable_ **N**
enable = Y and N

Im want have this data frame

enter image description here

Because I need change the input value with other Rack, profundidad and nivel.

Maybe for loop not is necessary. Im try with dplyr

Dave2e
  • 22,192
  • 18
  • 42
  • 50
  • 2
    Does this answer your question? [Unique combination of all elements from two (or more) vectors](https://stackoverflow.com/questions/11388359/unique-combination-of-all-elements-from-two-or-more-vectors) – divibisan Oct 07 '22 at 18:51
  • 2
    For setting the value of `Enable`, this should answer your question: [Dataframe create new column based on other columns](https://stackoverflow.com/q/39165340/8366499) – divibisan Oct 07 '22 at 18:53

0 Answers0