R/naomit.r

Defines functions naomit naomit_mat

naomit_mat <- function(x)
{
  .Call(R_fast_naomit, x)
}

# naomit_coo <- function(a, i, j)
# {
#   .Call(R_naomit_coo, a, i, j)
# }

### TODO unify
naomit <- function(x)
{
  if (is.numeric(x) && is.matrix(x))
    naomit_mat(x)
  else
    stop("unsupported type in naomit")
}

Try the coop package in your browser

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

coop documentation built on Sept. 19, 2021, 5:07 p.m.