Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
似乎Incanter只能识别utf-8编码文件,而native clojure slurp可以读取带有关键字的非utf8编码文件:encoding,所以是否可以将这两个功能结合在一起,但我不知道该怎么做!
slurp
:encoding
第一个参数可以是文件名、URL 或任何可以由 处理的内容clojure.io/reader,因此您可以编写如下内容:
clojure.io/reader
(read-dataset (InputStreamReader. (FileInputStream. "data/co2.csv") "ISO-8859-1"))