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

diagnose_outlier() by group variable #95

Open
Greatgit545 opened this issue Apr 2, 2023 · 5 comments
Open

diagnose_outlier() by group variable #95

Greatgit545 opened this issue Apr 2, 2023 · 5 comments
Assignees

Comments

@Greatgit545
Copy link

Thanks for this great package, really love it. Just one question: currently diagnosise_outlier() work with "group" variable but doesn't seem to show the group variable in the results. Is there a way to show the "group" variable" in the results?

Here is the example, the group variable "Species" doesn't show in the results:

        iris %>% 
          group_by(Species) %>% 
          diagnose_outlier() %>% 
          flextable::flextable()

Thanks a lot

@choonghyunryu choonghyunryu self-assigned this Apr 16, 2023
@choonghyunryu
Copy link
Owner

@Greatgit545,
Thank you for your interest in dlookr.

The script you presented outputs the following in my environment:

image

This is the correct result.
The result contains the group variable "Species", and the variable information corresponding to "variables" is output for each level of the group variable.

If I misunderstood your intent, please clarify.

Thanks a lot

@choonghyunryu
Copy link
Owner

@Greatgit545,

I've already written an answer to this issue, and if you don't raise it, I'll close this issue.

@Karen-Silverline
Copy link

Karen-Silverline commented Jan 20, 2024

Hello! May I ask what is the specific definition of outliers? @choonghyunryu

@Greatgit545
Copy link
Author

Very sorry , Choonghyunryu, for my delayed response since I have not been back here for a long time. I rerun my codes and get the following. It seems that dlookr is trying to add the missing group_by variable but failed in my RStudio environment. Not so sure what's wrong:

Screenshot _dlookrs_2024-04-09

@Greatgit545
Copy link
Author

Hi Choonghyunryu, I updated my R and RStudio, now it works. Thanks anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants