I am trying to create a time series database containing information on different counties.
I am receiving an error where only the first three rows are returned.
I was wondering if anyone had any thoughts on this: What I am receiving
I am trying to produce with 5 different value columns
I have tried using:
TimeSeries <- ts(DataCommons1, start=c(2018), end=c(2020), frequency=1)
to no avail
The head()
of my data is:
df <- data.frame(
placeName = rep(c("Autauga County", "Baldwin County"), each = 3L),
Date.dc.wc8q05drd74bd = rep(2018:2020, 2),
Value.dc.wc8q05drd74bd = c(2108L, 1994L, 1768L, 6791L, 7242L, 7733L),
Date.Count_Person_16OrMoreYears_NoHealthInsurance_NAICSEducationalServicesHealthCareSocialAssistance_Worker = c(NA, NA, NA, 2018L, 2019L, NA),
Value.Count_Person_16OrMoreYears_NoHealthInsurance_NAICSEducationalServicesHealthCareSocialAssistance_Worker = c(NA, NA, NA, 1200.004, 1063.796, NA),
Date.Count_Person_USCitizenByNaturalization_DateOfEntry2000To2009_ForeignBorn = rep(NA_integer_, 6L),
Value.Count_Person_USCitizenByNaturalization_DateOfEntry2000To2009_ForeignBorn = rep(NA_real_, 6L),
Date.dc.cyc1f26msdct4 = rep(2018:2020, 2),
Value.dc.cyc1f26msdct4 = c(887L, 682L, 706L, 2476L, 2388L, 2795L),
Date.Count_Household_Householder1To2OwnChildren_SingleMotherFamilyHousehold = rep(c(2018L, 2019L, NA), 2),
Value.Count_Household_Householder1To2OwnChildren_SingleMotherFamilyHousehold = c(997L, 968L, NA, 2977L, 3076L, NA)
)