Skip to content

Commit 39753c9

Browse files
authored
Autodetect delimiter
Do not fix delimiter to space, but let CSV.jl auto-detect the delimiter. Not all data is space-separated, e.g. fcps/wingnut is tab-separated. The previous code failed on that example.
1 parent 29c501f commit 39753c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.devel/sphinx/weave/how-to-access.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ using CSV
121121

122122
base_name = joinpath("~", "Projects", "clustering-data-v1", "wut", "smile")
123123
base_name = expanduser(base_name)
124-
data = CSV.read(base_name * ".data.gz", CSV.Tables.matrix; header=false, delim=' ')
125-
labels = CSV.read(base_name * ".labels0.gz", CSV.Tables.matrix; header=false, delim=' ')
124+
data = CSV.read(base_name * ".data.gz", CSV.Tables.matrix; header=false)
125+
labels = CSV.read(base_name * ".labels0.gz", CSV.Tables.matrix; header=false)
126126
```
127127

128128

0 commit comments

Comments
 (0)