{
  "_id": "6a48a589e06c18f0a6544ed7",
  "Package": "tsfknn",
  "Type": "Package",
  "Title": "Time Series Forecasting Using Nearest Neighbors",
  "Version": "0.6.0",
  "Authors@R": "person(\"Francisco\", \"Martinez\", email = \"fmartin@ujaen.es\",\nrole = c(\"aut\", \"cre\"))",
  "Description": "Allows forecasting time series using nearest neighbors\nregression Francisco Martinez, Maria P. Frias, Maria D.\nPerez-Godoy and Antonio J. Rivera (2019)\n<doi:10.1007/s10462-017-9593-z>. When the forecasting horizon\nis higher than 1, two multi-step ahead forecasting strategies\ncan be used. The model built is autoregressive, that is, it is\nonly based on the observations of the time series. The nearest\nneighbors used in a prediction can be consulted and plotted.",
  "Maintainer": "Francisco Martinez <fmartin@ujaen.es>",
  "License": "GPL-2",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.3",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/franciscomartinezdelrio/tsfknn",
  "BugReports": "https://github.com/franciscomartinezdelrio/tsfknn/issues",
  "Config/testthat/edition": "3",
  "Repository": "https://franciscomartinezdelrio.r-universe.dev",
  "Date/Publication": "2023-12-20 15:47:49 UTC",
  "RemoteUrl": "https://github.com/franciscomartinezdelrio/tsfknn",
  "RemoteRef": "HEAD",
  "RemoteSha": "45e95c28ac29249f7d46229637cd2656904d27dd",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-04 05:52:59 UTC",
    "User": "root"
  },
  "Author": "Francisco Martinez [aut, cre]",
  "_user": "franciscomartinezdelrio",
  "_type": "src",
  "_file": "tsfknn_0.6.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/7e1d00937489e62601469108c598e75a571e0b8826bbbfed67cdb36d1cfc9608",
  "_filesize": 870153,
  "_sha256": "7e1d00937489e62601469108c598e75a571e0b8826bbbfed67cdb36d1cfc9608",
  "_expires": "2026-10-12T06:17:43.000Z",
  "_created": "2026-07-04T05:52:59.000Z",
  "_published": "2026-07-04T06:17:45.161Z",
  "_jobs": [
    {
      "job": 85107908536,
      "time": 163,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8078879749"
    },
    {
      "job": 85107908538,
      "time": 139,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8078876412"
    },
    {
      "job": 85107908549,
      "time": 146,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8078877566"
    },
    {
      "job": 85107908534,
      "time": 145,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8078877180"
    },
    {
      "job": 85107908557,
      "time": 88,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8079035019"
    },
    {
      "job": 85107908544,
      "time": 321,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8078899136"
    },
    {
      "job": 85107908589,
      "time": 89,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8079050369"
    },
    {
      "job": 85107908542,
      "time": 191,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8078883428"
    },
    {
      "job": 85107717004,
      "time": 173,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8078858206"
    },
    {
      "job": 85107908526,
      "time": 136,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8078875941"
    },
    {
      "job": 85107908548,
      "time": 113,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8078872708"
    },
    {
      "job": 85107908550,
      "time": 97,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8078870765"
    },
    {
      "job": 85107908535,
      "time": 112,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8078872624"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/28696791194",
  "_status": "success",
  "_upstream": "https://github.com/franciscomartinezdelrio/tsfknn",
  "_commit": {
    "id": "45e95c28ac29249f7d46229637cd2656904d27dd",
    "author": "franciscomartinezdelrio <fmartin@ujaen.es>",
    "committer": "franciscomartinezdelrio <fmartin@ujaen.es>",
    "message": "changing package version\n",
    "time": 1703087269
  },
  "_maintainer": {
    "name": "Francisco Martinez",
    "email": "fmartin@ujaen.es",
    "login": "franciscomartinezdelrio",
    "description": "",
    "uuid": 18212287
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.1.1",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "franciscomartinezdelrio",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 11,
  "_contributors": [
    {
      "user": "franciscomartinezdelrio",
      "count": 131,
      "uuid": 18212287
    },
    {
      "user": "emraher",
      "count": 1,
      "uuid": 1182257
    }
  ],
  "_userbio": {
    "uuid": 18212287,
    "type": "user",
    "name": "Francisco Martínez del Río",
    "followers": 7
  },
  "_downloads": {
    "count": 495,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tsfknn"
  },
  "_devurl": "https://github.com/franciscomartinezdelrio/tsfknn",
  "_searchresults": 66,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/tsfknn.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/franciscomartinezdelrio/tsfknn",
  "_realowner": "franciscomartinezdelrio",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2018-03-28"
    },
    {
      "version": "0.2.0",
      "date": "2019-04-09"
    },
    {
      "version": "0.3.0",
      "date": "2019-05-31"
    },
    {
      "version": "0.4.0",
      "date": "2020-06-04"
    },
    {
      "version": "0.5.0",
      "date": "2021-04-05"
    },
    {
      "version": "0.5.1",
      "date": "2023-03-09"
    },
    {
      "version": "0.5.2",
      "date": "2023-09-04"
    },
    {
      "version": "0.6.0",
      "date": "2023-12-20"
    }
  ],
  "_exports": [
    "knn_examples",
    "knn_forecasting",
    "n_training_examples",
    "nearest_neighbors",
    "rolling_origin"
  ],
  "_help": [
    {
      "page": "autoplot.knnForecast",
      "title": "Create a ggplot object from a knnForecast object",
      "topics": [
        "autoplot.knnForecast"
      ]
    },
    {
      "page": "knn_examples",
      "title": "Examples of the model associated with a prediction",
      "topics": [
        "knn_examples"
      ]
    },
    {
      "page": "knn_forecasting",
      "title": "Time series forecasting using KNN regression",
      "topics": [
        "knn_forecasting"
      ]
    },
    {
      "page": "n_training_examples",
      "title": "Number of training examples",
      "topics": [
        "n_training_examples"
      ]
    },
    {
      "page": "nearest_neighbors",
      "title": "Nearest neighbors associated with predictions",
      "topics": [
        "nearest_neighbors"
      ]
    },
    {
      "page": "plot.knnForecastRO",
      "title": "Plot a prediction of a test set",
      "topics": [
        "plot.knnForecastRO"
      ]
    },
    {
      "page": "predict.knnForecast",
      "title": "Predict method for KNN models for time series forecasting.",
      "topics": [
        "predict.knnForecast"
      ]
    },
    {
      "page": "rolling_origin",
      "title": "Assessing forecasting accuracy with rolling origin",
      "topics": [
        "rolling_origin"
      ]
    }
  ],
  "_readme": "https://github.com/franciscomartinezdelrio/tsfknn/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "tsfknn.Rmd",
      "filename": "tsfknn.html",
      "title": "Time Series Forecasting with KNN in R: the tsfknn Package",
      "author": "Francisco Martinez, Maria P. Frias, Francisco Charte, Antonio J. Rivera",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Time series forecasting with KNN regression",
        "Multi-step ahead strategies",
        "The Multiple Input Multiple Output strategy",
        "The recursive strategy",
        "Additional features",
        "Combination and distance function",
        "Combining several models with different k parameters",
        "Forecasting time series with a trend",
        "Automatic forecasting",
        "Evaluating the model",
        "Conclusions",
        "References"
      ],
      "created": "2018-03-21 11:56:39",
      "modified": "2023-12-20 11:15:38",
      "commits": 18
    }
  ],
  "_score": 5.559906625036112,
  "_indexed": true,
  "_nocasepkg": "tsfknn",
  "_universes": [
    "franciscomartinezdelrio"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.0",
      "date": "2026-07-04T05:55:40.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "https://r2.ropensci.org/141208a6807512e2d5574d631643cf247053245863bb1e15c9d973aec57f6cc5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/28696791194"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.0",
      "date": "2026-07-04T05:55:06.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "https://r2.ropensci.org/c4a510d9b938398feafb4fb9b240519f98113ecc186e73bed6a3afb20c4bd04f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/28696791194"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.6.0",
      "date": "2026-07-04T05:55:20.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "https://r2.ropensci.org/c58e0ac53cb5a744a616a332fae970b95b68c570c81b714d0bb424ffc6aef608",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/28696791194"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.6.0",
      "date": "2026-07-04T05:55:08.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "https://r2.ropensci.org/6cdb032ba556d3aa76ddf1c078b5761054a874a0bf700349ac555aaa214ecb12",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/28696791194"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.0",
      "date": "2026-07-04T06:15:08.000Z",
      "arch": "aarch64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "https://r2.ropensci.org/3f8f877b5fdbddee6fc5a5216ebb8ea73a19614a4bb17825955a93b2aef47664",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/28696791194"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.0",
      "date": "2026-07-04T05:57:22.000Z",
      "arch": "x86_64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "https://r2.ropensci.org/bb3899ddf6c91d8c64fd2710d16064227ceab3cf8999a2990d901d7d4214e279",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/28696791194"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.6.0",
      "date": "2026-07-04T06:16:59.000Z",
      "arch": "aarch64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "https://r2.ropensci.org/b1fc42003fa0ce371b4112d26c737fa12a9b046d88095f9e20924663c0b177e0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/28696791194"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.6.0",
      "date": "2026-07-04T05:55:47.000Z",
      "arch": "x86_64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "https://r2.ropensci.org/e4d252c3b3f214e34e423dec5c7aa16e7243846f2b7cd3bb878b4d4255e2ef8f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/28696791194"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.6.0",
      "date": "2026-07-04T05:55:29.000Z",
      "arch": "emscripten",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "https://r2.ropensci.org/30e6e84c255d52a175e31a022dc17e7770852898033d9c3ca4acc40ae494d776",
      "status": "success",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/28696791194"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6.0",
      "date": "2026-07-04T05:54:13.000Z",
      "arch": "x86_64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "https://r2.ropensci.org/cb6a12f3a74948b623df7a2d6fa188fa78be27426dd082fd5958904a59f922fe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/28696791194"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.6.0",
      "date": "2026-07-04T05:54:03.000Z",
      "arch": "x86_64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "https://r2.ropensci.org/0a39c8797c7f10195519ac53cedca3cbf2cb818c7d3657ea61ba5b34efef74f2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/28696791194"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.6.0",
      "date": "2026-07-04T05:54:19.000Z",
      "arch": "x86_64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "https://r2.ropensci.org/e4c8e006efa1bf866da8e12752419d8917f1ada7cfcd67e922215a044fdc4c53",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/28696791194"
    }
  ]
}