I would like to create a dataframe like these
State | % religious |
---|---|
QLD | 20 |
NSW | 12 |
WA | 10 |
TAS | 8 |
SA | 11 |
VIC | 15 |
NT | 22 |
ACT | 18 |
I gave that code
religious <- data.frame(
stringsAsFactors = FALSE,
State = c("QLD", "NSW","WA","TAS","SA","VIC","NT","ACT"),
% religious = c( 20,12,10,8,11,15,22,18)
)
But when i gave % religious it comes error message?