{"id":16576876,"url":"https://github.com/lightbridge-ks/labcharthrv","last_synced_at":"2025-09-14T22:27:31.629Z","repository":{"id":104273389,"uuid":"480112543","full_name":"Lightbridge-KS/labChartHRV","owner":"Lightbridge-KS","description":"R package 📦 for LabChart's HRV data","archived":false,"fork":false,"pushed_at":"2022-06-08T07:59:50.000Z","size":3935,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T07:14:24.052Z","etag":null,"topics":["data-import","hrv","labchart","r","rpackage"],"latest_commit_sha":null,"homepage":"https://lightbridge-ks.github.io/labChartHRV/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lightbridge-KS.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-04-10T19:00:42.000Z","updated_at":"2023-09-29T16:16:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"bbf8b322-4d04-49c3-a731-8b6d0dad5241","html_url":"https://github.com/Lightbridge-KS/labChartHRV","commit_stats":{"total_commits":42,"total_committers":1,"mean_commits":42.0,"dds":0.0,"last_synced_commit":"204136c40a64943c87d21d4cbadd40c6d3b78a78"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightbridge-KS%2FlabChartHRV","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightbridge-KS%2FlabChartHRV/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightbridge-KS%2FlabChartHRV/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightbridge-KS%2FlabChartHRV/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lightbridge-KS","download_url":"https://codeload.github.com/Lightbridge-KS/labChartHRV/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242097411,"owners_count":20071252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-import","hrv","labchart","r","rpackage"],"created_at":"2024-10-11T22:09:10.182Z","updated_at":"2025-03-05T19:53:34.236Z","avatar_url":"https://github.com/Lightbridge-KS.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# labChartHRV \u003ca href=\"https://lightbridge-ks.github.io/labChartHRV/\"\u003e\u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"138\" /\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental) [![R-CMD-check](https://github.com/Lightbridge-KS/labChartHRV/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Lightbridge-KS/labChartHRV/actions/workflows/R-CMD-check.yaml) [![Codecov test coverage](https://codecov.io/gh/Lightbridge-KS/labChartHRV/branch/main/graph/badge.svg)](https://app.codecov.io/gh/Lightbridge-KS/labChartHRV?branch=main)\n[![DOI](https://zenodo.org/badge/480112543.svg)](https://zenodo.org/badge/latestdoi/480112543)\n\u003c!-- badges: end --\u003e\n\n\u003e **R package :package: for LabChart's Heart Rate Variability Data**\n\n# Overview\n\n`{labChartHRV}` is an R package which contains functions for data import and manipulation of [LabChart's HRV module](https://www.adinstruments.com/products/hrv).\n\n**Use case**\n\n-   Import and transform LabChart's HRV report file (`.txt`) into a tibble (data frame).\n\n# Installation\n\nYou can install the development version of labChartHRV from [GitHub](https://github.com/) with:\n\n-   Install `{remotes}` package by (skip If you already have):\n\n``` r\ninstall.packages(\"remotes\")\n```\n\n-   Install `{labChartHRV}` package by:\n\n``` r\nremotes::install_github(\"Lightbridge-KS/labChartHRV\")\n```\n\n# Problems\n\nThis is a LabChart's HRV report file (`.txt`) of 1 subject.\n\n![](man/figures/hrv-rep-ex1.png)\n\nHow to transform it into a 1-row **data frame** for further analysis?\n\nMoreover, If we have multiple of these text files, how can we transform it into a data frame which has each rows corresponding to each subjects?\n\n`{labChartHRV}` package has functions to solve this problems\n\n# Usage\n\n```{r}\nlibrary(labChartHRV)\n```\n\nThis package comes with example data of LabChart's HRV report file(s) in `.txt`.\n\n```{r path_hrv}\n# Path to a folder containing example HRV report text files\npath_hrv \u003c- labChartHRV_example(\"HRV\")\ndir(path_hrv)\n```\n\nRead HRV report file(s) from `.txt` to a data frame by calling `read_HRV_reports()` with path to either single HRV report or folder containing multiple reports.\n\n```{r hrv_tbl}\n# Read multiple HRV report files from a folder\nhrv_tbl \u003c- read_HRV_reports(path_hrv)\nhrv_tbl\n```\n\n`hrv_tbl` is a **tibble** (data frame)\n\n-   **Columns** are *variables* including the results from time-and frequency-domain HRV analysis.\n\n-   **Rows** corresponding to *report files* (i.e., each subjects).\n\n```{r}\n# Variable names\nnames(hrv_tbl)\n```\n\nVariable's description are store in this data frame:\n\n```{r}\nHRV_vars_desc\n```\n\n# Learn more\n\n-   [Get started using labChartHRV](https://lightbridge-ks.github.io/labChartHRV/articles/labChartHRV.html)\n\n# Collaboration\n\nIf you want to collaborate to add more function to this package, feel free to contact me at [kittipos.sir\\@mahidol.edu](mailto:kittipos.sir@mahidol.edu).\n\n------------------------------------------------------------------------\n\nLast updated: `r Sys.Date()`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightbridge-ks%2Flabcharthrv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightbridge-ks%2Flabcharthrv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightbridge-ks%2Flabcharthrv/lists"}