Skip to content

Collection of packages and functions for the CLESSN's projects

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

clessn/clessnverse

Repository files navigation

clessnverse

R-CMD-check

clessnverse contains functions for data domestication, analysis and visualization along with functions specific to the research chair’s projects.

Note: This package is under construction.

Installation

To install the latest stable version of this package, run the following line in your R console:

remotes::install_github("clessn/clessnverse")

Usage

library("clessnverse") will load the following packages:

Examples

Normalize a continuous variable between 0 and 1

library(clessnverse)

data <- tibble::tibble(a = c(1, 0, 2, 0), b = c(4, 0, 1, 0))

# Base R
sapply(data, normalize_min_max)
#>        a    b
#> [1,] 0.5 1.00
#> [2,] 0.0 0.00
#> [3,] 1.0 0.25
#> [4,] 0.0 0.00

# Dplyr
library("dplyr")

data %>%
  mutate(across(c(a, b), normalize_min_max))
#> # A tibble: 4 × 2
#>       a     b
#>   <dbl> <dbl>
#> 1   0.5  1   
#> 2   0    0   
#> 3   1    0.25
#> 4   0    0

Issues and suggestions

You can submit bugs or suggestions in the Issues tab of this repo. To facilitate problem solving, please include a minimal reproducible example of the issue.

About

Collection of packages and functions for the CLESSN's projects

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages