Displaying 1 result from an estimated 1 matches for "bankdata".
2008 Nov 25
1
Problem running R from within a script
...hell script that is under
/usr/bin/R/CMD.
[josh at localhost cr]$ cat batchMakeTax.R
library(foreign)
scratchOne <- commandArgs()
inFileArg <- scratchOne[10]
taxFileArg <- scratchOne[11]
sink("debugout.txt", FALSE, "output", FALSE)
print (inFileArg)
print (taxFileArg)
bankData <- read.xport(inFileArg)
sink(NULL)
sink(taxFileArg, FALSE, "output", FALSE)
bdNames <- names(bankData)
numCol <- ncol(bankData)
i=1
while (i <= numCol) {
myVar <- paste(bdNames[i], typeof(bankData[[bdNames[i]]]),
sep=":")
print(myVar)...