R/writeInventory.R

Defines functions writeInventory

Documented in writeInventory

writeInventory <- function(Inventory,filename = "Inventory.inv",directory=DATA.DIRECTORY){
  
  if (!file.exists(directory)) dir.create(directory)
  fname <- file.path(directory,filename,fsep =.Platform$file.sep)
  columnOrder <- c(6,3,4,5,1,2,7,8,9)
  write.table(Inventory[,columnOrder],fname )
}

Try the CHCN package in your browser

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

CHCN documentation built on May 2, 2019, 8:53 a.m.