cssearcy / AYS-R-Coding-SPR-2020

Coding in R for Policy Analytics
https://cssearcy.github.io/AYS-R-Coding-SPR-2020/
3 stars 3 forks source link

Lab 01 - Question 3 #10

Open aseyingbo1 opened 4 years ago

aseyingbo1 commented 4 years ago

I tried using the sum function on the tax_exempt column but could not find my way around it. Could you please, help with the right code?

jamisoncrawford commented 4 years ago

Are you using na.rm = TRUE inside sum()?

aseyingbo1 commented 4 years ago

Are you using na.rm = TRUE inside sum()?

Yes, I did use it and found out that was the problem.

jamisoncrawford commented 4 years ago

Cool! See? GitHub is awesome for Issues, lol.

On Tue, Jun 23, 2020, 9:09 PM aseyingbo1 notifications@github.com wrote:

Are you using na.rm = TRUE inside sum()?

Yes, I did use it and found out that was the problem.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cssearcy/AYS-R-Coding-SPR-2020/issues/10#issuecomment-648522880, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXLEPAJXKPZS3QC7GGPDATRYFG3HANCNFSM4OGFLNWQ .

aseyingbo1 commented 4 years ago

Cool! See? GitHub is awesome for Issues, lol. On Tue, Jun 23, 2020, 9:09 PM aseyingbo1 @.***> wrote: Are you using na.rm = TRUE inside sum()? Yes, I did use it and found out that was the problem. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#10 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXLEPAJXKPZS3QC7GGPDATRYFG3HANCNFSM4OGFLNWQ .

I bet you.

jamisoncrawford commented 4 years ago

Reopening so others can see.

aseyingbo1 commented 4 years ago

Trying to load the dplyr package to use the filter function but getting error message -

Attaching package: ‘dplyr’ The following objects are masked from ‘package:stats’: filter, lag The following objects are masked from ‘package:base’: intersect, setdiff, setequal, union

Warning message: package ‘dplyr’ was built under R version 4.0.2

I downloaded R version 4.0.2 and loaded the tidyverse package too, but it is not working

jamisoncrawford commented 4 years ago

Those aren't error messages, they just give you a bit of info on package dplyr dependencies. dplyr should work fine.