[R] subscript out of bouns

jim holtman jholtman at gmail.com
Thu Jun 30 17:41:56 CEST 2011


You need to at least provide 'str(datos2)' so we can understand your
data.  You are trying to access a row with the name "2011-01-03"; does
that row exist in your data? what does rownames(datos2) show?  The
guide says "PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code".
My "guess" is that you are getting the subscript out of range because
your subscribe is out of range.

On Thu, Jun 30, 2011 at 5:18 AM, Kenneth Roy Cabrera Torres
<krcabrer at une.net.co> wrote:
> Hi R users:
>
> I got a problem traying to select one date of a timeSeries object.
>
> But it works with the SWX data objetct.
>
> What am I doing worng?
>
> library(fImport)
>
> datos2<-readSeries(file="misDatos.csv",header=TRUE,sep=",",
>                   format="%Y-%m-%d",
>                   FinCenter='America/Bogota',zone="America/Bogota")
> head(datos2)
>
> datos2["2011-01-03",]
>
> traceback()
>
>
> Thank you for your help.
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>



-- 
Jim Holtman
Data Munger Guru

What is the problem that you are trying to solve?



More information about the R-help mailing list