R/write_surmisefunction.R

###
### write_surmisefunction.R
###

write_surmisefunction <- function (x, filename) {
  if (!inherits(x, "matrix")) {
    stop(sprintf("%s must be of class %s or %s!",
                 dQuote("x"),
                 dQuote("relation"),
                 dQuote("matrix")
    ))
  }
  
  write.csv(x, filename, row.names = FALSE)
}
  

Try the kstIO package in your browser

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

kstIO documentation built on Feb. 16, 2023, 6:22 p.m.