Skip to content

[Developer Issue]: inconsistent formatting of data-type names #1247

Description

@kellijohnson-NOAA

Description

The available data types have inconsistent formatting in their naming structure, e.g., age_comp and length_comp versus weight-at-age. It does not really matter to me what we choose except that it should be consistent. Does anyone have a preference of underscores, dash, or space? One nice thing about underscores is that if you want to keep consistency between objects and strings, then the name results in a valid R object because it is snake_case if you use underscores but it is invalid with dashes or spaces. If we choose to use a space, e.g., "age comp" then nothing would need to be modified for a figure unless we wanted to change it to composition.

  • pick a naming type, undescore, dash, or space
  • change the R script to make the data, i.e., data-raw/data1.R
  • change the helper functions to pull the new data type name
  • update the case studies to use to use the new naming
  • update the r4ss function to use the new naming
  • add documentation to the R/data1.R file stating that all types use our style that we decide on

Metadata

Metadata

Labels

good first issueA small task that does not require previous knowledge of the projectkind: refactorRestructure code to improve the implementationstatus: in progressDesigning or coding is actively occurring

Type

Fields

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions