Skip to content
Prev 4797 / 15274 Next

Index of data is missing (dim is NULL)

Please use this list for finance-related questions.  Just because
you're using R to solve a finance-related problem does not mean your
question is finance-related.

In this case, your "problem" is that rel_data is a *vector*.  Please
read, "An Introduction to R" to understand the differences between
vectors and matrices / data.frames (and note that subsetting a matrix
via "[" with drop=TRUE can result in a vector).
NULL
Error in x[1, ] : incorrect number of dimensions
[,1] [,2] [,3] [,4] [,5]
[1,]    1    3    5    7    9
[2,]    2    4    6    8   10
[1] 1 3 5 7 9
[,1] [,2] [,3] [,4] [,5]
[1,]    1    3    5    7    9


HTH,
Josh
--
http://www.fosstrading.com
On Wed, Sep 2, 2009 at 6:26 AM, sunil<sarswat at gmail.com> wrote: