Learn R Programming

RSurvey (version 0.7-5)

Rename: Rename Values in Character Vector

Description

A GUI for renaming values in a vector of character strings.

Usage

Rename(names = NULL, cur.name = NULL, win.title = NULL,
       parent = NULL)

Arguments

names
character; a vector of character strings.
cur.name
character; sets the combobox value, name must be included in names.
win.title
character; a string to display as the title of the dialog box.
parent
tkwin; the GUI parent window.

Value

  • Returns a character vector with updated values of names.

Examples

Run this code
Rename(names = c("Name1", "Name2", "Name3"), cur.name = "Name2")

Run the code above in your browser using DataLab