View source: R/pcAxisCubeToCSV.R
pcAxisCubeToCSV | R Documentation |
It generates four csv files, plus four more depending on "keyword" parameters in PC-AXIS file.
pcAxisCubeToCSV(prefix,pcAxisCube)
prefix |
prefix for files to be created |
pcAxisCube |
PC-AXIS cube |
Created files names are:
prefix+"pxCube.csv"
prefix+"pxCubeVariable.csv"
prefix+"pxCubeVariableDomain.csv"
prefix+"pxCubeData.csv"
prefix+"pxCube"+name+".csv" With name = A0,A1,A2 ...
NULL
name <- system.file("extdata","datInSFexample6_1.px", package = "qmrparser") stream <- streamParserFromFileName(name,encoding="UTF-8") cstream <- pcAxisParser(stream) if ( cstream$status == 'ok' ) { cube <- pcAxisCubeMake(cstream) pcAxisCubeToCSV(prefix="datInSFexample6_1",pcAxisCube=cube) unlink("datInSFexample6_1*.csv") }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.