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

bfastlite as force-udf in R #12

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

henriDierkes
Copy link

No description provided.

# check for missing and zero values
if (all(inarray == 0) | all (is.na(inarray))){

return(rep(-99999, 11))
Copy link
Owner

Choose a reason for hiding this comment

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

can you change this to -9999, please?


# if breakpoints are determined, retrieve magnitude, rmsd, and number of breakpoints
if (any(!is.na(breakpoints))){
mag <- magnitude(bf$breakpoints)
Copy link
Owner

Choose a reason for hiding this comment

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

can you please fix the indendation in this block, as well as add a space before "else" in l. 79?

@davidfrantz
Copy link
Owner

Can you please add a short readme with some basic information?

You can find an example here: https://github.com/davidfrantz/force-udf/blob/main/rstats/ts/dynamic-habitat-indices/readme.md

Cheers,
David

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