Created
February 13, 2013 14:52
-
-
Save RCura/4945102 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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