Skip to content
Prev 12546 / 398502 Next

drop=F in [

On Wed, 25 Jul 2001, Agustin Lobo wrote:

            
Be careful.  It's FALSE not F.  Indeed it solves the problem, but only if
used as specified on the help page....
No way, *but* if you use this correctly you will get what you want.

Read ?Extract carefully.  You have assumed that

     x[i, j, ... , drop=TRUE]

can be contracted, but it does not say so (nor can it in S).

Try
[,1]     [,2]     [,3]
[1,] 0.3249816 1.184596 1.040875