Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commonly used custom units #113

Open
dmullen17 opened this issue Jan 3, 2020 · 2 comments
Open

Add commonly used custom units #113

dmullen17 opened this issue Jan 3, 2020 · 2 comments

Comments

@dmullen17
Copy link
Member

Add commonly used custom units - much like the example solr queries section.

Some of the top of my head:
[] partsPerMillion
[] partsPerThousand
[] wattsPerSquareMeter

@dmullen17
Copy link
Member Author

Adding some of that I have stored in a script here:

custom_units <- data.frame(
  id = c('partsPerThousand', 'micromolesPerGram'),
  unitType = c('dimensionless', 'amountOfSubstanceWeight'),
  parentSI = c(NA, 'molesPerKilogram'),
  multiplierToSI = c(NA, 10^9),
  abbreviation = c('ppt', 'umol/g'),
  description = c('parts per thousand', 'micro moles per gram'),
  stringsAsFactors = FALSE)

unit_list <- set_unitList(custom_units, as_metadata = T)
doc$additionalMetadata <- eml$additionalMetadata(describes = NULL,
                                                 metadata = unit_list)

@jeanetteclark
Copy link
Collaborator

Good idea. I'll add others as I think of them but PSU, decibar, micromolePerMeterCubed are some I'm dealing with now that I see often

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

No branches or pull requests

2 participants