Hello,

How can i create with the Variable, Catholic, from the Data "swiss" in R logical variables like the following?

- Evangelical: if the proportion of Catholics is below 25 percent.
- Catholic: if the proportion of Catholics is over 75 percent.
- Mixed: if the proportion of Catholics is between 25 and 75 percent.

and how can I get the frequencies from the variables listed above?

many thanks