Skip to content

bfastlite as force-udf in R#12

Open
henriDierkes wants to merge 3 commits into
davidfrantz:mainfrom
henriDierkes:main
Open

bfastlite as force-udf in R#12
henriDierkes wants to merge 3 commits into
davidfrantz:mainfrom
henriDierkes:main

Conversation

@henriDierkes

Copy link
Copy Markdown

No description provided.

Comment thread rstats/bfastlite.R
# check for missing and zero values
if (all(inarray == 0) | all (is.na(inarray))){

return(rep(-99999, 11))

Copy link
Copy Markdown
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?

Comment thread rstats/bfastlite.R

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

Copy link
Copy Markdown
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
Copy Markdown
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