{
  "_id": "6a1eff09b401979e7341a8e2",
  "Package": "forceR",
  "Title": "Force Measurement Analyses",
  "Description": "For cleaning and analysis of graphs, such as animal\nclosing force measurements. 'forceR' was initially written and\noptimized to deal with insect bite force measurements, but can\nbe used for any time series. Includes a full workflow to load,\nplot and crop data, correct amplifier and baseline drifts,\nidentify individual peak shapes (bites), rescale (normalize)\npeak curves, and find best polynomial fits to describe and\nanalyze force curve shapes.",
  "Version": "1.0.21",
  "Date": "2024-03-22",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/Peter-T-Ruehr/forceR",
  "BugReports": "https://github.com/Peter-T-Ruehr/forceR/issues",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.1",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Authors@R": "c(person(given = \"Peter T.\",\nfamily = \"Rühr\",\nemail = \"peter.ruehr@gmail.com\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0003-2776-6172\")),\nperson(given = \"Alexander\",\nfamily = \"Blanke\",\nrole = c(\"ctb\"),\ncomment = c(ORCID = \"0000-0003-4385-6039\")))",
  "Maintainer": "Peter T. Rühr <peter.ruehr@gmail.com>",
  "LazyData": "true",
  "Config/pak/sysreqs": "make libicu-dev libx11-dev",
  "Repository": "https://pete-s-lab.r-universe.dev",
  "Date/Publication": "2024-03-24 21:56:55 UTC",
  "RemoteUrl": "https://github.com/pete-s-lab/forcer",
  "RemoteRef": "HEAD",
  "RemoteSha": "36ca1c7c0e2169c9442ddb25b617433a44bb6953",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-18 09:24:26 UTC",
    "User": "root"
  },
  "Author": "Peter T. Rühr [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-2776-6172>),\nAlexander Blanke [ctb] (ORCID: <https://orcid.org/0000-0003-4385-6039>)",
  "MD5sum": "09e34088d62f28f4b970969458d68931",
  "_user": "pete-s-lab",
  "_type": "src",
  "_file": "forceR_1.0.21.tar.gz",
  "_fileid": "6b2eba7b6a4a0a2e3986162deabd0063dbf01a88debfa59f96a580e8a1efd710",
  "_filesize": 3281560,
  "_sha256": "6b2eba7b6a4a0a2e3986162deabd0063dbf01a88debfa59f96a580e8a1efd710",
  "_created": "2026-05-18T09:24:26.000Z",
  "_published": "2026-06-02T16:04:25.751Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79115718111,
      "time": 153,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7054122673"
    },
    {
      "job": 79115718606,
      "time": 148,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054120998"
    },
    {
      "job": 79115718533,
      "time": 153,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7054114748"
    },
    {
      "job": 79115718610,
      "time": 148,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054111408"
    },
    {
      "job": 79115717945,
      "time": 222,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054068978"
    },
    {
      "job": 79115717433,
      "time": 120,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7363174026"
    },
    {
      "job": 79115718798,
      "time": 223,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7054146838"
    },
    {
      "job": 79115718975,
      "time": 97,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7054104181"
    },
    {
      "job": 79115719079,
      "time": 91,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054101608"
    }
  ],
  "_buildurl": "https://github.com/r-universe/pete-s-lab/actions/runs/26024704053",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/pete-s-lab/forcer",
  "_commit": {
    "id": "36ca1c7c0e2169c9442ddb25b617433a44bb6953",
    "author": "Peter T. Ruehr <peter.ruehr@gmail.com>",
    "committer": "Peter T. Ruehr <peter.ruehr@gmail.com>",
    "message": "ignoring test folder\n",
    "time": 1711317415
  },
  "_maintainer": {
    "name": "Peter T. Rühr",
    "email": "peter.ruehr@gmail.com",
    "login": "peter-t-ruehr",
    "twitter": "@Peter_Th_R",
    "description": "",
    "uuid": 17580252,
    "orcid": "0000-0003-2776-6172"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "filesstrings",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "roll",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "pete-s-lab",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "peter-t-ruehr",
      "count": 109,
      "uuid": 17580252
    }
  ],
  "_userbio": {
    "uuid": 238966047,
    "type": "organization",
    "name": "Pete's Lab",
    "description": "A collection of my published and unpublished scripts"
  },
  "_downloads": {
    "count": 264,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/forceR"
  },
  "_devurl": "https://github.com/peter-t-ruehr/forcer",
  "_searchresults": 14,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/forceR.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/pete-s-lab/forcer",
  "_realowner": "pete-s-lab",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.13",
      "date": "2022-05-02"
    },
    {
      "version": "1.0.14",
      "date": "2022-05-10"
    },
    {
      "version": "1.0.15",
      "date": "2022-06-07"
    },
    {
      "version": "1.0.18",
      "date": "2023-02-27"
    },
    {
      "version": "1.0.20",
      "date": "2023-03-01"
    }
  ],
  "_exports": [
    "amp_drift_corr",
    "avg_peaks",
    "baseline_corr",
    "convert_measurement",
    "correct_peak",
    "crop_measurement",
    "find_best_fits",
    "find_strongest_peaks",
    "forceR_example",
    "load_mult",
    "load_single",
    "peak_duration_max_force",
    "peak_to_poly",
    "plot_measurement",
    "plot_peaks",
    "print_progress",
    "red_peaks_100",
    "reduce_frq",
    "rescale_peaks",
    "rescale_to_range",
    "simulate_bites",
    "sort_files",
    "summarize_measurements",
    "today",
    "y_to_force"
  ],
  "_datasets": [
    {
      "name": "classifier",
      "title": "Classifier",
      "object": "classifier",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "species",
        "specimen",
        "measurement",
        "amp",
        "lever.ratio"
      ],
      "rows": 24,
      "table": true,
      "tojson": true
    },
    {
      "name": "df.all",
      "title": "Simulated Force Measurements with Taxonomic Info.",
      "object": "df.all",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "t",
        "y",
        "measurement"
      ],
      "rows": 9600,
      "table": true,
      "tojson": true
    },
    {
      "name": "df.all.200",
      "title": "Simulated Time Series - e.g. Bite Force Measurements",
      "object": "df.all.200",
      "class": [
        "grouped_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "t",
        "y",
        "measurement"
      ],
      "rows": 1944,
      "table": true,
      "tojson": true
    },
    {
      "name": "df.all.200.tax",
      "title": "Simulated Force Measurements with Taxonomic Info.",
      "object": "df.all.200.tax",
      "class": [
        "grouped_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "species",
        "specimen",
        "measurement",
        "t",
        "force"
      ],
      "rows": 1944,
      "table": true,
      "tojson": true
    },
    {
      "name": "models",
      "title": "Polynomial Models Describing Average Peak Shapes.",
      "object": "models",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "peaks.df",
      "title": "Starts and Ends of the 5 Strongest Peaks",
      "object": "peaks.df",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "species",
        "measurements",
        "starts",
        "ends"
      ],
      "rows": 4,
      "table": true,
      "tojson": true
    },
    {
      "name": "peaks.df.100.avg",
      "title": "Average Peak Shapes per Species",
      "object": "peaks.df.100.avg",
      "class": [
        "grouped_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "species",
        "index",
        "force.norm.100.avg"
      ],
      "rows": 400,
      "table": true,
      "tojson": true
    },
    {
      "name": "peaks.df.norm",
      "title": "Normalized Peak Shapes",
      "object": "peaks.df.norm",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "measurement",
        "peak",
        "t.norm",
        "force.norm",
        "species",
        "specimen"
      ],
      "rows": 223,
      "table": true,
      "tojson": true
    },
    {
      "name": "peaks.df.norm.100",
      "title": "Normalized Peak Shapes with 100 Observations",
      "object": "peaks.df.norm.100",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "species",
        "measurement",
        "specimen",
        "peak",
        "index",
        "force.norm.100"
      ],
      "rows": 2000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "amp_drift_corr",
      "title": "Charge Amplifier Drift Correction",
      "topics": [
        "amp_drift_corr"
      ]
    },
    {
      "page": "avg_peaks",
      "title": "Average Curves per Group",
      "topics": [
        "avg_peaks"
      ]
    },
    {
      "page": "baseline_corr",
      "title": "Automatic or Manual Baseline Correction of Time Series",
      "topics": [
        "baseline_corr"
      ]
    },
    {
      "page": "classifier",
      "title": "Classifier",
      "topics": [
        "classifier"
      ]
    },
    {
      "page": "convert_measurement",
      "title": "Converts LJStream *.dat file to standard time series.",
      "topics": [
        "convert_measurement"
      ]
    },
    {
      "page": "correct_peak",
      "title": "Manually Correct Single Peak",
      "topics": [
        "correct_peak"
      ]
    },
    {
      "page": "crop_measurement",
      "title": "Crop Time Series",
      "topics": [
        "crop_measurement"
      ]
    },
    {
      "page": "df.all",
      "title": "Simulated Force Measurements with Taxonomic Info.",
      "topics": [
        "df.all"
      ]
    },
    {
      "page": "df.all.200",
      "title": "Simulated Time Series - e.g. Bite Force Measurements",
      "topics": [
        "df.all.200"
      ]
    },
    {
      "page": "df.all.200.tax",
      "title": "Simulated Force Measurements with Taxonomic Info.",
      "topics": [
        "df.all.200.tax"
      ]
    },
    {
      "page": "find_best_fits",
      "title": "Find Best Polynomial Fits for Curves",
      "topics": [
        "find_best_fits"
      ]
    },
    {
      "page": "find_strongest_peaks",
      "title": "Find Peaks",
      "topics": [
        "find_strongest_peaks"
      ]
    },
    {
      "page": "forceR_example",
      "title": "Get path to forceR example",
      "topics": [
        "forceR_example"
      ]
    },
    {
      "page": "load_mult",
      "title": "Load Multiple Measurements",
      "topics": [
        "load_mult"
      ]
    },
    {
      "page": "load_single",
      "title": "Load single measurement",
      "topics": [
        "load_single"
      ]
    },
    {
      "page": "models",
      "title": "Polynomial Models Describing Average Peak Shapes.",
      "topics": [
        "models"
      ]
    },
    {
      "page": "peak_duration_max_force",
      "title": "Peak Duration and Maximum Force",
      "topics": [
        "peak_duration_max_force"
      ]
    },
    {
      "page": "peak_to_poly",
      "title": "Convert Time Series to Polynomial",
      "topics": [
        "peak_to_poly"
      ]
    },
    {
      "page": "peaks.df",
      "title": "Starts and Ends of the 5 Strongest Peaks",
      "topics": [
        "peaks.df"
      ]
    },
    {
      "page": "peaks.df.100.avg",
      "title": "Average Peak Shapes per Species",
      "topics": [
        "peaks.df.100.avg"
      ]
    },
    {
      "page": "peaks.df.norm",
      "title": "Normalized Peak Shapes",
      "topics": [
        "peaks.df.norm"
      ]
    },
    {
      "page": "peaks.df.norm.100",
      "title": "Normalized Peak Shapes with 100 Observations",
      "topics": [
        "peaks.df.norm.100"
      ]
    },
    {
      "page": "plot_measurement",
      "title": "Plot raw measurement",
      "topics": [
        "plot_measurement"
      ]
    },
    {
      "page": "plot_peaks",
      "title": "Plot Peaks",
      "topics": [
        "plot_peaks"
      ]
    },
    {
      "page": "print_progress",
      "title": "Print progress",
      "topics": [
        "print_progress"
      ]
    },
    {
      "page": "red_peaks_100",
      "title": "Reduce Peaks",
      "topics": [
        "red_peaks_100"
      ]
    },
    {
      "page": "reduce_frq",
      "title": "Reduce Sampling Frequency",
      "topics": [
        "reduce_frq"
      ]
    },
    {
      "page": "rescale_peaks",
      "title": "Rescale Peaks",
      "topics": [
        "rescale_peaks"
      ]
    },
    {
      "page": "rescale_to_range",
      "title": "Scale data series to new minimum and maximum",
      "topics": [
        "rescale_to_range"
      ]
    },
    {
      "page": "simulate_bites",
      "title": "Simulate bites",
      "topics": [
        "simulate_bites"
      ]
    },
    {
      "page": "sort_files",
      "title": "Sorts files after corrections",
      "topics": [
        "sort_files"
      ]
    },
    {
      "page": "summarize_measurements",
      "title": "Summarize Table",
      "topics": [
        "summarize_measurements"
      ]
    },
    {
      "page": "today",
      "title": "Get Today's Date as String",
      "topics": [
        "today"
      ]
    },
    {
      "page": "y_to_force",
      "title": "Convert Time Series to Force",
      "topics": [
        "y_to_force"
      ]
    }
  ],
  "_pkglogo": "https://github.com/pete-s-lab/forcer/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/pete-s-lab/forcer/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "bit",
    "bit64",
    "checkmate",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "dplyr",
    "filesstrings",
    "generics",
    "glue",
    "hms",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "purrr",
    "R6",
    "Rcpp",
    "RcppArmadillo",
    "RcppParallel",
    "readr",
    "rlang",
    "roll",
    "strex",
    "stringi",
    "stringr",
    "tibble",
    "tidyselect",
    "tzdb",
    "utf8",
    "vctrs",
    "vroom",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "forceR.Rmd",
      "filename": "forceR.html",
      "title": "forceR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Installation",
        "Official release",
        "Development version",
        "Detailed example workflow: Data loading and preparation",
        "Load packages to work with this vignette, including forceR",
        "Download raw measurement files",
        "Plot raw measurement",
        "Crop raw measurement",
        "Amplifier drift correction",
        "Automatic or manual baseline correction of time series",
        "File sorting",
        "File loading",
        "Detailed example workflow: Data analysis",
        "Sampling Frequency Reduction",
        "Creating a classifier with dataset info",
        "Convert measurement to force",
        "Minimum, maximum and standard deviation of force data per measurement and species",
        "Initial reduction to one row per specimen",
        "Further summary calculations for species-wise info",
        "Identify bites",
        "Manual peak corrections",
        "Normalize (rescale) peaks",
        "Reduce to 100 time steps per peak",
        "Average peak curve per species",
        "Fit polynomial functions to the force curves",
        "Convert curves to polynomial models",
        "Well done!",
        "forceR workflow example"
      ],
      "created": "2022-03-14 11:58:36",
      "modified": "2024-03-22 12:25:57",
      "commits": 20
    }
  ],
  "_score": 3.845098040014257,
  "_indexed": true,
  "_nocasepkg": "forcer",
  "_universes": [
    "pete-s-lab",
    "peter-t-ruehr"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.21",
      "date": "2026-05-18T09:26:54.000Z",
      "distro": "noble",
      "commit": "36ca1c7c0e2169c9442ddb25b617433a44bb6953",
      "fileid": "6c8763a322abf51dbc695acc9f19aacb00bbad3c59c5d47e0119abdad5015217",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pete-s-lab/actions/runs/26024704053"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.21",
      "date": "2026-05-18T09:26:54.000Z",
      "distro": "noble",
      "commit": "36ca1c7c0e2169c9442ddb25b617433a44bb6953",
      "fileid": "32a69ac36fb12f52941f979dd9119579df54ad5b9bde297a20f7f2268dd115d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pete-s-lab/actions/runs/26024704053"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.21",
      "date": "2026-05-18T09:26:41.000Z",
      "commit": "36ca1c7c0e2169c9442ddb25b617433a44bb6953",
      "fileid": "c35bd7654f14e7176b36957a4086209a56b5ad42caf5a40c0293c6804e5c2ebe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pete-s-lab/actions/runs/26024704053"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.21",
      "date": "2026-05-18T09:26:30.000Z",
      "commit": "36ca1c7c0e2169c9442ddb25b617433a44bb6953",
      "fileid": "1c46ac3b8dad00b60432418f92ed5effff83e84e439d85aa022b619fa00d2ecc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pete-s-lab/actions/runs/26024704053"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.21",
      "date": "2026-05-18T09:27:58.000Z",
      "commit": "36ca1c7c0e2169c9442ddb25b617433a44bb6953",
      "fileid": "7036f966f6d169ed28543a41931274883de4cc1f91b4b34dd4ed2f13ed021835",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pete-s-lab/actions/runs/26024704053"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.21",
      "date": "2026-05-18T09:25:57.000Z",
      "commit": "36ca1c7c0e2169c9442ddb25b617433a44bb6953",
      "fileid": "94aac7e1104a6960783faf97ee1711761d84be1459f53a6012317b2d35beb02b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pete-s-lab/actions/runs/26024704053"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.21",
      "date": "2026-05-18T09:25:48.000Z",
      "commit": "36ca1c7c0e2169c9442ddb25b617433a44bb6953",
      "fileid": "1332527ac5b343bf54631e2cc8451bebd679d54ed146d73e2809fd71bb84c5c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pete-s-lab/actions/runs/26024704053"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.21",
      "date": "2026-06-02T16:03:57.000Z",
      "commit": "36ca1c7c0e2169c9442ddb25b617433a44bb6953",
      "fileid": "6b4fd113bcd7922b5c01a7b7ddad953f9aafda3772bcfa1a2265b1261ee68cc6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/pete-s-lab/actions/runs/26024704053"
    }
  ]
}