Expand description
AsCharacter / AsCharacterVec: a label argument read the way R’s
as.character() reads it, from any atomic vector, a factor by its labels.
The reading rules are documented on AsCharacterVec.
Structs§
- AsCharacter
- A character scalar read like R’s
as.character(): from an atomic vector of length 1 of any type, a factor by its label.NAof any type isNone. - AsCharacter
Vec - A character vector read like R’s
as.character(): from an atomic vector of any type, a factor by its labels.NAof any type isNone.
Functions§
- check_
length_ 🔒one - check_
type 🔒 - Refuse every SEXPTYPE that is not an atomic vector.
STRSXPis named as the expected type because that is what the value becomes. - dispatch_
as_ 🔒character - Evaluate
as.character(x)for a classedx, so its method decides the text (factor labels, formatted dates, …). - read_
character 🔒 - Read any atomic vector into
Vec<Option<String>>through R’s own conversion to character. Also labels double group keys (dataframe::group).