Package org.renjin.sexp

Examples of org.renjin.sexp.LogicalVector$LogicalType


      throw new EvalException("It's not an AtomicVector", value.getTypeName());
    } else if(value.length() < 1) {
      //to keep its type info
      return new Boolean[0];
    }
    LogicalVector lv= (LogicalVector)value;
    int length = lv.length();
    Boolean[] values = new Boolean[length];
    for(int i=0;i<length;i++){
      values[i]= lv.getElementAsObject(i);
    }
    return values;
  }
View Full Code Here


  @Test
  public void bquote() throws ScriptException {
    engine.eval("model <-  bquote(~0 + .(quote(births)))");
    engine.eval("expected <-  ~0 + births");
   
    LogicalVector result = (LogicalVector) engine.eval("model == expected");
    Assert.assertTrue(result.asLogical() == Logical.TRUE);
  }
View Full Code Here

TOP

Related Classes of org.renjin.sexp.LogicalVector$LogicalType

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.