readSpc: Function to read X12-spc Files in x12Parameter R objects

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/readSpc.R

Description

Still an early beta, so it will not work in specific situations

Usage

1
readSpc(file,filename=TRUE)

Arguments

file

character vector containing filenames of spc files

filename

if TRUE the filename (without) ".spc" will be used as name for the serie

Details

Not all arguments of an X12 spc file are supported, but the parameters described in x12 should be covered.

Value

The function returns an object of class "x12Single" if the file argument has length 1, otherwise it returns an "x12Batch" object.

Author(s)

Alexander Kowarik

See Also

x12

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
  x12SingleObject1 <- readSpc("D:/aaa.spc")
  x12SingleObject2 <- readSpc("D:/ak_b.SPC")
  x12BatchObject1 <- readSpc(c("D:/ak_b.SPC","D:/aaa.spc"))
  setwd("M:/kowarik/Test/x12test")
  lf <- list.files()
  lf <- lf[unlist(lapply(lf,function(x)substr(x,nchar(x)-2,nchar(x))))
  lf <- lf[-c(grep("ind",lf))]
  allSPC <- readSpc(lf)
  a <- x12(allSPC)  
  plot(a@x12List[[1]])
  summary(a@x12List[[1]])

## End(Not run)

statistikat/x12 documentation built on Sept. 26, 2018, 4:23 p.m.