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 function matchDim #175

Merged
merged 4 commits into from
Jun 28, 2024
Merged

add function matchDim #175

merged 4 commits into from
Jun 28, 2024

Conversation

fbenke-pik
Copy link
Contributor

No description provided.

@fbenke-pik fbenke-pik requested a review from tscheypidi June 27, 2024 10:26
Copy link
Member

@tscheypidi tscheypidi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, just the subdimension check needs to be also performed for the other two main dimensions

R/matchDim.R Outdated
stop("argument 'dim' can only contain numbers between 1 and 3")
}

if (3 %in% dim && ndim(x, dim = 3) != ndim(ref, dim = 3)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need the same check for all the other dimensions as all main dimensions nowadays can have subdimensions (see for instance maxample("animal"))

@fbenke-pik fbenke-pik requested a review from tscheypidi June 28, 2024 09:03
@fbenke-pik fbenke-pik merged commit 37762a8 into pik-piam:master Jun 28, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants