Learn R Programming

⚠️There's a newer version (0.16) of this package.Take me there.

thinkR

the peep function allow you to "have a look" inside a dplyr workflow

library(thinkr)
library(dplyr)
data(iris)
iris %>% peep(head,summary) %>% plot
iris %>% peep_("head","summary") %>% plot
iris %>% peep(funs(head(.,n=2),summary(.,maxsum=2))) %>% plot
iris %>% peep(funs(summary(.,maxsum=2))) %>% plot

clean_names allow to cean dirty names

library(thinkr)
library(dplyr)
data(iris)

iris %>% head
iris %>% clean_names() %>% head
iris %>% clean_names() %>% head

Installation

# install.packages("devtools")
devtools::install_github("ThinkRstat/ThinkR")

Copy Link

Version

Install

install.packages('thinkr')

Monthly Downloads

284

Version

0.11

License

GPL-3

Maintainer

vincent guyader

Last Published

February 20th, 2018

Functions in thinkr (0.11)

clean_vec

Clean character vector
thinkr

thinkr
clean_levels

Clean levels label
clean_names

clean_names
look_like_a_number

return TRUE if this look like a number
make_unique

make.unique improvement
find_name

find pattern in name's dataset
export_xl

export many data.frame into one xlsx
is.12

does this vector only contains 1 and 2
is_full_figures

Predicate for charater vector full of figures
save_as_csv

export a data.frame to csv
set_col_type

set a given coltype to each column in a data.frame
excel_col

return all excel column name
excel_to_ncol

return excel column position number from a column name
all_ggplot_to_pptx

Save all ggplot in a pptx
is_full_na

Predicate for full NA vector
is_likert

is a factor a likert scale
peep

peep the pipeline
ncol_to_excel

return excel column name from a position number
as_mon_numeric

transform a vector into numeric
from_excel_to_posixt

transform the excel numeric date format into POSIXct
%ni%

not in
%>%

Pipe operator
replace_pattern

Replace pattern everywhere in a data.frame
dput_levels

return R instruction to create levels
gsub2

like gsub but keep a factor as factor
is.01

does this vector only contains 0 and 1