-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.Rmd
68 lines (49 loc) · 2.57 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
# Please put your title here to include it in the file below.
Title <- "An accelerometer-derived ballistocardiogram method for detecting heartrates in free-ranging marine mammals"
Authors <- "Czapanskiy, M. F., Ponganis, P. J., Fahlbusch, J. A., and Goldbogen, J. A."
```
# cetaceanbcg
[![DOI](https://zenodo.org/badge/399999855.svg)](https://zenodo.org/badge/latestdoi/399999855)
This repository contains the data and code for our paper:
> `r Authors` (in press). _`r Title`_.
### How to cite
Following publication, please cite this compendium as:
> `r Authors` (`r format(Sys.Date(), "%Y")`). _Compendium of R code and data for "`r Title`"_. Accessed `r format(Sys.Date(), "%d %b %Y")`.
## Contents
The **analysis** directory contains:
- [:file\_folder: paper](/analysis/paper): R Markdown source document
for manuscript. Includes code to reproduce the figures and tables
generated by the analysis. It also has a rendered version,
`paper.docx`, suitable for reading (the code is replaced by figures
and tables in this file)
- [:file\_folder: data](/analysis/data): Data used in the analysis.
- [:file\_folder: figures](/analysis/figures): Plots and other
illustrations
- [:file\_folder: supplementary-materials](/analysis/supplementary-materials):
Supplementary materials including notes and other documents
prepared and collected during the analysis.
## How to download and run locally
This research compendium has been developed using the statistical programming
language R. To work with the compendium, you will need
installed on your computer the [R software](https://cloud.r-project.org/)
itself and optionally [RStudio Desktop](https://rstudio.com/products/rstudio/download/).
You can download the compendium as a zip from from this URL:
[main.zip](/archive/main.zip). After unzipping:
- open the `.Rproj` file in RStudio
- run `devtools::install()` to ensure you have the packages this analysis depends on (also listed in the
[DESCRIPTION](/DESCRIPTION) file).
- finally, open `analysis/paper/paper.Rmd` and knit to produce the `paper.docx`, or run `rmarkdown::render("analysis/paper/paper.Rmd")` in the R console
### Licenses
**Text and figures :** [CC-BY-4.0](http://creativecommons.org/licenses/by/4.0/)
**Code :** See the [DESCRIPTION](DESCRIPTION) file
**Data :** [CC-0](http://creativecommons.org/publicdomain/zero/1.0/) attribution requested in reuse