[R] Object of type 'closure' not subsettable in GROFIT
Duncan Murdoch
murdoch.duncan at gmail.com
Wed May 19 21:47:45 CEST 2010
On 19/05/2010 10:34 AM, trubilar wrote:
> Hello Everyone, I am quite new in R software.
> I am doing a grofit to study growth.
> I have a matrix of time with 10 weeks and 26 individuals ie 10 columns x 26
> rows
> and I have a data.frame with 3 columns: 1 for Individual Id (which repeats
> it self, since I have 10 values for each individual correponding to each
> week) the size of the individual (1 or 2) and the Length value.
>
> I run the grofit and get the following error
> Data error [-1:-3]: object type "closure" not subsettable
>
> I have no idea what it means or if I am doing something wrong!
>
You are trying to index a function. Possibly you're using brackets
instead of parentheses when calling it? E.g.
> mean(1:2) # correct
[1] 1.5
> mean[1:2] # incorrect
Error in mean[1:2] : object of type 'closure' is not subsettable
If that doesn't help enough, please simplify your problem to a
self-contained one of a few lines and post it here. Someone will work
it out.
Duncan Murdoch
> Could anyone help me?
> Thanks
>
>
> Tamara Rubilar
> Lab. Bentos
> Centro Nacional Patagonico
> Puerto Madryn
> Argentina
>
More information about the R-help
mailing list