Learn R Programming

radiant (version 0.1.95)

changedata: Change data

Description

Change data

Usage

changedata(dataset, vars = c(), var_names = names(vars))

Arguments

dataset
Name of the dataframe to change
vars
New variables to add to the data.frame
var_names
Names for the new variables to add to the data.frame

Value

None

Examples

Run this code
## Not run: 
# r_data <- list()
# r_data$dat <- data.frame(a = 1:20)
# changedata("dat",20:1, "b")
# head(r_data$dat)
# ## End(Not run)

Run the code above in your browser using DataLab