8000 Consistency project_code and project_name · Issue #56 · inbo/etn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Consistency project_code and project_name #56
Closed
@damianooldoni

Description

@damianooldoni

While writing a vignette about the usage of project code (instead of project name) (see #44) I found a kind of inconsistency about the name of the columns related to project codes and project names.

Here below the thing I am speaking about.

In functions like get_detections() we get columns named like this:

"animal_project_name", "animal_project_code", "network_project_name", "network_project_code"

which is fine.

While running functions get_projects() we get:

get_projects(my_con) %>% colnames()
 [1] "id"              "name"            "projectcode"     "type"           
 [5] "startdate"       "enddate"         "moratorium"      "imis_dataset_id"
 [9] "latitude"        "longitude"

As you see, columns projectcode and name are returned. I would expect project_code and project_name. The same holds true for get_receivers() which returns a data.frame with a column named projectcode while all other columns containing the word code contain an underscore: *_code like ar_release_code and ar_disable_code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    databaseRelated to ETN databaseenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0