{
  "_id": "6a258754794753ddbc3de093",
  "Package": "trendseries",
  "Type": "Package",
  "Title": "Extract Trends from Time Series",
  "Version": "1.3.0",
  "Description": "Extract trends from monthly and quarterly economic time\nseries. Provides two main functions: augment_trends() for\npipe-friendly 'tibble' workflows and extract_trends() for\ndirect time series analysis. Includes established econometric\nfilters such as Hodrick-Prescott (HP), Baxter-King,\nChristiano-Fitzgerald, and Hamilton, alongside moving averages\nand smoothing methods. Smart defaults are tuned for common\neconomic frequencies following Ravn and Uhlig (2002)\n<doi:10.1162/003465302317411604>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "LazyData": "true",
  "URL": "https://github.com/viniciusoike/trendseries,\nhttps://viniciusoike.github.io/trendseries/",
  "BugReports": "https://github.com/viniciusoike/trendseries/issues",
  "RoxygenNote": "7.3.3",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Authors@R": "person(\"Vinicius\", \"Oike\", , \"viniciusoike@gmail.com\", role = c(\"aut\", \"cre\", \"cph\"))",
  "Repository": "https://viniciusoike.r-universe.dev",
  "Date/Publication": "2026-06-07 12:24:16 UTC",
  "RemoteUrl": "https://github.com/viniciusoike/trendseries",
  "RemoteRef": "HEAD",
  "RemoteSha": "01956f94693c4f8d52579b246074e0ececc584ca",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-07 14:55:31 UTC",
    "User": "root"
  },
  "Author": "Vinicius Oike [aut, cre, cph]",
  "Maintainer": "Vinicius Oike <viniciusoike@gmail.com>",
  "MD5sum": "5f73cb2be618577f44256a229a9c273d",
  "_user": "viniciusoike",
  "_type": "src",
  "_file": "trendseries_1.3.0.tar.gz",
  "_fileid": "0fd403231422f2ea1fff957deec9de6f3d2275798ed577fdd09e780973120f28",
  "_filesize": 5574393,
  "_sha256": "0fd403231422f2ea1fff957deec9de6f3d2275798ed577fdd09e780973120f28",
  "_created": "2026-06-07T14:55:31.000Z",
  "_published": "2026-06-07T14:59:32.776Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79968127554,
      "time": 168,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7465244648"
    },
    {
      "job": 79968127550,
      "time": 172,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7465244955"
    },
    {
      "job": 79968127538,
      "time": 107,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7465237167"
    },
    {
      "job": 79968127542,
      "time": 173,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7465244967"
    },
    {
      "job": 79967883153,
      "time": 223,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7465223163"
    },
    {
      "job": 79968127546,
      "time": 124,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7465239072"
    },
    {
      "job": 79968127555,
      "time": 204,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7465249250"
    },
    {
      "job": 79968127556,
      "time": 124,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7465239136"
    },
    {
      "job": 79968127549,
      "time": 146,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7465241787"
    }
  ],
  "_buildurl": "https://github.com/r-universe/viniciusoike/actions/runs/27095884655",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/viniciusoike/trendseries",
  "_commit": {
    "id": "01956f94693c4f8d52579b246074e0ececc584ca",
    "author": "viniciusoike <viniciusoike@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #9 from viniciusoike/feat/decompose-series\n\ndocs(vignette): tighten decompose-series prose and fix elec-plot labels",
    "time": 1780835056
  },
  "_maintainer": {
    "name": "Vinicius Oike",
    "email": "viniciusoike@gmail.com",
    "login": "viniciusoike",
    "bluesky": "@viniciusoike.bsky.social",
    "twitter": "@viniciusoike",
    "description": "Economist (MSc @ USP) | Founder of EKIO | Data and R",
    "uuid": 10688700
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "dlm",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "hpfilter",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "mFilter",
      "role": "Imports"
    },
    {
      "package": "RcppRoll",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tsbox",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "version": ">= 4.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "role": "Suggests"
    },
    {
      "package": "seasonal",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "xts",
      "role": "Suggests"
    }
  ],
  "_owner": "viniciusoike",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-37",
      "n": 1
    },
    {
      "week": "2025-38",
      "n": 7
    },
    {
      "week": "2025-39",
      "n": 9
    },
    {
      "week": "2025-40",
      "n": 19
    },
    {
      "week": "2025-45",
      "n": 13
    },
    {
      "week": "2025-47",
      "n": 8
    },
    {
      "week": "2025-50",
      "n": 3
    },
    {
      "week": "2026-06",
      "n": 1
    },
    {
      "week": "2026-13",
      "n": 13
    },
    {
      "week": "2026-18",
      "n": 6
    },
    {
      "week": "2026-19",
      "n": 26
    },
    {
      "week": "2026-20",
      "n": 7
    },
    {
      "week": "2026-23",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v1.0.0",
      "date": "2025-10-03"
    },
    {
      "name": "v1.2.0",
      "date": "2026-05-10"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "viniciusoike",
      "count": 132,
      "uuid": 10688700
    }
  ],
  "_userbio": {
    "uuid": 10688700,
    "type": "user",
    "name": "viniciusoike",
    "description": "Economist (MSc @ USP) | Founder of EKIO | Data and R"
  },
  "_downloads": {
    "count": 563,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/trendseries"
  },
  "_devurl": "https://github.com/viniciusoike/trendseries",
  "_pkgdown": "https://viniciusoike.github.io/trendseries/",
  "_searchresults": 21,
  "_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/trendseries.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/viniciusoike/trendseries",
  "_realowner": "viniciusoike",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.1.0",
      "date": "2025-11-12"
    },
    {
      "version": "1.2.0",
      "date": "2026-05-02"
    }
  ],
  "_exports": [
    "augment_trends",
    "decompose_series",
    "deseason_series",
    "df_to_ts",
    "extract_trends",
    "ts_to_df"
  ],
  "_datasets": [
    {
      "name": "coffee_arabica",
      "title": "Daily Arabica Coffee Price",
      "object": "coffee_arabica",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "date",
        "spot_rs",
        "spot_us",
        "usd_2022",
        "trend_ma"
      ],
      "rows": 7128,
      "table": true,
      "tojson": true
    },
    {
      "name": "coffee_robusta",
      "title": "Daily Robusta Coffee Price",
      "object": "coffee_robusta",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "date",
        "spot_rs",
        "spot_us",
        "usd_2022",
        "trend_ma"
      ],
      "rows": 5794,
      "table": true,
      "tojson": true
    },
    {
      "name": "electric",
      "title": "Electric Consumption Residential",
      "object": "electric",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "date",
        "consumption"
      ],
      "rows": 563,
      "table": true,
      "tojson": true
    },
    {
      "name": "electricity",
      "title": "Electricity Consumption by Sector",
      "object": "electricity",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "date",
        "name_series",
        "value"
      ],
      "rows": 1689,
      "table": true,
      "tojson": true
    },
    {
      "name": "gdp_construction",
      "title": "GDP Construction Index",
      "object": "gdp_construction",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "date",
        "index"
      ],
      "rows": 124,
      "table": true,
      "tojson": true
    },
    {
      "name": "ibcbr",
      "title": "Central Bank Economic Activity Index",
      "object": "ibcbr",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "date",
        "index"
      ],
      "rows": 276,
      "table": true,
      "tojson": true
    },
    {
      "name": "metadata_series",
      "title": "Series Metadata",
      "object": "metadata_series",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "series_name",
        "date_col",
        "value_col",
        "group_cols",
        "date_min",
        "date_max",
        "description",
        "frequency",
        "source"
      ],
      "rows": 12,
      "table": false,
      "tojson": true
    },
    {
      "name": "oil_derivatives",
      "title": "Oil Derivatives Production",
      "object": "oil_derivatives",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "date",
        "production"
      ],
      "rows": 563,
      "table": true,
      "tojson": true
    },
    {
      "name": "retail_autofuel",
      "title": "UK Retail Sales - Automotive Fuel",
      "object": "retail_autofuel",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "date",
        "value",
        "name",
        "frequency",
        "source"
      ],
      "rows": 361,
      "table": true,
      "tojson": true
    },
    {
      "name": "retail_volume",
      "title": "UK Retail Index",
      "object": "retail_volume",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "date",
        "name_series",
        "value"
      ],
      "rows": 4113,
      "table": true,
      "tojson": true
    },
    {
      "name": "transit_london_avgs",
      "title": "London Transit - Average Daily Journeys",
      "object": "transit_london_avgs",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "date_month",
        "transit_mode",
        "is_business_day",
        "avg_daily_journeys"
      ],
      "rows": 336,
      "table": true,
      "tojson": true
    },
    {
      "name": "transit_london_monthly",
      "title": "London Transit - Monthly Journey Totals",
      "object": "transit_london_monthly",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "date_month",
        "transit_mode",
        "journey_monthly"
      ],
      "rows": 168,
      "table": true,
      "tojson": true
    },
    {
      "name": "vehicles",
      "title": "Vehicle Production",
      "object": "vehicles",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "date",
        "production"
      ],
      "rows": 539,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "augment_trends",
      "title": "Add trend columns to data frame",
      "topics": [
        "augment_trends"
      ]
    },
    {
      "page": "coffee_arabica",
      "title": "Daily Arabica Coffee Price",
      "topics": [
        "coffee_arabica"
      ]
    },
    {
      "page": "coffee_robusta",
      "title": "Daily Robusta Coffee Price",
      "topics": [
        "coffee_robusta"
      ]
    },
    {
      "page": "converters",
      "title": "Data Format Conversion Utilities",
      "topics": [
        "converters"
      ]
    },
    {
      "page": "decompose_series",
      "title": "Decompose time series into trend, seasonal, and remainder components",
      "topics": [
        "decompose_series"
      ]
    },
    {
      "page": "deseason_series",
      "title": "Seasonally adjust (deseason) a time series",
      "topics": [
        "deseason_series"
      ]
    },
    {
      "page": "df_to_ts",
      "title": "Convert a data.frame into a time series (ts)",
      "topics": [
        "df_to_ts"
      ]
    },
    {
      "page": "electric",
      "title": "Electric Consumption Residential",
      "topics": [
        "electric"
      ]
    },
    {
      "page": "electricity",
      "title": "Electricity Consumption by Sector",
      "topics": [
        "electricity"
      ]
    },
    {
      "page": "extract_trends",
      "title": "Extract trends from time series objects",
      "topics": [
        "extract_trends"
      ]
    },
    {
      "page": "gdp_construction",
      "title": "GDP Construction Index",
      "topics": [
        "gdp_construction"
      ]
    },
    {
      "page": "ibcbr",
      "title": "Central Bank Economic Activity Index",
      "topics": [
        "ibcbr"
      ]
    },
    {
      "page": "metadata_series",
      "title": "Series Metadata",
      "topics": [
        "metadata_series"
      ]
    },
    {
      "page": "oil_derivatives",
      "title": "Oil Derivatives Production",
      "topics": [
        "oil_derivatives"
      ]
    },
    {
      "page": "retail_autofuel",
      "title": "UK Retail Sales - Automotive Fuel",
      "topics": [
        "retail_autofuel"
      ]
    },
    {
      "page": "retail_volume",
      "title": "UK Retail Index",
      "topics": [
        "retail_volume"
      ]
    },
    {
      "page": "transit_london_avgs",
      "title": "London Transit - Average Daily Journeys",
      "topics": [
        "transit_london_avgs"
      ]
    },
    {
      "page": "transit_london_monthly",
      "title": "London Transit - Monthly Journey Totals",
      "topics": [
        "transit_london_monthly"
      ]
    },
    {
      "page": "ts_to_df",
      "title": "Convert time series to tibble",
      "topics": [
        "ts_to_df"
      ]
    },
    {
      "page": "vehicles",
      "title": "Vehicle Production",
      "topics": [
        "vehicles"
      ]
    }
  ],
  "_pkglogo": "https://github.com/viniciusoike/trendseries/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/viniciusoike/trendseries/raw/HEAD/README.md",
  "_rundeps": [
    "anytime",
    "BH",
    "cli",
    "cpp11",
    "data.table",
    "dlm",
    "generics",
    "glue",
    "hpfilter",
    "lattice",
    "lifecycle",
    "lubridate",
    "magrittr",
    "Matrix",
    "mFilter",
    "pillar",
    "pkgconfig",
    "Rcpp",
    "RcppRoll",
    "rlang",
    "tibble",
    "timechange",
    "tsbox",
    "utf8",
    "vctrs"
  ],
  "_vignettes": [
    {
      "source": "decompose-series.Rmd",
      "filename": "decompose-series.html",
      "title": "Decomposing Series",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Decomposing Series",
        "Trend extraction vs decomposition",
        "A first decomposition",
        "STL decomposition",
        "Regression decomposition",
        "Grouped decomposition",
        "Multiplicative seasonality",
        "Other methods",
        "Classical decomposition",
        "Basic structural model",
        "X-13ARIMA-SEATS (seasonal)",
        "Summary"
      ],
      "created": "2026-06-07 04:05:30",
      "modified": "2026-06-07 12:24:16",
      "commits": 2
    },
    {
      "source": "econometric-filters.Rmd",
      "filename": "econometric-filters.html",
      "title": "Econometric Filters",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Henderson and Spencer Moving Averages",
        "The Henderson Filter",
        "The weights",
        "Basic usage",
        "Choosing the window",
        "The Spencer Moving Average",
        "Bandpass Filters: Baxter-King and Christiano-Fitzgerald",
        "Baxter-King Filter",
        "Christiano-Fitzgerald Filter",
        "The Hodrick-Prescott Filter",
        "The smoothing parameter $\\lambda$",
        "The Hamilton Filter",
        "Hamilton vs. HP",
        "All Filters Together",
        "Quick Reference",
        "References"
      ],
      "created": "2026-05-10 23:21:11",
      "modified": "2026-06-07 04:05:30",
      "commits": 2
    },
    {
      "source": "trendseries.Rmd",
      "filename": "trendseries.html",
      "title": "Getting Started with trendseries",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What is trendseries?",
        "Why trendseries?",
        "Getting started",
        "Simple Example",
        "Multiple time series",
        "Multiple trend methods",
        "Finer control",
        "FAQ",
        "How does trendseries compare to the traditional workflow?",
        "What are the alternatives to trendseries?",
        "Acknowledgements",
        "Getting Help"
      ],
      "created": "2025-10-03 00:52:43",
      "modified": "2026-05-10 03:27:30",
      "commits": 10
    },
    {
      "source": "moving-averages.Rmd",
      "filename": "moving-averages.html",
      "title": "Moving Averages for Trend Analysis",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Moving Averages",
        "Simple example",
        "Grouped series",
        "Related methods"
      ],
      "created": "2025-09-16 02:08:53",
      "modified": "2026-06-07 04:05:30",
      "commits": 15
    },
    {
      "source": "methods.Rmd",
      "filename": "methods.html",
      "title": "Trend Extraction Methods",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The two interfaces",
        "The unified parameter system",
        "Method catalogue",
        "Moving averages",
        "Smoothing methods",
        "Econometric filters",
        "Bandpass filters",
        "Decomposition vs. trend extraction",
        "References"
      ],
      "created": "2026-06-07 04:05:30",
      "modified": "2026-06-07 04:05:30",
      "commits": 1
    }
  ],
  "_score": 5.834102655712794,
  "_indexed": true,
  "_nocasepkg": "trendseries",
  "_universes": [
    "viniciusoike"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-06-07T14:57:55.000Z",
      "distro": "noble",
      "commit": "01956f94693c4f8d52579b246074e0ececc584ca",
      "fileid": "26b97ad81a6079a3856396b64385f798a5a4f16e373e318d6533307d9642dac9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/viniciusoike/actions/runs/27095884655"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-06-07T14:57:55.000Z",
      "distro": "noble",
      "commit": "01956f94693c4f8d52579b246074e0ececc584ca",
      "fileid": "7d5214fdb636838cfd8d850e348f1c9043763166f5eebf7473a3005024a2e713",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/viniciusoike/actions/runs/27095884655"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-06-07T14:57:09.000Z",
      "commit": "01956f94693c4f8d52579b246074e0ececc584ca",
      "fileid": "f6290defb16007b387e7741afbaae7fff829e2267ddcc683e289f4770b3b463c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/viniciusoike/actions/runs/27095884655"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-06-07T14:57:31.000Z",
      "commit": "01956f94693c4f8d52579b246074e0ececc584ca",
      "fileid": "85f0409f1801310a724943630fbfd1fde269e7c67f7a3978aa7139685b6a84ff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/viniciusoike/actions/runs/27095884655"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.0",
      "date": "2026-06-07T14:57:53.000Z",
      "commit": "01956f94693c4f8d52579b246074e0ececc584ca",
      "fileid": "a0b16893375fb2504954c874733500153ac8f47dc918d3017dc62221ad06347e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/viniciusoike/actions/runs/27095884655"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-06-07T14:58:18.000Z",
      "commit": "01956f94693c4f8d52579b246074e0ececc584ca",
      "fileid": "c38e7ae41586d67160fb145aad1e223ff435bf0890b7b578e0a7010804998596",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/viniciusoike/actions/runs/27095884655"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-06-07T14:56:56.000Z",
      "commit": "01956f94693c4f8d52579b246074e0ececc584ca",
      "fileid": "017d5ab0bc35e64923294efdb846590fdce5e96b0d21c5da85aef35276e15f17",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/viniciusoike/actions/runs/27095884655"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-06-07T14:57:15.000Z",
      "commit": "01956f94693c4f8d52579b246074e0ececc584ca",
      "fileid": "b3400e1a72bf7885d00564222a7483998d20ba64ad3ce2136a8823205b18b004",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/viniciusoike/actions/runs/27095884655"
    }
  ]
}