README.md

Ipaper

R-CMD-check codecov License CRAN

Installation

# devtools::install_github("kongdd/Ipaper")
devtools::install_git("https://gitee.com/adv-r/Ipaper")
# or from gz file
install.packages("../Ipaper_0.1.5.9000.tar.gz", repos = NULL, type = "source", dependencies = TRUE)
# $sudo apt-get install libfftw3-dev

FUNCTIONS

rstudio shortcuts addin

| Description | Shortcut | |---------------------------------------------------|--------------| | copy lines at the cursor position (sublime style) | Alt+C | | clip lines at the cursor position | Ctrl+X | | Select word | Ctrl+D | | Insert %<>% | Ctrl+Shift+, | | Insert %do% {} | Ctrl+Shift+D | | Insert %in% {} | Ctrl+Shift+I | | Open in VSCode | Alt+Shift+V | | Open in smerge | Ctrl+Shift+G | | Open in subl | Alt+Shift+L |

Note that VSCode, smerge or subl should be in the system path, if you want to use it.

After install, run Ipaper::key_blind() to make those shortcuts work.

Visualization

Parallel functions

Base tools

df <- data.frame(year = 2010, day = 1:2, month = 1, site = "A")
l  <- list(a = df, b = df)
melt_list(l, "id")
#>    id year day month site
#> 1:  a 2010   1     1    A
#> 2:  a 2010   2     1    A
#> 3:  b 2010   1     1    A
#> 4:  b 2010   2     1    A

l2 <- listk("type1" = l, "type2" = l)
melt_tree(l2, c("type", "id"))
#>     type id year day month site
#> 1: type1  a 2010   1     1    A
#> 2: type1  a 2010   2     1    A
#> 3: type1  b 2010   1     1    A
#> 4: type1  b 2010   2     1    A
#> 5: type2  a 2010   1     1    A
#> 6: type2  a 2010   2     1    A
#> 7: type2  b 2010   1     1    A
#> 8: type2  b 2010   2     1    A

Updates



kongdd/Ipaper documentation built on March 27, 2024, 5:34 a.m.