Hi,
What is the difference between "endof" and "lastof" keywords in to.weekly()
and to.monthly functions?

example: SPY = to.weekly(SPY, indexAt='endof', drop.time=FALSE)

Context:
I was getting duplicate index values in blotter account object for summary
i.e., getAccount(..)$summary. The source of the error finally turned out to
be  usage of "lastof" in to.weekly(..) function in PerformanceAnalytics. If
I use "endof" that seems to take care of the problem.

On another note, currently to simulate equal asset weighting,  I track the
account capital and compute the quantity for each transaction in my program
before adding to portfolio. I am  wondering is there any API in
blotter/performance analytics where I can just provide weights for each
asset, initial capital and list of  transactions with quantity as 1 and the
rest is taken care automatically by an R package?

Regards,
Pie

	[[alternative HTML version deleted]]

