-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
56 lines (46 loc) · 1.52 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
---
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%"
)
```
# compass
<!-- badges: start -->
[![Build Status](https://travis-ci.com/MauroCE/compass.svg?branch=master)](https://travis-ci.com/MauroCE/compass)
[![codecov](https://codecov.io/gh/MauroCE/compass/branch/master/graph/badge.svg)](https://codecov.io/gh/MauroCE/compass)
<!-- badges: end -->
The goal of compass is to exemplify a toy R package for the personal portfolio of the Statistical Computing 1 course attended by first year PhD students in Computational Statistics and Data Science (COMPASS) at the University of Bristol.
## Installation
You can install the development version from [GitHub](https://github.com/) with:
```{r, eval=FALSE}
# install.packages("devtools")
devtools::install_github("MauroCE/compass")
```
## Example
This is a basic example which shows how to use the compass package.
```{r example, eval=FALSE}
# Attach the package
library(compass)
# Find the sum of the squares of two numbers
z <- sumsquares(2, 4)
# and tilt the head of a dataframe
df <- data.frame(matrix(1:30, 10, 3))
tilted_head <- tilt_head(df, 3)
```
we can check the output
```{r, echo=FALSE}
2^2 + 4^2
```
and
```{r, echo=FALSE}
t(head(data.frame(matrix(1:30, 10, 3)), 3))
```
## License
This project is licensed under the terms of the MIT license.
The full license can be found [here](LICENSE.md).