DS4PS / cpp-526-fall-2019

Course material for CPP 526 Foundations of Data Science I
http://ds4ps.org/cpp-526-fall-2019
4 stars 4 forks source link

Lab 1 #9

Open jmacost5 opened 5 years ago

jmacost5 commented 5 years ago

I do not think I am understanding what is happening. I do not understand how I am suppose to get the data from the outside source to be read by R. I have literally been working on problem 1 for hours. I do not understand what I need to code in order for R to understand I am trying to just add up all the rows. I am not really getting how to get the data to be used along with understanding what to put in to make all of the rows add together, should I remake the table and then store everything separately. I just do not really understand where to start tbh.

lecy commented 5 years ago

Do you have ten minutes for a virtual walk-through? Might be easier to figure this out while sharing a screen.

jmacost5 commented 5 years ago

I get out of work at 7 tonight but tomorrow after 12 I am free, and I can go to the zoom session

On Mon, Aug 26, 2019 at 3:20 PM Jesse Lecy notifications@github.com wrote:

Do you have ten minutes for a virtual walk-through? Might be easier to figure this out while sharing a screen.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DS4PS/cpp-526-fall-2019/issues/9?email_source=notifications&email_token=AM62SYZ26OOZCQHOQCXFDJ3QGRJKBA5CNFSM4IPUUBIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5F3NNA#issuecomment-525055668, or mute the thread https://github.com/notifications/unsubscribe-auth/AM62SYZGX66ZBXK4E6LMSALQGRJKBANCNFSM4IPUUBIA .

-- Jestrii Acosta Biology, BA

jmacost5 commented 5 years ago

I guess my follow up question for this for 5 and 6 would be if there is a way to specify the one that the questions are asking. Screen Shot 2019-08-27 at 4 18 40 PM

lecy commented 5 years ago

You can answer the question by reading the table produced. So I can at least see where you are getting the information.

But yes, you can sort the table and select specific values based on some criteria (i.e. the max() ). But we haven't covered that yet.

Try: sort( table( dat$var ), decreasing=TRUE ), but that will not work well with two variables.

For now, just printing the table and using it to answer the questions is sufficient!