Watts-College / cpp-528-fall-2021

https://watts-college.github.io/cpp-528-fall-2021/
2 stars 2 forks source link

Lab 03: Following Instructions... #17

Open AmyTrumpower opened 2 years ago

AmyTrumpower commented 2 years ago

I'm having some trouble discerning where we are supposed to enter the code given in the instructions in the lab. In the Inspect Data section I performed the actions in the console and everything seemed to be correct. Then in the section labeled Removing Missing Value Codes and subsequent sections in the Tidy-Up-Dataframes, it seems like we would want to do those actions in a file for future use...it's not a one-time check.

Do I add the code to the projects_data_steps.R file we downloaded?

Thank you in advance. Amy

castower commented 2 years ago

Hello @AmyTrumpower,

Great question! The steps you complete in Removing Missing Value Codes and Tidy-Up-Dataframes should create files that output to the rodeo folder instead of the raw folder. These are the files you will want to reference in future code as they have been updated.

Does that make sense?

mtwelker commented 2 years ago

Prof. @castower, I have a similar question to @AmyTrumpower. Should we do the steps in Removing Missing Value Codes and Tidy-Up-Dataframes in the RStudio console or in a script? If in a script, should we be adding those steps to the projects_data_steps.R file we downloaded or should we create a new script? Thank you!

castower commented 2 years ago

Hello @mtwelker,

You can complete the steps within the RStudio console and save them to your .Rmd file.

mtwelker commented 2 years ago

Okay, I've looked over the instructions again, and now I think that we are not actually supposed to be doing the steps in Removing Missing Value Codes and Tidy-Up-Dataframes ourselves because that's what the project_data_steps.R is doing. Is that right?

castower commented 2 years ago

Hello Michelle,

Yes, to clarify, the steps outlined in part 1 of the tutorial are the same steps that the project_data_steps.R file automatically completes. The tutorial breaks these steps down to assist with ensuring an understanding of how the code works. If you would like to walk through all of the steps and double-check that you are not getting any errors, you can include them in your .rmd file. However, just running the .R file will save the rodeo files.

-Courtney

On Mon, Nov 1, 2021 at 9:59 PM Michelle Welker @.***> wrote:

Okay, I've looked over the instructions again, and now I think that we are not actually supposed to be doing the steps in Removing Missing Value Codes and Tidy-Up-Dataframes ourselves because that's what the project_data_steps.R is doing. Is that right?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/Watts-College/cpp-528-fall-2021/issues/17*issuecomment-957030152__;Iw!!IKRxdwAv5BmarQ!L6nbFjOlLIf3J3Vq00Wsfn5WOqdZ4Hk5eo0GRp3HDHKYEPr4v0W9tKmPkaqLRRM$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AM6K2WRNQ4KTW2EKXDX6YNDUJ5AXFANCNFSM5HEPFSVQ__;!!IKRxdwAv5BmarQ!L6nbFjOlLIf3J3Vq00Wsfn5WOqdZ4Hk5eo0GRp3HDHKYEPr4v0W9tKmP8ntTzUg$ .

tim-ness commented 2 years ago

Hi Prof. @castower,

I apologize but I'm still a bit lost on this. I've had no trouble with part 1 of the tutorial and see the files are loaded in my rodeo file. Then I had no trouble running part 2 of the tutorial for 2000 and 2010 just as it is. However, the lab instructions explicitly state that our RMD submission for Lab 3 cannot look like part 2 of the tutorial because we are supposed to do that work somewhere else and we should know where to do it and how to load it into the RMD file.

From the way it is phrased, it seems like this is supposed to be very obvious so I apologize for the confusion, but I am just not understanding where we are supposed to be doing and saving this work.

Thank you!

castower commented 2 years ago

Hello @tim-ness,

You will create a new .RMD file where you will import the functions from your utilities.R file and the data sets in your rodeo folder.

The data processing steps shouldn't be explicitly written in the .RMD file like they are in the tutorial.

You will also want to ensure the dates are from 1990 instead of 2010.

tim-ness commented 2 years ago

Hi @castower ,

Thank you. So just to clarify, we are only worried about importing the functions and data sets. The actual manipulation and analysis should be done in the .RMD file, is that right? Such as merging, mutating, creating the gentrification variables, etc?

By "the data processing steps shouldn't be explicitly written in the .RMD file like they are in the tutorial" does that mostly mean removing the functions, taking out the instruction notes, and updating the data with the correct dates and our own gentrification work and cartogram?

castower commented 2 years ago

Hello @tim-ness , Yes, exactly!