Package org.renjin.primitives.sequence

Examples of org.renjin.primitives.sequence.IntSequence


  }


  @Builtin
  public static IntVector seq_along(SEXP exp) {
    return new IntSequence(1, 1, exp.length());
  }
View Full Code Here


    return new IntSequence(1, 1, exp.length());
  }

  @Builtin
  public static IntVector seq_len(int length) {
    return new IntSequence(1, 1, length);
  }
View Full Code Here

    return new IntSequence(1, 1, length);
  }

  private static SEXP newSequence(double from, double by, double to, int length) {
    if(isIntegerRange(from, to, by)) {
      return new IntSequence((int)from, (int)by, length);
    } else {
      return new DoubleSequence(from, by, length);
    }
  }
View Full Code Here

      // argument name is missing, but we have names() vector
      return names;

    } else if(names == null) {
      // have argument name, but no names() vector, return a1, a2, a3...
      return new PrefixedStringVector(argumentName, new IntSequence(1,1,numElements), AttributeMap.EMPTY);

    } else {
      // we have both argument name and names() vector, return a.x, a.y, a.z
      return new PrefixedStringVector(argumentName + ".", names, AttributeMap.EMPTY);
    }
View Full Code Here

TOP

Related Classes of org.renjin.primitives.sequence.IntSequence

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.