Skip to content

Commit

Permalink
Merge pull request #23 from tiemvanderdeure/bradypus_path
Browse files Browse the repository at this point in the history
fix the path to bradypus
  • Loading branch information
tiemvanderdeure authored Nov 21, 2024
2 parents e0e6068 + fda089c commit 73daa4d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1,118 deletions.
2 changes: 1 addition & 1 deletion src/data.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using DelimitedFiles
function bradypus()
data, headers = DelimitedFiles.readdlm("data/bradypus.tsv", '\t', Int; header = true)
data, headers = DelimitedFiles.readdlm(joinpath(@__DIR__, "..", "data", "bradypus.tsv"), '\t', Int; header = true)
env = NamedTuple{Tuple(Symbol.(headers[2:end]))}(collect(eachcol(data)[2:end]))
env = merge(env, (; ecoreg = CategoricalArrays.categorical(env.ecoreg)))
p_a = Bool.(data[:, 1])
Expand Down
Loading

0 comments on commit 73daa4d

Please sign in to comment.