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
#> [1] 20
and
#> 1 2 3
#> X1 1 2 3
#> X2 11 12 13
#> X3 21 22 23
This project is licensed under the terms of the MIT license. The full license can be found here.