R/check.cdf.type.R

Defines functions check.cdf.type

Documented in check.cdf.type

###
### File: check.cdf.type.R
###
### Aim: return a string giving the file format. Either text, xda or unknown
###      in the case that file format is not known.
###


check.cdf.type <- function(filename){

  if (.Call("CheckCDFtext",filename,PACKAGE="affyio")){
    return("text")
  } else if (.Call("CheckCDFXDA",filename,PACKAGE="affyio")){
    return("xda")
  } else {
    return("unknown")
  }
}

Try the affyio package in your browser

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

affyio documentation built on Nov. 8, 2020, 6:53 p.m.