Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jaromilfrossard/readshcs

Read Data from the Swiss HIV Cohort Study (SHCS)
https://github.com/jaromilfrossard/readshcs

Last synced: 13 days ago
JSON representation

Read Data from the Swiss HIV Cohort Study (SHCS)

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# readshcs

The package readshcs provides helper functions to read datasets of the [Swiss HIV Cohort Study](http://www.shcs.ch/) from a local directory.

## Installation

You can install the development version of readshcs from [GitHub](https://github.com/jaromilfrossard/readshcs) with:

``` r
# install.packages("devtools")
devtools::install_github("jaromilfrossard/readshcs")
```

## Read SHCS data

You can read dataset from the SHCS using:

```{r example, eval=FALSE, include=TRUE}
library(readshcs)
# set the directory of the SHCS
set_shcs_dir(file.path("path","to","directory"))

# read dataset with patients information (pat.csv)
data_pat <- read_shcs_pat()
```

# Links

- SHCS website: http://www.shcs.ch/