Skip to content
/ miscr Public

miscellaneous helper functions to use within the tidyverse

License

Notifications You must be signed in to change notification settings

yeedle/miscr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

miscr

miscellaneous helper functions I wished were included in tidyverse

usage

To install, use devtools.

devtools::install_github("miscr")

tibble trouble

tibble is a wonderful package, but not all use cases are covered. What if you want to select a particular column as a vector? Sure you can use base r for that, but isn't a pipe idiom nicer?

iris %>% deframe("Species")

mtcars %>% select(cyl) %>% deframe()

Logical not functions

Often, we're intersted in the logical complement of a function. For example, we want to know whether a variable is not NA. The group of is_not functions serve this purpose.

1 %not_in% 2:10
#> [1] TRUE

is_not_na(NA)
#> [1] FALSE

About

miscellaneous helper functions to use within the tidyverse

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages