Lot’s of solutions already, here are one more:
The qdap package:
library(qdap)
names(x1) <- mgsub(a,b,names(x1))
More Related Contents:
- Finding unique values in a dataset for market basket analysis in csv file
- Replace values greater than zero with 1 in r
- Split character column into several binary (0/1) columns
- Why do R objects not print in a function or a “for” loop?
- Workflow for statistical analysis and report writing
- Proxy setting for R
- Calculate the Area under a Curve
- Control ggplot2 legend look without affecting the plot
- Aggregate a dataframe on a given column and display another column
- How to add a row to a data frame in R?
- else if(){} VS ifelse()
- Creating multiple graphs based upon the column names
- aggregate methods treat missing values (NA) differently
- Subtract a column in a dataframe from many columns in R
- How to spread columns with duplicate identifiers?
- Forecasting time series data
- R error “sum not meaningful for factors”
- How to Parse Year + Week Number in R?
- Set default CRAN mirror permanent in R
- Return data subset time frames within another timeframes?
- Read SAS sas7bdat data into R
- Remove extra space and ring at the edge of a polar plot
- Is there an R function to reshape this data from long to wide?
- How to show only part of the plot area of polar ggplot with facet?
- Different legend-keys inside same legend in ggplot2
- Plot two graphs in a same plot
- R stat_smooth all points
- How do you scrape items together so you don’t lose the index?
- How to select R data.table rows based on substring match (a la SQL like)
- Character POSIXct Conversion in R causes wrong timezone values on daylight saving time transition (CEST/CET))