R/is.R

Defines functions is_integer is.symmetric is_element

Documented in is_element is_integer is.symmetric

#[export]
is_element<-function(x,key){
  if(is.matrix(x)){
    x<-as.vector(x)
  }
  if(is.character(x)){
  	.Call(Rfast_is_element_string, x,key)
  }else{
  	.Call(Rfast_is_element, x,key)
  }
}

#[export]
is.symmetric <- function(x) {
  .Call(Rfast_symmetric,x)
}

#[export]
is_integer <- function(x) {
  .Call(Rfast_is_integer,x)
}

Try the Rfast package in your browser

Any scripts or data that you put into this service are public.

Rfast documentation built on May 18, 2021, 1:07 a.m.