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

Finish off #490 #630

Merged
merged 7 commits into from Mar 6, 2019
Merged

Finish off #490 #630

merged 7 commits into from Mar 6, 2019

Conversation

alexpghayes
Copy link
Collaborator

No description provided.

ltobalina and others added 7 commits August 29, 2018 15:07
For one-dimensional models, return the mean for each component in one column.

For one-dimensional models, the previous code was returning the mean of each component in different columns, and all of them reported in the row corresponding to the last component, while the values for the other rows were filled filled with NAs.
Now, if the model is one-dimensional, the mean for each component is stored in a column vector, which is added to the final table `ret` as a new column named `mean`.
The case of giving a one-dimensional vector to `Mclust()` was missing.
The previous fix was leading to an error if we only asked for one component
when calling `Mclust()`.
`augment.Mclust()` gives an error if the data stored in the object returned
by `Mclust()` is a vector.
@alexpghayes alexpghayes merged commit 86ac694 into master Mar 6, 2019
@alexpghayes alexpghayes deleted the ltobalina-patch-1 branch March 6, 2019 05:11
@github-actions
Copy link

github-actions bot commented Mar 9, 2021

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants