{
  "_id": "6a212a2ccd65a98ecbd22890",
  "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-06-04 07:23:07 UTC",
    "User": "root"
  },
  "Author": "Francisco Martinez [aut, cre]",
  "MD5sum": "a6495ec6d0fb167dd97006024914c8c0",
  "_user": "franciscomartinezdelrio",
  "_type": "src",
  "_file": "tsfknn_0.6.0.tar.gz",
  "_fileid": "a1e8fde9015def19b41c2b1b136bba7e0dc533d632a432216b9634f666a470d2",
  "_filesize": 868371,
  "_sha256": "a1e8fde9015def19b41c2b1b136bba7e0dc533d632a432216b9634f666a470d2",
  "_created": "2026-06-04T07:23:07.000Z",
  "_published": "2026-06-04T07:33:00.100Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79469788469,
      "time": 136,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7405445891"
    },
    {
      "job": 79469788427,
      "time": 119,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7405440521"
    },
    {
      "job": 79469788445,
      "time": 140,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405446567"
    },
    {
      "job": 79469788420,
      "time": 137,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405445460"
    },
    {
      "job": 79469788411,
      "time": 98,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7405507074"
    },
    {
      "job": 79469788543,
      "time": 205,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7405472989"
    },
    {
      "job": 79469788481,
      "time": 135,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405520354"
    },
    {
      "job": 79469788441,
      "time": 237,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405562643"
    },
    {
      "job": 79469278481,
      "time": 214,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405406414"
    },
    {
      "job": 79469788433,
      "time": 126,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405442183"
    },
    {
      "job": 79469788471,
      "time": 102,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7405435753"
    },
    {
      "job": 79469788516,
      "time": 132,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7405444922"
    },
    {
      "job": 79469788461,
      "time": 122,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405441729"
    }
  ],
  "_buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/26937061950",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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"
  },
  "_downloads": {
    "count": 375,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tsfknn"
  },
  "_devurl": "https://github.com/franciscomartinezdelrio/tsfknn",
  "_searchresults": 66,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_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": "14.2.0-4ubuntu2~24.04.1",
      "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-06-04T07:25:23.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "8c2c2644fda59620203b794efa764d79e07211e352d7e18f1c6809acb9aedf6d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/26937061950"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.0",
      "date": "2026-06-04T07:25:01.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "918f4225662d4f3ff729191918ec97b5418bc7136b68d9be437c112617520c97",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/26937061950"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.6.0",
      "date": "2026-06-04T07:25:26.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "31c7fe3d413487749fa5b6ee9d5a24ab59c85ef3a095373af3f3c1448f0e5061",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/26937061950"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.6.0",
      "date": "2026-06-04T07:25:18.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "eab953665c18e6d62931f4acc6c1ab159e16a1daf58f40a57a533a945d3f4dc3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/26937061950"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.0",
      "date": "2026-06-04T07:29:00.000Z",
      "arch": "aarch64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "233fc55a427fcdb5f525276d67c101f224555df3f1f092035466f20e810d2a08",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/26937061950"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.0",
      "date": "2026-06-04T07:26:39.000Z",
      "arch": "x86_64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "e0bfbfabfbcfcb8a30726739db1beee5f7cae5a2174caba2979c01c847b04c93",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/26937061950"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.6.0",
      "date": "2026-06-04T07:29:40.000Z",
      "arch": "aarch64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "29657b9aac3ee4f75021c359d08c8370ae626d610d0d61a0b7ad78caf4e36be9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/26937061950"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.6.0",
      "date": "2026-06-04T07:31:39.000Z",
      "arch": "x86_64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "3a44d5b3468cb0cf06461cc5d5e87d41fcea97a4da3f4267cb5e59ebf0158f3d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/26937061950"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.6.0",
      "date": "2026-06-04T07:25:34.000Z",
      "arch": "emscripten",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "3bb08e68a532eaaf9fa02ea95076d0659f747a6b0661b2d8f081308c2a6bc46f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/26937061950"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6.0",
      "date": "2026-06-04T07:24:24.000Z",
      "arch": "x86_64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "1ae38f6488ffbca66e3b5240d32fb9b20e677fd08c3964f3c14a8e51ae4547e8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/26937061950"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.6.0",
      "date": "2026-06-04T07:24:33.000Z",
      "arch": "x86_64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "25f22b14f6e47137418b69d7d66ce976724fb61311ecf3b93b797d467046082f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/26937061950"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.6.0",
      "date": "2026-06-04T07:24:40.000Z",
      "arch": "x86_64",
      "commit": "45e95c28ac29249f7d46229637cd2656904d27dd",
      "fileid": "6ad8ba94cd89452c7492cf0d614cdea14d205eb99e019dbe09d7233e10893cc1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/26937061950"
    }
  ]
}