
Last chance! 50% off unlimited learning
Sale ends in
aggregatePrice(ts,FUN = previoustick,on="minutes",k=1,
marketopen,marketclose)
#load data
data("sample_tdata");
#aggregate price data to the 30 second frequency
head(sample_tdata$PRICE)
head(aggregatePrice(sample_tdata$PRICE,on="secs",k=30));
Run the code above in your browser using DataLab