View source: R/simplifyGtypes.R
simplifyGtypes | R Documentation |
The IACS records grain types in major and minor classes, e.g. precipitation particles PP can be subclassified into stellar dendrites PPsd. Some of these subclasses are not supported in this R package and so this function simplifies the unsupported gran type subclasses into their supported main classes. If a given grain type cannot be simplified, a NA value is returned for it.
simplifyGtypes(gtypes, supported_gtypes = grainDict$gtype)
gtypes |
an array of character grain types following IACS standards |
supported_gtypes |
an array of supported grain types that will determine the simplification |
the modified input array
fherla
## create an array of gtypes
gtypes <- c('FCxr', 'RGxf', 'PPsd', 'PP', 'IFrc', "KKfx")
## sinplify gtypes to supported_gtypes:
simplifyGtypes(gtypes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.