I am quite new to R, apologies in advance for the ignorance.
I have loaded this csv file using read_csv to "df" dataframe
and looking to plot, and properly assigned row and column names.
a b c d ...
x 0.5% 2.5% 16.3% 6.3% ...
y 1.5% 0.5% 1.3% 6.3% ...
z 0.5% 8.5% 16.3% 1.3% ...
.
.
I am having problems with converting "52.26%" values to double for plotting.
I could convert them column by column using
aNum = as.numeric(sub("%", "", df$a))
however it doesn't work for the whole frame.
allNum= as.numeric(sub("%", "", df))
Any help is much appreciated !