code: public static Vector subview(Vector vector, int offset,
                                   int length) {
          if (vector instanceof IntegerVector)
              return subview((IntegerVector)vector, offset, length);
          else 
              return subview(asDouble(vector), offset, length);
      }
docs: Returns a subview for the given {@code Vector} with a specified offset
  and length.  {@code Vector} instances that are not instances of either
  {@link DoubleVector} or {@link IntegerVector} will be returned as
  instances of {@link DoubleVector}.
  
  @param vector the {@code Vector} whose values will be shown in the view
  @param offset the index of {@code v} at which the first index of this
  view starts
  @param length the length of this view.
  
  @throws IllegalArgumentException if <ul><li>{@code offset} is
  negative<li>{@code length} is less than zero<li>the sum of {@code
  offset} plus {@code length} is greater than the length of {@code
  vector}</ul>