Displaying 7 results from an estimated 7 matches for "runsum".
2017 Sep 27
1
Need Help in Debugging
I am getting following error when running this script :------------Error in
length(runsum) : object 'runsum' not found
##error function
dat$fit <- NULL
dat$fit[dat$majorlandmarks] <- dat$Close[dat$majorlandmarks]
run <- rle(dat$majorlandmarks)
runvalue <- run$values
runsum <- cumsum(run$lengths)
run <- run$lengths
for(i in 1:(length(runsum)-1)){
if (runvalu...
2001 Oct 15
0
predict.fda difficulties
...t;-floor(runif(TotalN,0,11)+1)
DummyParams<-data.frame(CellType=DummyCellTypes,
matrix(rnorm(TotalN*17),TotalN,17))
DummyParams$CellType<-factor(DummyParams$CellType)
table(DummyParams$CellType)
TrainFDAs<-list(100)
TestConfusions<-list(100)
TestErrs<-rep(-1,100)
i<-1
z<-0
runsum<-0
while(i<=100 & z<1000){
z<-z+1
TrainSample<-sample(1:TotalN,TrainN)
# Check to see if any CellTypes are missing from the training
# or test set as this will certainly cause an error.
TrainMissing<-any(table(DummyParams$CellType[TrainSample])==0)
Te...
2010 Jul 15
1
scope of an argument in a function
...ing
wrong? Does the scope of ma1 not extend to an expr.frame object?
expr.frame() is under library tradesys.
function (y,ma1,ma2)
{
x <- y[, c("Open","Close")]
d <- expr.frame(x, list(MAf=quote(SMA(Close, ma1)), MAs=quote(SMA(Close,
ma2))))
}
>fu(spx,60,120)
Error in runSum(x, n) : object 'ma1' not found
Thanks for your kind help.
--
'Raghu'
[[alternative HTML version deleted]]
2012 May 22
1
Quantmod, Xts, TTR and Postgresql
...ys.time())
colnames(fr) <- paste('SDL',
c('Open','High','Low','Close','Volume','Adjusted'), sep='.')
dvi <- DVI(Cl(fr))
print(dvi)
When the code is executed I receive the error for the line dvi <-
DVI(Cl(fr)): "Error in runSum(x, n) : Invalid 'n'"
But if I do this (fetch the data from yahoo):
getSymbols("SDL.AX")
dvi <- DVI(Cl(SDL.AX))
print(dvi)
All seems to work fine, but I cant see any difference when I print the two
data sets out, except the data set size.
Any ideas what I'm doing wr...
2005 Jun 17
0
Release of new version of caMassClass package and new package caT ools
...a
standard for storing proteomics MS data.
- Adding more error checking to 'runmean', 'runmin', 'runmax', 'runmad' &
'runquantile' functions
- Writing 3 new functions for round-off-error free sumation: 'sum.exact',
'cumsum.exact' and 'runsum.exact'.
- Added option to "runmean" function to allow use of above round-off-error
free computation
Jarek
=====================================\====
Jarek Tuszynski, PhD. o / \
Science Applications International Corporation <\__,...
2005 Jun 17
0
Release of new version of caMassClass package and new package caT ools
...a
standard for storing proteomics MS data.
- Adding more error checking to 'runmean', 'runmin', 'runmax', 'runmad' &
'runquantile' functions
- Writing 3 new functions for round-off-error free sumation: 'sum.exact',
'cumsum.exact' and 'runsum.exact'.
- Added option to "runmean" function to allow use of above round-off-error
free computation
Jarek
=====================================\====
Jarek Tuszynski, PhD. o / \
Science Applications International Corporation <\__,...
2008 Feb 13
4
rolling sum (like in Rmetrics package)
Hello, I'm new to R and would like to know how to create a vector of "rolling
sums". (I have seen the Rmetrics package and the rollMean function and I
would like to do the same thing except Sum instead of Mean.) I imagine
someone has done this, I just can't find it anywhere.
Example:
x <- somevector #where x is 'n' entries long
#what I would like to do is:
x1