5
有沒有辦法從網絡url或runpipe
外部命令中讀取表格?看來DataFrame.readtable只支持從文件讀取。Julia可從流中讀取而不是從文件中讀取
例如R中我們可以這樣做:
df = read.table(url("http://example.com/data.txt"))
x = read.table(pipe("zcat data.txt | sed /^#/d | cut -f '11-13'"), colClasses=c("integer","integer","integer"), fill=TRUE, row.names=NULL)