Dear Brian,  Michael  and Db.

Thanks for all your suggests.
I tried all your hints. But i found the problem remains, and still shows "
order.by requires an appropriate time-based object"

it sounds strange.

Best,
Haiping



On 23 April 2012 23:08, Brian G. Peterson <brian@braverock.com> wrote:

> On Mon, 2012-04-23 at 11:03 -0400, R. Michael Weylandt wrote:
> > In addition to what's been said, you could much more easily write:
> >
> > GSPC <- getSymbols("^GSPC", from = "2000-01-01", auto.assign = F)
>
> I'll make it simpler still...
>
> getSymbols("^GSPC", from = "2000-01-01")
>
> which will create object 'GSPC' and avoids the frowned upon use of 'F'
> for FALSE (which can easily collide with a variable)
>
> Regards,
>
>   - Brian
>
> --
> Brian G. Peterson
> http://braverock.com/brian/
> Ph: 773-459-4973
> IM: bgpbraverock
>
> _______________________________________________
> R-SIG-Finance@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions
> should go.
>



-- 
  Haiping LAN

	[[alternative HTML version deleted]]

