This repository contains the source code for rk.stringr, an RKWard plugin package that provides a user-friendly graphical interface for the powerful stringr package. This plugin brings modern, consistent, and intuitive string manipulation directly into your RKWard workflow.
It is designed for common data cleaning and preparation tasks, allowing you to perform a wide range of text transformations without writing code. A key design feature is that all operations are vectorized and preserve the length of the input data, making them safe and predictable to use when transforming columns in a data frame.
As of version 0.1.1, this plugin is fully localized. The interface automatically adapts to the language settings of your RKWard installation.
Supported Languages:
es)fr)de)pt_BR)The plugin is organized into several modules accessible from the RKWard menu, each targeting a specific category of string operations:
Use regular expressions to find patterns within your text.
str_detect).str_starts, str_ends).str_count).str_locate, str_locate_all).Easily change the case of your text for standardization.
lower, UPPER, Title, or Sentence case.Pull out specific pieces of your strings.
str_sub).str_extract, str_match).Break strings into multiple pieces based on a delimiter.
str_split).str_split_fixed).Standardize the length and padding of your strings.
str_length).str_trim, str_squish).str_pad).str_trunc).remotes (Recommended)You can install this plugin directly from the repository using the remotes package in R.
local({
## Preparar
require(remotes)
## Computar
install_github(
repo="AlfCano/rk.stringr"
)
## Imprimir el resultado
rk.header ("Resultados de Instalar desde git")
})
.zip file.Once installed, the plugin components can be found in the RKWard menu under:
Data > String Manipulation (stringr)
From there, you can select the desired operation (e.g., "Mutate Strings", "Split Strings", etc.) to open its dialog window.
stringr (version 1.4.0 or greater), which will be installed from CRAN if not already present.