powered by
Subset a data.frame and change column names.
data.frame
map_data(x, map)
named vector. Map columns of x and subset.
x
# NOT RUN { x <- mtcars map_data(x, c( 'cyl' = 'Cylinders', 'hp' = 'Gross horsepower' )) # } # NOT RUN { # }
Run the code above in your browser using DataLab