Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • mapMCDA mapMCDA
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 31
    • Issues 31
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • UMR-ASTREUMR-ASTRE
  • mapMCDAmapMCDA
  • Issues
  • #41
Closed
Open
Issue created Apr 29, 2020 by Facundo Muñoz@famuvie®️Owner

Check directional netwok

The check of directionality of animal networks is not working properly.

The following should give an error.

library(mapMCDA)
df <- data.frame(
  orig = "A",
  dest = "B",
  olon = 1,
  olat = 1,
  dlon = 2,
  dlat = 2,
  stringsAsFactors = FALSE
)

tf <- tempfile(fileext = ".csv")
write.csv(df, file = tf, row.names = FALSE)
read_network(tf)
#> IGRAPH e7c95ba DN-- 2 1 -- 
#> + attr: name (v/c)
#> + edge from e7c95ba (vertex names):
#> [1] A->B

On the other hand, we might relax this condition and give a warning instead.

Created on 2020-04-29 by the reprex package (v0.3.0)

Assignee
Assign to
Time tracking