Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ catcont Public

❗ This is a read-only mirror of the CRAN R package repository. catcont — Test, Identify, Select and Mutate Categorical or Continuous Values. Homepage: https://github.com/decisionpatterns/catcont http://www.decisionpatterns.com Report bugs for this package: https://github.com/decisionpatterns/catcont/issues

License

Notifications You must be signed in to change notification settings

cran/catcont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

catcont

Test For and Identify Categorical or Continuous Values

CRAN_Status_Badge License

This collection of methods and utilities allows for a working with vectors at a higher level abstraction, i.e. by whether they are categorical (nominal) or continous. The functions allow for testing, identifying, selecting, mutating,etc. and work with both atomic vectors and recursive objects (table and list-like) objects in a tidyverse compliant way.

Installation

You can install from CRAN with:

install.packages("catcont")

You can install catcont from github with:

# install.packages("devtools")
devtools::install_github("decisionpatterns/catcont")

Example

Tests

is_cat(letters)          # TRUE
is_cat(factor(letters))  # TRUE
is_cat(TRUE)             # TRUE
is_cat(FALSE)            # TRUE
is_cat(1:10)             # FALSE
is_cat(rnorm(10))        # FALSE
is_cat( Sys.Date() )     # FALSE
is_cat( complex(1,2) )   # FALSE
 
is_cont(letters)         # FALSE
is_cont(factor(letters)) # FALSE
is_cont(TRUE)            # FALSE
is_cont(FALSE)           # FALSE
is_cont(1:10)            # TRUE
is_cont(rnorm(10))       # TRUE
is_cont( Sys.Date() )    # TRUE
is_cont( complex(1,2) )  # TRUE

Identification

# Atomic 
cat_cont(1:10)
cat_cont(letters)
 
# Recursive 
cat_cont(iris)
 
which_cat(iris)
which_cat( iris, names=TRUE )
  
which_cont(iris)
which_cont( iris, names=TRUE )

Selection

iris %>% select_cat()
iris %>% select_cont()

Mutation

iris %>% mutate_if_cat(...)
iris %>% mutate_if_cont(...)

About

❗ This is a read-only mirror of the CRAN R package repository. catcont — Test, Identify, Select and Mutate Categorical or Continuous Values. Homepage: https://github.com/decisionpatterns/catcont http://www.decisionpatterns.com Report bugs for this package: https://github.com/decisionpatterns/catcont/issues

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages