knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
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.
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("MauroCE/compass")
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))
This project is licensed under the terms of the MIT license. The full license can be found here.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.