HNumeric-0.3.2.0: Haskell Numeric Library with pure functionality, R & MATLAB Syntax.

Copyright(c) Tae Geun Kim 2018
LicenseBSD3
Maintaineredeftg@gmail.com
StabilityExperimental
Safe HaskellSafe
LanguageHaskell2010

HNum.CSV

Description

 

Synopsis

Documentation

type Header = [String] Source #

Type Aliases for convenience

data DataFrame a Source #

DataFrame structure to write csv

Constructors

DataFrame 

Fields

Instances

Functor DataFrame Source # 

Methods

fmap :: (a -> b) -> DataFrame a -> DataFrame b #

(<$) :: a -> DataFrame b -> DataFrame a #

CSVtize DataFrame Source # 

Methods

toString :: Show a => DataFrame a -> String Source #

write :: Show a => String -> DataFrame a -> IO () Source #

Eq a => Eq (DataFrame a) Source # 

Methods

(==) :: DataFrame a -> DataFrame a -> Bool #

(/=) :: DataFrame a -> DataFrame a -> Bool #

Show a => Show (DataFrame a) Source # 

dataframe :: Header -> Matrix a -> DataFrame a Source #

dataframe constructor

fromVectors :: Header -> [Vector a] -> DataFrame a Source #

dataframe from vectors

class Functor f => CSVtize f where Source #

Class to write csv file

Minimal complete definition

toString, write

Methods

toString :: Show a => f a -> String Source #

write :: Show a => String -> f a -> IO () Source #

Instances

CSVtize Matrix Source # 

Methods

toString :: Show a => Matrix a -> String Source #

write :: Show a => String -> Matrix a -> IO () Source #

CSVtize Vector Source # 

Methods

toString :: Show a => Vector a -> String Source #

write :: Show a => String -> Vector a -> IO () Source #

CSVtize DataFrame Source # 

Methods

toString :: Show a => DataFrame a -> String Source #

write :: Show a => String -> DataFrame a -> IO () Source #

cm :: [String] -> String Source #

Convenient