I have two nested lists with the same structure that I'd like to combine (in the c() sense).There might already exist a concept for what I mean by same structure in graph theory, or in computer science, for this relationship but I am not aware.
Say I want to run a loop until a condition is met, at which point the result is saved and the loop exits:
I am facing the following problem. I have a test with multiple questions and the answers of the subjects are recorded in the variables Q1 to Q3 (in reality I have many more questions)
I've got a following list:So we can say that 3 belongs to group 1, 6 belongs to group 2, 7 belongs to group 3 and so on. I need a reverse mapping, i.e. to every number I want to have a group id that it belongs to (see expected output):
I have a group of variables that are used as id's on html elements with matching functions (conveniently named varname.helper()) that I would like to be called whenever an event is triggered on the respective html element.
Can anyone give a suggestion regarding when to use the map() (all map_..() functions) and when to use summarise_at()/mutate_at()?