SeqToFrame
org.saddle.package$.SeqToFrame
implicit class SeqToFrame[RX, CX, T](s: Seq[(RX, CX, T)])(implicit evidence$9: ScalarTag[RX], evidence$10: Order[RX], evidence$11: ScalarTag[CX], evidence$12: Order[CX], evidence$13: ScalarTag[T])
Augments Seq with a toFrame method that returns a new Frame instance.
For example,
val t = IndexedSeq(("a", "x", 3), ("b", "y", 4))
val f = t.toFrame
res0: org.saddle.Frame[java.lang.String,java.lang.String,Int] =
[2 x 2]
x y
-- --
a -> 3 NA
b -> NA 4
Type parameters
- CX
-
Type of col index elements of Frame
- RX
-
Type of row index elements of Frame
- T
-
Type of data elements of Frame
Value parameters
- s
-
A value of type Seq[(RX, CX, T)]
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article