Skip to content

Instantly share code, notes, and snippets.

@RCura
Created February 13, 2013 14:52
Show Gist options
  • Save RCura/4945102 to your computer and use it in GitHub Desktop.
Save RCura/4945102 to your computer and use it in GitHub Desktop.
// We create a list of columns, that will contain all the variables to be filtred.
val buffer = new scala.collection.mutable.ListBuffer[Array[_]]
buffer += valueVariableX
buffer += valueVariableY
listFiltre.foreach { v ⇒ v
val columnName = v.name.toString
val columnVariable = getVariableFromColumn(columnName)
val columnValue = get[Array[Double]](columnVariable) match {
case Some(i: Array[Double]) ⇒ i
case None ⇒ throw new UserBadDataError("column type not equal ")
}
buffer += columnValue
}
val buffer: List[Array[_]]= buffer.toList
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment