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 NaN
s:
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:
- support several tables in one file
- make a writer