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

Add methods to apply functions to Rcompadre class objects #112

Open
jonesor opened this issue Feb 22, 2021 · 2 comments
Open

Add methods to apply functions to Rcompadre class objects #112

jonesor opened this issue Feb 22, 2021 · 2 comments
Assignees
Milestone

Comments

@jonesor
Copy link
Owner

jonesor commented Feb 22, 2021

Add methods to apply functions to Rcompadre class objects.
i.e. rather than accepting single matrices, accept sets of matrices.

@jonesor
Copy link
Owner Author

jonesor commented Mar 4, 2021

@iainmstott - is this simply a case of adding an if statement saying, "if this is a compadreDB object, use lapply or mapply to apply the function"?

I'm just wondering whether this is something that can be achieved before the end of the month in time for our planned submission date.

@iainmstott
Copy link
Collaborator

Something like that. More like if matrix-class do X, if compadre matrix do Y, if compadreDB do Z
Tentatively I would say it could be done by the end of the month? It won't be as simple as just changing the behaviour, as the methods are used so much throughout the package, those instances should probably be checked and edited where necessary. Some edits could be necessary if it breaks the code, some could be more "cosmetic" in passing compadre objects to functions rather than extracting matrices and doing it the "long" way

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

2 participants