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

kctest

Travis build status AppVeyor build status Codecov test coverage

The goal of kctest is to learn how to create an R pacakge. This package is not to be distributed publicly.

Installation

You can install the released version of kctest from CRAN with:

install.packages("kctest")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("kelichiu/kctest")

Example

This is a basic example which shows you how to use number_proportion() function. Create a vector of numbers and pass it to number_proportion() as a parameter. The output will show the proportion of each number in the sum of all numbers.

# roxygen2::roxygenize()
library(kctest)
# Create a vector of numbers
numbers <- c(1,2,3)
# Pass the vector to the function
number_proportion(numbers)


kelichiu/kctest documentation built on July 7, 2020, 12:09 a.m.