keep decimal points while concatenating

I have values like below
cc <- c(0.8, 1.0, 8.2,4.0)

while concatenating my decimal point should present
cc <- paste0(cc,"%")

but it converting to (0.8%, 1%,8.2%,4%) but i want to keep decimal points
any solution for that

cc <- c(0.8, 1.0, 8.2,4.0)
#> [1] "0.8%" "1.0%" "8.2%" "4.0%"

Created on 2020-07-18 by the reprex package (v0.3.0)

but some of the summaries also have "--"

getting error for this
Error in tab[, 2]/100 : non-numeric argument to binary operator

As you have already learned from all your other posts about this, you have to do the "--" replacement at the end, after you have made all the numeric calculations.

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.