I am trying to make a subset with with two different variables, however when I run this code:
progressive.vote.demo <- subset(dbj, subset == progressive.vote & republican == 0)
it comes up with this error message:
Error in subset == progressive.vote : comparison (1) is possible only for atomic and list types
This is so I can make a table to run a barplot:
democrats.table <- table(democrats$judge.birthyear == "before 1935",
democrats$judge.birthyear == "from 1935", dbj$progressive.vote)
barplot(democrats.table)