0

I'm looking for a function in R that reproduce exactly what the squeeze function of Matlab does. Does anybody know it?

Luca Dibo
  • 227
  • 1
  • 2
  • 12

1 Answers1

2

(I'd have thought that it would have been incumbent on an asker to explain what squeeze actually does -- drops singleton dimensions.)

See the help on the drop function in R; this also drops singleton dimensions.

Glen_b
  • 7,883
  • 2
  • 37
  • 48