Displaying 13 results from an estimated 13 matches for "torenvliet".
2009 Dec 30
2
capturing stdout
I'm wondering if anyone knows of a way to capture system messages, for
instance when I do the following:
> system("../DBScripts/getEODData.sh")
.//LSE_20091230.txt: 154.80 kB 207.24
kB/s
./Fundamentals//LSE.txt: 420.58 kB 301.47
kB/s
./Fundamentals//MLSE.txt: 3.42 kB 16.20
kB/s
2009 Dec 21
2
Closing files after using write
When I run the following code in a loop I get an error after about 125 times
saying too many open files...
if(inherits(atmpt, "try-error")){
output <- paste(yahooSymbol,"\n",sep="")
write(output, file = "data", append = TRUE, sep = "")
} else {
I've tried various things to close the file after write opens it, and
2009 Dec 28
4
Accessing members
Consider the following....
> fileLines
V1 V2 V3 V4 V5 V6 V7 V8
1 AB 20091224 156.0 156.0 154.00 154.00 55 1198
2 AB.C 20091224 156.0 156.0 156.00 156.00 0 0
3 ABF10 20091224 156.0 156.0 156.00 156.00 55 444
4 ABH10 20091224 156.0 156.0 156.00 156.00 0 749
5 ABH11 20091224 157.2 157.2 157.20 157.20 0 0
6 ABH12
2009 Dec 28
1
accessing members of a data.frame
I have the following code
fileList <-list.files(path = ".", pattern = "[^a-z].txt$", all.files =
FALSE, full.names = FALSE, recursive = FALSE, ignore.case = FALSE)
for (x in 1:length(fileList)){
fileLines <- data.frame(read.table(fileList[x]))
print(string)
}
the lines of the file all have the following format...
AB,20091224,156,156,154,154,55,1198
Can I access
2011 Jan 22
1
Plotting by factor with xts
Hi all,
I've got an xts time series of stock symbols and closing prices.
> head(x)
symbol close
2010-01-04 "AFB" "13.46"
2010-01-04 "AKP" "12.80"
2010-01-04 "APX" " 8.78"
2010-01-04 "AYN" "13.15"
2010-01-04 "BAF" "13.50"
2010-01-04 "BBF" "12.86"
>
2011 Jan 23
1
Plotting multiple xts/zoo time series on a single plot.
So I've got a 154 column wide xts time series object and I want to plot the
154 series on a single plot and have the added benefit of the time series
dates on the x axis.
Any suggestions for plotting functions, maplot works but does not give dates
on the axis and I can't seem to get plot to give me more than one series.
Nick
[[alternative HTML version deleted]]
2010 Aug 14
1
Simple problem with lm/predict
Hi all,
I've got an xts time series with monthly OHLC Dow Jones industrial index
data from 1980 to present, the data is in stored in x.
I've done an OLS fit on the data in 1982::1994 and stored it in extrapolate1
(x[,4] contains the closing value for the index).
> t3 <- seq(1980,1994,length = length(x["1980::1994",4]))
> t4<-t3^2
> extrapolate1 <-
2009 Dec 29
3
error logging
Yet another question...
I'm wondering if there is a built in facility to log errors. I've got this
statement that gives me verbose DBI errors as they come up (to standard
output), but I'd like to trap and log them to a file as I running about
3000000 sql statements through this particular piece of code and I'd like to
keep the loop going and deal with all the errors once the
2010 Feb 02
1
Subtracting time series
Hi all,
I've got a time series object (xts) called table. Table contains closing
price and volume for each market day of 2009 on a given equity.
I'd like to get another xts object, say table2, that contains for each
market day holds the close of that day minus the close of the day before and
the volume of that day minus the volume of the day before.
So
table2 <- table[x,] -
2011 Feb 13
1
xyplot text sizing
Hi all,
I'm using
xyplot(closingDataXTS)
To get a page with any number of seperate plots on it (as many plots as
columns in closingDataXTS).
Each plot is named according to colnames(closingDataXTS).
I would like to control the size of the text each plot name appears in.
I've seen a number of solutions for similar problems that point me in the
direction of trellis.par.get and
2010 Jun 22
1
Labels for matplot x axis
Hi all, I've been messing with this for a while now..
myStudy is a matrix of word frequency to date of document/document.
As you can see I'm trying to plot the series in the matrix.
I'd like three things --
1- In the plot that gets created the first series is a solid line, the rest
are dashed... how do I make them either one or the other.
2- The legend that comes up has filled boxes
2010 Aug 21
1
Help Choosing Start Values for nls
Hi all,
I'm trying to do a simple curve fit and coming up with some interesting
results I would like to get comment on.
So as shown below, tsR is my explanatory and response is... well... my
response.
This same data in gnumeric gets fitted with the curve "response=10078.4 +
1358.67 * ln (explanatory - 2009.07)
So I'm using nls with the start values supplied by gnumeric.
in
2009 Dec 30
1
seg-fault... but on what
I got the following after running succesfully through this loop 28 million
times... the loop opens text files in a directory and inserts line by line
into a database...
*** caught segfault ***
address 0xc0000010, cause 'memory not mapped'
Traceback:
1: .getGeneric(f, where, package)
2: getGeneric("coerce", where = where)
3: as(obj, "integer")
4: