You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You don't need to fix this, but if you wanted to - there are (at least) three options. All of these turn the number into a character word (e.g. the quote marks). So you would no longer be able to use it for calculations, but its fine for printing out.
Note- in terms of code format - I would consider renaming your columns to something easy to type like population. It just makes it easier to write code in circumstances when you can't autoselect the column using $.
Is there any reason why this is only showing up to 2 sig-figs? I assume because last digit is 0? How do I make it appear 0 as well?
meanppl <- round(mean(dataC$
Town Population (1000 pp)
, na.rm = TRUE),3)meanppl
output
[1] 35.19
The text was updated successfully, but these errors were encountered: