Closed mksm1228 closed 4 years ago
Please provide a reproducible example: a chunk of code that will tell us a dataset and what you are trying to do, so people can just copy-paste it into their R and run it. It will make it easier for us to help you and also speed up the whole process.
you can try the following: it should not happen if you load the package in the correct order you want. Restart your R session (this will detach all your current packages) and load the package in the order so that the last ones masked the first ones.
@mksm1228, what do you mean that you can't use the filter()
function properly? Do you get an error?
I think the error messages:
x dplyr::filter() masks stats::filter()
x dplyr::lag() masks stats::lag()
are not related to the error you're getting. This just means that there are functions in the tidyverse called filter()
and lag()
that are going to be used in place of the base R functions filter()
and lag()
.
@mksm1228 I do encourage you to try making a reproducible example! It would be good practice. Don't worry if you don't get the reproducible example "just right", we'll try to help you through it.
Thanks for the clarification Vincenzo! I was confused as to why that appeared but my code and filter function works fine now.
Best, Martin
Get Outlook for Androidhttps://aka.ms/ghei36
From: Vincenzo Coia notifications@github.com Sent: Monday, September 23, 2019 4:37:49 PM To: STAT545-UBC-hw-2019-20/Announcements Announcements@noreply.github.com Cc: Martin Keung herrotiga@gmail.com; Mention mention@noreply.github.com Subject: Re: [STAT545-UBC-hw-2019-20/Announcements] Issue with dplyr and tidyverse for hw02 (#11)
I think the error messages:
x dplyr::filter() masks stats::filter() x dplyr::lag() masks stats::lag()
are not related to the error you're getting. This just means that there are functions in the tidyverse called filter() and lag() that are going to be used in place of the base R functions filter() and lag().
@mksm1228https://github.com/mksm1228 I do encourage you to try making a reproducible example! It would be good practice. Don't worry if you don't get the reproducible example "just right", we'll try to help you through it.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/STAT545-UBC-hw-2019-20/Announcements/issues/11?email_source=notifications&email_token=ANCRHWZQ7CD7L2LSRVJTJMTQLFHM3A5CNFSM4IY2SDHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7MSU5Q#issuecomment-534325878, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ANCRHWZM5TWAN2Y6FLC6AP3QLFHM3ANCNFSM4IY2SDHA.
I'm not sure how to replicate this issue but when I load tidyverse, I get a message telling me there is a conflict:
x dplyr::filter() masks stats::filter() x dplyr::lag() masks stats::lag()
I can't use the filter function, filter (), properly in this situation. It's super weird because I had no problem using the filter function in cm006.....