I am taking Datacamp's Data Analysis and Statistical Inference. The following is code to load related to the Global Index of Religiosity And Atheism and subsetting the US 2012 data.
load(url("http://s3.amazonaws.com/assets.datacamp.com/course/dasi/atheism.RData"))
us12 = subset(atheism, atheism$nationality == "United States" & atheism$year =="2012")
My question is why do I see the other countries when I type
table(us12)
Is there a way I can subset only the filtered data?
Thanks.