capitalize all names for a dataframe

capitalize_names(df)

Arguments

df

data frame to capitalize names

Details

is a simple wrapper function to reduce typing and more easily pass data as it is read from a file

Examples

names(Theoph)
#> [1] "Subject" "Wt" "Dose" "Time" "conc"
cTheoph <- capitalize_names(Theoph) names(cTheoph)
#> [1] "SUBJECT" "WT" "DOSE" "TIME" "CONC"
# NOT RUN { df <- capitalize_names(df) # make sure all names are capitalized as a file is read df <- capitalize_names(read.csv(...)) # }