This is my where I got my data set from here.
When I fist read in the data set, and do the head function to double check and this is the output I get the first 7 variable shown, but then I'll get
Variables not shown: Status 11/18 (chr), Location 11/18 (chr), Age 11/18 (dbl), age grp (chr), Gender (chr),
Ethnic (chr), Prev Relig Aff (chr), Adult/Minor (chr), Resident US Pre-Guyana (chr), Occup US Pre Guyana
(chr), Govt Income (chr), JT Residence (chr), Occup in JT ~77 (chr), Occup JT ~Aug 78 (chr)
Here is my code
library(readxl)
require(mosaic)
Jonestown = read_excel("C:/Users/Deborah/Desktop/School/STA 418/Homework/jonestown.xls", sheet = 1, col_names = TRUE, skip=0)
head(Jonestown)
Next, I need to create a data set named minors that includes only
(a) people identified as a minor
(b) who were born in the United States and
(c) has only the variables Birth State, Guyana Entry, Status 11/18, Age 11/18, Gender and Ethnic. You should end up with 293 observations and 6 variables. This is what I have so far
minor = Jonestown$`Adult/Minor`=="Minor" & Jonestown$`Birth Country`=="USA"
Minors = Jonestown[minor,]
I am not show where to go next. Can someone help me?