-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
48 lines (30 loc) 路 1.79 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# rslab
<!-- badges: start -->
[![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/rslab/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Lightbridge-KS/rslab/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
> An educational R package 馃摝 for calculate various respiratory physiology parameters.
## Installation
You can install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("remotes")
remotes::install_github("Lightbridge-KS/rslab")
```
## Overview
`{rslab}` is an R package that contain functions for calculate respiratory physiology parameters in the following categories.
- **ATPS to BTPS converter:** conversion of spirometry lung volume/flows from *ATPS* (Ambient Temperature and Pressure Saturated) to *BTPS* (Body Temperature, Pressure, water vapor Saturated)
- **Harvard Spirometer and Metabolic Rate & Oxygen Consumption:**
- Calculate metabolic rate and oxygen consumption $\dot{V}_{O_2}$ from [Harvard Spirometer](https://www.somatco.com/Recording-Spirometer-50-1833-50-1817.pdf) tracing, height and weight of the subject, and environmental conditions which are temperature and barometric pressure.
- Simulate data to plot Harvard spirometer tracing from respiratory parameters such as oxygen consumption, tidal volume, respiratory rate, and random variation can also be added to give a more realistic plot.