ipmisc: Miscellaneous Functions for Data Cleaning and Analysis

CRAN_Release_Badge Daily downloads badge Total downloads badge R build status pkgdown Licence Project Status: Active - The project has reached a stable, usable state and is being actively developed. lifecycle minimal R version Codecov test coverage status

Introduction

The ipmisc provides functions for data cleaning and formatting. These functions form data cleaning backend for the following packages:

Note: The ipmisc functions are not expected to have much utility outside of these packages. So, if you wish to use them, do so at your own risk. 😉

Installation

You can install the CRAN version of ipmisc:

install.packages("ipmisc")

And the development version from GitHub with:

remotes::install_github("IndrajeetPatil/ipmisc")

Functions

Function to convert a tidy data to wide data:

library(ipmisc)

long_to_wide_converter(bugs_long, condition, desire, paired = TRUE)
#> # A tibble: 88 x 5
#>    rowid  HDHF  HDLF  LDHF  LDLF
#>    <int> <dbl> <dbl> <dbl> <dbl>
#>  1     1  10     9     6     6  
#>  2     3  10    10    10     5  
#>  3     4   9     6     9     6  
#>  4     5   8.5   5.5   6.5   3  
#>  5     6   3     7.5   0.5   2  
#>  6     7  10    10    10    10  
#>  7     8  10     9    10    10  
#>  8     9  10     6     9.5   9.5
#>  9    11   0     0     2.5   0  
#> 10    12  10     8.5   7.5   9.5
#> # … with 78 more rows

To see all available functionality, see the documentation provided here: https://indrajeetpatil.github.io/ipmisc/reference/index.html