Category "dummy-variable"

creating dummy variable from ordinal data in r

I have an ordinal variable with the following categories very favorable (1) somewhat favorable (2) somewhat unfavorable (3) very unfavorable (4) don't know (8)

How to create dummy variable for specifc values in a column?

I want to create a dummy variable for a specific value in a column. Let's say my database looks like this : I want a dummy variable just for the museums. pd.ge