Open trioptre opened 3 years ago
@trioptre One issue is that the rename command has a dependency conflict with another package, which keeps the pop=estimate to work properly. Try to add dplyr:: before rename() each time and see if that works. That is, change rename( POP=estimate ) to dplyr::rename( POP=estimate ).
If that doesn't work, send me your RMD file to anthony.howell@asu.edu.
@AntJam-Howell - I wasn't able to get your suggestion to work, so I submitted Lab 4 with a different MSA that only covered two states (as in the lab 4 overview example). I do have a couple of follow-up questions, though;
What is the name of the other package?
Why would the pop=estimate work properly for two states, but not three states?
Hi @trioptre,
Smart to use an MSA with only 1 state, it can get a bit more complicated with 2 or more states. It wouldn't matter if it is 1, 2, or 3 states. If you look at the resulting dataframe after you were doing the pop=estimate, did you see that the estimate column did not show up correctly? After you use dplyr::rename(pop=estimate) it does show up properly? At least in my case running on my computer, that is what I noticed, but it could depend on what version of specific packages you are using on your own computer. Not sure what other package was causing the problem though.
@AntJam-Howell :
The MSA I chose has three states (in the lab walkthrough/example, there are two states MN/WI).
If I add a msp.pop3 as shown below and rbind all three msps, I get an error "Error in t[, i] : incorrect number of dimensions" when I try to run all of the chunks:
Code Chunk 1:
Code chunk 2 (truncated):
Any suggestions?
Thanks!