Learn R Programming

dsa (version 1.0.12)

del_names: Delete name of xts

Description

Delete name of xts

Usage

del_names(x)

Arguments

x

xts time series

Details

This function can be helpful if one xts is created to be equal to another xts and then changed afterwards. In these cases the new xts inherits the column name of the old xts.

Examples

Run this code
# NOT RUN {
timeseries <- dsa::daily_sim()$original # timeseries inherits name from original
colnames(timeseries)
colnames(del_names(timeseries))
y <- del_names(timeseries)
colnames(merge(timeseries, y))
# }

Run the code above in your browser using DataLab