R/frequency.R

Defines functions freq.min freq.max

Documented in freq.max freq.min

#[export]
freq.max <- function(x,na.rm = FALSE) {
	if(is.integer(x)){
  		.Call(Rfast_max_freq_i,x,na.rm)
	}else{
		.Call(Rfast_max_freq_d,x,na.rm)
	}
}

#[export]
freq.min <- function(x,na.rm = FALSE) {
	if(is.integer(x)){
  		.Call(Rfast_min_freq_i,x,na.rm)
	}else{
		.Call(Rfast_min_freq_d,x,na.rm)
	}
}

Try the Rfast package in your browser

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

Rfast documentation built on Nov. 9, 2023, 5:06 p.m.