我正在尝试将Google趋势中的数据与人口普查中的地理编码数据相关联。这是Google Trends for Florida提供的位置数据示例:
sub_code name
US-FL-571 Ft. Myers-Naples, FL
US-FL-592 Gainesville, FL
US-FL-561 Jacksonville, FL
US-FL-528 Miami-Ft. Lauderdale, FL
US-FL-534 Orlando-Daytona Beach-Melbourne, FL
US-FL-656 Panama City, FL
有关此输出的更多详细信息,请参见here。
从here,可以下载MSA shapefile。我已经以20米的分辨率下载了2017年CBSA数据。以下是佛罗里达州的相应数据:
[1] "Wauchula, FL"
[2] "Deltona-Daytona Beach-Ormond Beach, FL"
[3] "Port St. Lucie, FL"
[4] "Arcadia, FL"
[5] "Punta Gorda, FL"
[6] "Sebring, FL"
[7] "Homosassa Springs, FL"
[8] "Key West, FL"
[9] "Sebastian-Vero Beach, FL"
[10] "Tampa-St. Petersburg-Clearwater, FL"
[11] "Crestview-Fort Walton Beach-Destin, FL"
[12] "Okeechobee, FL"
[13] "Jacksonville, FL"
[14] "Tallahassee, FL"
[15] "Orlando-Kissimmee-Sanford, FL"
[16] "Miami-Fort Lauderdale-West Palm Beach, FL"
[17] "Gainesville, FL"
[18] "The Villages, FL"
[19] "Palatka, FL"
[20] "Lakeland-Winter Haven, FL"
[21] "Lake City, FL"
[22] "Ocala, FL"
[23] "North Port-Sarasota-Bradenton, FL"
[24] "Pensacola-Ferry Pass-Brent, FL"
[25] "Cape Coral-Fort Myers, FL"
[26] "Naples-Immokalee-Marco Island, FL"
[27] "Palm Bay-Melbourne-Titusville, FL"
[28] "Clewiston, FL"
[29] "Panama City, FL"
我理解Gtrends有所有可能的MSA的子集,但有些匹配完美(例如巴拿马城,佛罗里达州),对于其他人来说,不清楚什么应该与什么合并。例如,佛罗里达州Ft.Myers-Naples,FL的第一个数据可以与Cape Coral-Fort Myers,FL或与Naples-Immokalee-Marco Island,FL合并。
我很感激处理这种不一致的任何指导。也许我错过了一些明显的东西,所以如果你发现它,那就太棒了!