1/26/2024 0 Comments Ggplot Invalid column 'y pca'![]() ![]() ![]() Hey Joachim, I don’t know if you still help with code problems, but I’ll try. "character" "integer" "integer" "numeric" ![]() The output for the code head and sapply is this: Names.arg = c( "Full autocracy", "Full democracy", "Anocracy"), Names.arg = c("regime$aut", "regime$dem", "regime$ano"), main = "Democracies", ISAF.ptable <- prop.table(table(ISAF = mocracy$, exclude = NULL)) Regime$ano <- ifelse(mocracy$polity2 -5<5, "anocracy", -6<6) Regime$aut <- ifelse(mocracy$polity2 <= -6, "full autocracy", -5) Once you created the variable regime, create a barplot showing the distribution of this High, then the regime is a “full democracy” finally, if polity2 is in between -5 and 5, regime is an To have three values: if polity2 is -6 or lower, then regime is a “full autocracy” if polity2 is 6 or From the variable polity2, create a new variable called regime. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |