Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tmichoel committed Feb 16, 2024
1 parent 336d83b commit 6489c00
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/bayesiannets.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"""
splitAB(dP)
Split a DataFrame of [`findr`](@ref) results (list of edges) into two DataFrames, one with all `Source` to `Source` edges, and the other with all `Source` to `non-Source` edges.
"""
function splitAB(dP)
source_names = unique(dP.Source);
dP1 = filter(row -> row.Target source_names, dP)
dP2 = filter(row -> row.Target source_names, dP)
return dP1, dP2
end

0 comments on commit 6489c00

Please sign in to comment.