Displaying 1 result from an estimated 1 matches for "datawid".
Did you mean:
data_id
2018 Jan 27
0
GAM: mismatch between nb/polys supplied area names and data area names
...o use matching variable types for area
names in nb and data, but have not been successful.
Any advice would be appreciated. Below are code and a data sample.
Thank you,
Susan
code:
#read in data; from a numeric polygon "IDENTIFIER" create a new polygon
"id" that is a factor
datawide <- read_csv("~/Long/ALLWIDEDATA.csv")
datawide <- transform(datawide, id = factor(formatC(IDENTIFIER, width = 2,
flag = "0")))
#NB: the new area ids are: "01", "02",..."50"
#read in the shapefile and create the neighborhood object nb,
#names...