Creating a Dummy Variable Based on Three Other Variables

I'm trying to create a new variable (yes/no) for mulitgenerational households based on the responses of three other variables (number of 'adults', 'children', and 'or_older'). Basically, which households have more than one generation in them (so could be a combination of adults and children, or adults and older, or all three). Could someone help me with the coding so that it is able to capture all these variations? I'm new to R so any help is much appreciated.

It would help if you could post a sample of your data as it appears in R.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.