I'm working on the Correlates of War (Interstate Dispute MIDB V4.3) dataset, all I need to do is pull four country codes from the V3 column and have those countries configured as their own data frame along with all the existing rows (V1-V19). someone pls help me.
Because this column is a factor variable, and I'm pulling four of them from the column I'm finding it hard to find an example of the code I would need. Thanks in advance!!
hello, thank you for the reply. That textbook is very useful, thanks for sharing. I installed both "tinyverse" and "dplyr" , and tried using the filter command and it was still unable to return anything for me.
I know this step is not difficult and I'm much more proficient in R than this, but it's stumping me
I'm confused because you said you would pull country codes from a V3 column, and then your examples show selection , on a V4 ?
if whichever column you want to filter by is a factor then when you type out the value to be matched you would wrap it in quotes
That doesn't seem to be the error message that you'd get from mistakenly using a single = in the dplyrfilter function, at least not any recent version of it.
If you have dplyr installed, is it possible that you're forgetting to load it?