Commit 1d3f44d5 authored by Alec L. Robitaille's avatar Alec L. Robitaille 🚲

Merge branch 'bug/data.table-no-recycling' into 'master'

Bug/data.table no recycling

See merge request !1
parents 479ef3bf ac498cd9
Pipeline #47401769 passed with stages
in 6 minutes and 53 seconds
......@@ -14,7 +14,7 @@ License: GPL-3
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 6.1.0
RoxygenNote: 6.1.1
Suggests:
testthat,
knitr,
......
# v 0.1.1
# v 0.1.1
* fixed data.table recycling change ([#23](https://gitlab.com/robit.a/irg/issues/23))
* minor edits to 'Getting Started' vignette
# v 0.1.0 (2019-01-04)
......
......@@ -313,7 +313,7 @@ model_ndvi <- function(DT, observed = TRUE) {
(1 / (1 + exp((xmidA - t) / scalA)))]
return(DT)
} else if (!observed) {
fitDT <- DT[rep(1:.N, each = 366)][, t := julseq$t]
fitDT <- DT[rep(1:.N, each = 366)][, t := rep(julseq$t, length.out = .N)]
fitDT[, fitted :=
(1 / (1 + exp((xmidS - t) / scalS))) -
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment