scalanlp/breeze

csvread/csvwrite separator

開放

#357 建立於 2015年1月30日

 (7 則留言) (0 個反應) (0 位負責人)Scala (690 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (3,453 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

I only started using breeze a few hours ago so I may be wrong on this.

I tried to load a space separated file but I could only specify one character as a separator. Unfortunately, my dataset's separator is not consistent(2-4 spaces) as are many other datasets. Wouldn't it be better if the separator is a regular expression? That way I can specify separators like: csvread(file, "\\s+") or csvread(file, ",\\s?")

With regards to csvwrite, I may want to use a comma followed by a space.

Cheers

貢獻者指南