HNumeric-0.4.0.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

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 :: Show a => String -> f a -> IO () Source #

Write as CSV

Instances

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

From CSV to DataFrame

cm :: [String] -> String Source #

For Convenient

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

Split With Seperator

rmQuot :: String -> String Source #

Remove Quotation Symbol