Print beginning and end of big vector

vecprint(x, maxlength = 16, digits = getOption("digits"))
 # S3 method for class 'vecprint'
print(x, quote = FALSE, ...)

Arguments

x

a vector

maxlength

max number of elements for printing

digits

see format

quote

see print

...

see print

Value

a list of class 'vecprint' with components

subscript

a list with two vectors of subscripts: vector begin and vector end

example

the extracted example vector as.character including seperator

sep

the row seperator ":"

Author

Jens Oehlschlägel

See also

Examples

  vecprint(10000:1)
#>     [1]     [2]     [3]     [4]     [5]     [6]     [7]     [8]          [9993] 
#>   10000    9999    9998    9997    9996    9995    9994    9993       :       8 
#>  [9994]  [9995]  [9996]  [9997]  [9998]  [9999] [10000] 
#>       7       6       5       4       3       2       1