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

Copyright(c) Tae Geun Kim 2018
LicenseBSD3
Maintaineredeftg@gmail.com
StabilityExperimental
Safe HaskellNone
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

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

dataframe constructor

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

dataframe from vectors

(#) :: Eq a => DataFrame a -> String -> Vector a Source #

Extract Vector in DataFrame

class Functor f => Writable f where Source #

Class to write csv file

Minimal complete definition

toString, writeCSV

Methods

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

Object to String (Different to Show)

writeCSV :: (Eq a, Show a) => String -> f a -> IO () Source #

Write as CSV

Instances

Writable Matrix Source # 

Methods

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

writeCSV :: (Eq a, Show a) => String -> Matrix a -> IO () Source #

Writable Vector Source # 

Methods

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

writeCSV :: (Eq a, Show a) => String -> Vector a -> IO () Source #

Writable DataFrame Source # 

Methods

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

writeCSV :: (Eq a, Show a) => String -> DataFrame a -> IO () Source #

readCSV :: String -> IO (DataFrame String) Source #

From CSV to DataFrame

splitWith :: Char -> String -> [String] Source #

Split With Seperator

rmQuot :: String -> String Source #

Remove Quotation Symbol