str
, but it shows data at the first and
last of the vector, which can be quite helpful in debugging.
vectorShow(v, msg, digits = 5, n = 2L)
v
.v
, this is the number of digits
to use, in formatting the numbers with format
; otherwise,
digits
is ignored.n
is negative, then all the elements are shown.