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

compass

Build Status codecov

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 with:

# install.packages("devtools")
devtools::install_github("MauroCE/compass")

Example

This is a basic example which shows how to use the compass package.

# 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

2^2 + 4^2

and

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.



MauroCE/compass documentation built on Oct. 30, 2019, 9:22 p.m.