Learn R Programming

xtal (version 1.15)

screenCsv: csv exporter of Screen

Description

write Screen condition matrix into csv file

Usage

screenCsv(object, fileName)

Arguments

object
Screen class
fileName
charactor string of csv file

Examples

Run this code
# set up a Design object
# please read the 'design8Vertex' for detail
stock=matrix(nrow=8,ncol=3)
colnames(stock)=c("PEG","pH","salt")
stock[,1]=rep(c(6,16),4)
stock[,2]=rep(c(8,8,9.5,9.5),2)
stock[,3]=rep(c(0,300),each=4)
stock=data.frame(stock)
dim=list(5:0/5,3:0/3,3:0/3)
test8Vertex=design8Vertex(900,stock,dim)
# construct a new Screen object
testScreen<-design2Screen(test8Vertex)
screenCsv(testScreen,fileName="OPT.csv")

Run the code above in your browser using DataLab