Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rAfrica

The goal of rAfrica is to train participants on how to develop a simple package.

Installation

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

install.packages("rAfrica")

Note: This package is not yet on CRAN

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("Shelmith-Kariuki/rAfrica")

Example

This is a basic example which shows you how to solve a common problem:

library(rAfrica)

## jumla function
summation <- jumla(10,20)
summation
#> [1] 30

## counter function
my_tab <- counter(infert, "case")
#> Warning: `group_by_()` is deprecated as of dplyr 0.7.0.
#> Please use `group_by()` instead.
#> See vignette('programming') for more help
#> This warning is displayed once every 8 hours.
#> Call `lifecycle::last_warnings()` to see where this warning was generated.
my_tab
#> # A tibble: 2 x 2
#> # Groups:   case [2]
#>    case     n
#>   <dbl> <int>
#> 1     0   165
#> 2     1    83

About

This package contains functions that were generated during the RLadies Tunis and RLadies Algeirs joint meetup

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages