mauro3 / OrgTables.jl

Read Emacs org-mode tables
Other
9 stars 0 forks source link
fileio read-emacs

OrgTables

Build Status Build status

A Julia package to read emacs org-mode tables. Essentially, any line starting with | as first non-whitespace is considered part of a table. Horizontal lines |----+---| are ignored. Only the first table in a file is read.

This reads an org-table (in test/testtable2.org) into a Matrix{Float64} replacing empty strings with NaNs:

using OrgTables
data,header = readorg("testtable2.org", Float64, NaN)

It works with FileIO.jl, but needs to be loaded explicitly (not registered with FileIO.jl):

using OrgTables, FileIO
data,header = load("testtable2.org", T=Float64, fillval=NaN)

TODO: