Description Usage Arguments Details Value Examples
This function extract the selector name (e.g. 'var') from a variable name like 'data$var'.
1 |
x |
|
This function basically takes variables names of the form
(containingObject)$(selector)
as an input. With a regex command the
last selector - meaning the substring behind the last '$' - will be
extracted and returned. In case that the input parameter x
does not
contain a selector, the empty string will be returned.
std::string
containing the extracted selector
part.
In case no selector can be found, the an empty string is returned.
1 2 | # The outcome should be simply 'SalePrice'
KaggleHouse:::cpp_regex_selector_name(data_train_na$SalePrice)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.