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

Skipping zeros when computing statistics over regions #94

Open
IsaacDiaz026 opened this issue Jul 12, 2024 · 1 comment
Open

Skipping zeros when computing statistics over regions #94

IsaacDiaz026 opened this issue Jul 12, 2024 · 1 comment

Comments

@IsaacDiaz026
Copy link

Hello,
Is there a way to exclude values of zero when computing summary statistics using apply_paste ? I understand that by default missing data is not counted in computing stats, but I would also like to exclude values of zero.

Thanks!

@dzerbino
Copy link
Collaborator

Hello @IsaacDiaz026 ,

If all your values are positive, you can use the gt 0 unary operator.

If you have negative values you wish to preserve, it would be more complicated. The abs operator could help but you would lose sign.

Hope this helps,

Daniel

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