Skip to content

mauro3/OrgTables.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  • support several tables in one file
  • make a writer

About

Read Emacs org-mode tables

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages