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.
Re-exportsยง
use crate::expression::RCall;๐use crate::expression::RSymbol;๐use crate::from_r::SexpError;๐use crate::from_r::SexpLengthError;๐use crate::from_r::SexpTypeError;๐use crate::from_r::TryFromSexp;๐use crate::from_r::impl_option_try_from_sexp;๐use crate::gc_protect::OwnedProtect;๐use crate::into_r::IntoR;๐use crate::SEXP;๐use crate::SEXPTYPE;๐use crate::SexpExt;๐
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).