Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab 1 #9

Open
jmacost5 opened this issue Aug 26, 2019 · 4 comments
Open

Lab 1 #9

jmacost5 opened this issue Aug 26, 2019 · 4 comments
Labels

Comments

@jmacost5
Copy link

jmacost5 commented Aug 26, 2019

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
Copy link
Collaborator

lecy commented Aug 26, 2019

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

@jmacost5
Copy link
Author

jmacost5 commented Aug 27, 2019 via email

@jmacost5
Copy link
Author

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
Copy link
Collaborator

lecy commented Aug 28, 2019

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!

@lecy lecy added the lab-01 label Aug 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants