Hello,

I have a matrix->

x=matrix(runif(9,3,10),nrow=3)

x

[,1] [,2] [,3]

[1,] 8.477339 8.833459 8.583553

[2,] 4.654282 7.649464 5.036848

[3,] 6.272135 3.469831 6.246960

If I use the command->

x[2,drop=F]

I get,

[,1] [,2] [,3]

[1,] 4.654282 7.649464 5.036848

and if I use

x[2,drop=T]

I get->

[1] 4.654282 7.649464 5.036848

What is the drop=F/T exactly doing here? Also if I use drop=F and drop=T like this, I get the same output->

x[2:3,drop=T]

[,1] [,2] [,3]

[1,] 4.654282 7.649464 5.036848

[2,] 6.272135 3.469831 6.246960

x[2:3,drop=F]

[,1] [,2] [,3]

[1,] 4.654282 7.649464 5.036848

[2,] 6.272135 3.469831 6.246960

Why is the output same here?

Thanks