search for: bartestlist

Displaying 1 result from an estimated 1 matches for "bartestlist".

2009 Sep 18
1
lapply - value changes as parameters to function?
...) The function returns a list of numbers which I use for processing later. I'd like to run this on a longer list (100's of values for Lookback) so my thought was to try lapply but so far I cannot get the darn thing right. Let's say I want to run the function on a string of values: BarTestList = list(seq(5:20)) So my thought was something like: x = list(seq(5:20)) ResultList = lapply(x, DoAvgCalcs, IndexData, Lookback=x, SampleSize=TestSamples , Iterations=TestIterations ) which fails down lower complaining that what it's receiving for Lookback isn't an integer: > x = lis...