Skip to content

Conversation

@timflutre
Copy link
Contributor

Problem

Currently there is no way to easily know both years of a given USM.

Solution

Add a function get_years taking workspace, usm file (usms.xml by default) and usm name (all by default), returning a data.frame with two columns (year1 and year2) and one row per USM.

Additional changes

None.

Tests

The study case 1 was used.

Linked issues

Closes #203.

@timflutre timflutre added the feature New feature or request label Dec 11, 2025
@github-actions
Copy link

📝 Styler has automatically formatted the following R files in this PR:

  • R/get_years.R
  • tests/testthat/test-get_years.R

Please pull these changes to your local branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add function to extract years of a USM

3 participants