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

User defined pure variables index in mcrpure function should be used as is. #99

Closed
svkucheryavski opened this issue Mar 18, 2021 · 0 comments
Labels
Milestone

Comments

@svkucheryavski
Copy link
Owner

When user provides a vector with pure variables (parameter purevars), they should be used as is and computing of pure variable should be skipped (hint: remove line 382). Here is a code that reproduces this issue:

library(mdatools)
data(simdata)
spectra <- simdata$spectra.c
m <- mcrpure(spectra, ncomp = 3, purevars = c(10, 20, 30))
print(m$purevars)

The output should be 10, 20, 30.

@svkucheryavski svkucheryavski added this to the 0.11.4 milestone Apr 8, 2021
svkucheryavski added a commit that referenced this issue Apr 8, 2021
svkucheryavski added a commit that referenced this issue Apr 8, 2021
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

1 participant