Poling, William
2020-May-19 12:28 UTC
[R] Help with ggplot error: #Error in FUN(X[[i]], ...) : object 'x' not found
#RStudio Version Version 1.2.1335 sessionInfo() # R version 4.0.0 Patched (2020-05-03 r78349) #Platform: x86_64-w64-mingw32/x64 (64-bit) #Running under: Windows 10 x64 (build 17763) Good morning. I am testing a small sample of my data using an example found here: #https://www.r-orms.org/mixed-integer-linear-programming/practicals/problem-tsp/ If needed I can provide my complete script which is simply the same as the example only using a few rows from my data, let me know, as I think this is just a ggplot issue. I am getting this error when I use ggplot #Error in FUN(X[[i]], ...) : object 'x' not found 1. I have reviewed the following with no success. #Sources referred to for help #https://github.com/business-science/anomalize/issues/2 #https://stackoverflow.com/questions/38988028/error-in-funxi-object-x-not-found #https://community.rstudio.com/t/error-in-fun-x-i-object-variable-not-found/62532/3 #https://www.neonscience.org/packages-in-r 2. I have rebooted and re-installed ggplot2 for updates 3. These are the only libraries running library(knitr) library(dplyr) library(ggplot2) library(ggmap) library(ompr) library(ompr.roi) library(ROI.plugin.glpk) Here is the original plot attempt: ggplot(c1members2, aes(x , y)) + geom_point() + geom_line(data = paths, aes(group = trip_id)) + #Error in FUN(X[[i]], ...) : object 'x' not found ggtitle(paste0("Optimal route with cost: ", round(objective_value(result), 2))) #I have gone through each of the steps one by one and error occurs at --> geom_line(data = paths, aes(group = trip_id)) I have also tried the following: Test1 p <- ggplot(c1members2, aes(x,y)) + geom_point() p + geom_line(data = paths, aes(group = trip_id),inherit.aes = FALSE) + #Error in FUN(X[[i]], ...) : object 'x' not found ggtitle(paste0("Optimal route with cost: ", round(objective_value(result), 2))) Test2 ggplot(c1members2, aes(x,y)) + geom_point() + geom_line(data = paths, aes(group = trip_id),inherit.aes = TRUE) + #Error in FUN(X[[i]], ...) : object 'x' not found ggtitle(paste0("Optimal route with cost: ", round(objective_value(result), 2))) Here are the data involved. str(c1members2) 'data.frame': 7 obs. of 3 variables: $ id: int 1 2 3 4 5 6 7 $ x : num 95.5 90.2 46.8 40.9 43.3 ... $ y : num 4.65 47.57 8.07 38.43 28.59 ... str(paths) data.frame': 14 obs. of 6 variables: $ trip_id : int 1 2 3 4 5 6 7 1 2 3 ... $ property : chr "from" "from" "from" "from" ... $ idx_val : int 3 1 5 7 6 4 2 1 2 3 ... $ Longitude: num -122 -122 -122 -122 -122 ... $ Latitude : num 47.3 47.2 47.3 47.6 47.6 ... $ city : Factor w/ 1337 levels "ABBOTTSTOWN",..: 1169 1169 1169 1069 1069 1069 1069 1169 1069 1169 ... Here are the dput()'s I hope I have provided enough information to elicit a response. Thank you. WHP dput(c1members2) structure(list(id = 1:7, x = c(95.521828085515, 90.2272877161736, 46.8465689660691, 40.8959155605829, 43.2591531526978, 23.7485886058345, 64.0406297698986), y = c(4.64803485876031, 47.5678629996171, 8.0689847051367, 38.4256264258875, 28.5930051512296, 43.5934562642672, 42.415566619041)), class = "data.frame", row.names = c(NA, -7L dput(paths) #Although I am only using city %in% c("SEATTLE","TACOMA")) from the original 2353 rows = 7 rows in c1members2 structure(list(trip_id = c(1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L, 3L, 4L, 5L, 6L, 7L), property = c("from", "from", "from", "from", "from", "from", "from", "to", "to", "to", "to", "to", "to", "to" ), idx_val = c(3L, 1L, 5L, 7L, 6L, 4L, 2L, 1L, 2L, 3L, 4L, 5L, 6L, 7L), Longitude = c(-122.490417, -122.429323, -122.358115, -122.37003, -122.41282, -122.299261, -122.390815, -122.429323, -122.390815, -122.490417, -122.299261, -122.358115, -122.41282, -122.37003), Latitude = c(47.274599, 47.176596, 47.276776, 47.565667, 47.646222, 47.673056, 47.549377, 47.176596, 47.549377, 47.274599, 47.673056, 47.276776, 47.646222, 47.565667), city = structure(c(1169L, 1169L, 1169L, 1069L, 1069L, 1069L, 1069L, 1169L, 1069L, 1169L, 1069L, 1169L, 1069L, 1069L), .Label = c("ABBOTTSTOWN", "ABILENE", "ACWORTH", "ADAMS", "ADDISON", "ADKINS", "ALBANY", "ALBIA", "ALBUQUERQUE", "ALEXANDRIA", "ALFRED", "ALIQUIPPA", "ALISO VIEJO", "ALLEN PARK", "ALLENTOWN", "ALPHA", "ALPHARETTA", "ALPINE", "ALTOONA", "AMARILLO", "AMBLER", "AMBRIDGE", "AMHERST", "AMITYVILLE", "ANAHIEM", "ANDERSON", "ANDOVER", "ANGIER", "ANGLETON", "ANKENY", "ANN ARBOR", "ANZA", "APEX", "APOLLO", "ARCADIA", "ARCHDALE", "ARDMORE", "ARGYLE", "ARKANSAS CITY", "ARLINGTON", "ARNOLD", "ARTHUR", "ASHEBORO", "ASHEVILLE", "ASHLAND", "ASHLAND CITY", "ASHTON", "ASTON", "ATHENS", "ATLANTA", "ATLANTIC BCH", "AUBORN", "AUGUSTA", "AURORA", "AUSTELL", "AUSTIN", "AVENTURA", "AVONDALE ESTATES", "BAKERSFIELD", "BALDWIN CITY", "BALDWIN PLACE", "BALLWIN", "BANGOR", "BARBOURSVILLE", "BARNEGAT", "BARTLETT", "BARTON", "BARTONVILLE", "BASSETT", "BATAVIA", "BATESBURG", "BATON ROUGE", "BAXTER SPRINGS", "BAY CITY", "BAYONNE", "BAYSIDE", "BAYTOWN", "BEAR", "BEAUMONT", "BEECH CREEK", "BEECHER CITY", "BELFAIR", "BELLE VERNON", "BELLEAIR", "BELLEVUE", "BELLMAWR", "BELLMORE", "BELLWOOD", "BELMAR", "BELMONT", "BELVIDERE", "BENNET", "BENTON", "BENTONVILLE", "BERLIN", "BESSEMER CITY", "BETHANY", "BETHEL", "BETHEL PARK", "BETHESDA", "BETHLEHEM", "BETTENDORF", "BIGLERVILLE", "BINGHAMTON", "BIRDSBORO", "BIWABIK", "BLACK MOUNTAIN", "BLACKSBURG", "BLAINE", "BLAIRSVILLE", "BLAKESLEE", "BLOOMFIELD", "BLUE BELL", "BLUE GRASS", "BLUE POINT", "BLUE SPRINGS", "BOCA RATON", "BODFISH", "BOILING SPRINGS", "BOLIVAR", "BON AQUA", "BONNER SPRINGS", "BONNEY LAKE", "BOONEVILLE", "BOSSIER CITY", "BOUNTIFUL", "BOWLING GREEN", "BOYERTOWN", "BOYNTON BEACH", "BRADENTON", "BRADENVILLE", "BRANDAMORE", "BRANDON", "BRANFORD", "BRANSON", "BRASELTON", "BREEZEWOOD", "BRENTON", "BRENTWOOD", "BREWSTER", "BRICK", "BRIDGEPORT", "BRIDGETON", "BRIGHAM CITY", "BROADDUS", "BROCKPORT", "BROGUE", "BROKEN ARROW", "BRONX", "BROOKFIELD", "BROOKHAVEN", "BROOKLYN", "BROWNS MILLS", "BROWNSBURG", "BROWNSVILLE", "BRUNSWICK", "BRYAN", "BUCKSPORT", "BUDD LAKE", "BUFFALO", "BULVERDE", "BUNKERVILLE", "BURBANK", "BURFORD", "BURIEN", "BURLINGTON", "BURR RIDGE", "BURTON", "BUSKIRK", "BUTLER", "BUXTON", "BYRON", "CALERA", "CAMBRIDGE", "CAMP HILL", "CAMPBELL", "CANAAN", "CANAL WINCHESTER", "CANASTOTA", "CANTON", "CARDIFF BY THE SEA", "CARL JUNCTION", "CARLISLE", "CARLTON", "CAROL STREAM", "CARROLLTON", "CARSON CITY", "CARTERSVILLE", "CARTHAGE", "CARY", "CASEYVILLE", "CASSVILLE", "CASWELL", "CATO", "CEDAR RAPIDS", "CEDARBURG", "CEDARVILLE", "CENTER POINT", "CENTERTON", "CENTRAL ISLIP", "CENTRAL POINT", "CHAGRIN FALLS", "CHALFONT", "CHAPEL HILL", "CHAPIN", "CHARDON", "CHARITON", "CHARLESTON", "CHARLOTTE", "CHEROKEE", "CHERRY HILL", "CHERRY VALLEY", "CHESHIRE", "CHEST SPRINGS", "CHESTER", "CHESTERTON", "CHICAGO", "CHILLICOTHE", "CHOCTAW", "CICERO", "CINCINNATI", "CLAY", "CLEARWATER", "CLEARWATER BEACH", "CLEMMONS", "CLENDENIN", "CLEVELAND", "CLEVELAND HTS", "CLEVES", "CLIFFSIDE PARK", "CLIFTON", "CLIFTON PARK", "CLIFTON SPGS", "CLINTON", "COACHELLA", "COAL TOWNSHIP", "COATESVILLE", "COLLEGE STATION", "COLLINSVILLE", "COLONIA", "COLUMBIA", "COLUMBUS", "COMMERCE", "CONCORD", "CONCORD TOWNSHIP", "CONNELLSVILLE", "CONROE", "CONWAY", "CONYERS", "COOKEVILLE", "COON RAPIDS", "CORAOPOLIS", "CORDOVA", "CORNELIUS", "CORNWALL", "CORONADO", "CORPUS CHRISTI", "CORRY", "COTTAGE HILLS", "COTTLEVILLE", "COTTONWOOD", "COVINGTON", "COWEN", "CRANBERRY TOWNSHIP", "CROWN POINT", "CUBA", "CUMBERLAND CENTER", "CUMBERLAND FORESIDE", "CUMMING", "CUYAHOGA FLS", "CYPRESS", "DALLAS", "DALLASTOWN", "DANBURY", "DANIA BCH", "DANVILLE", "DAVENPORT", "DAVIE", "DAVIS JUNCTION", "DAWSON", "DAYTON", "DE SOTO", "DECATUR", "DEFIANCE", "DEFOREST", "DELAVAN", "DELMAR", "DELRAY BEACH", "DEMOTTE", "DENISON", "DENVER", "DEPTFORD", "DERBY", "DERRY", "DES MOINES", "DETROIT", "DICKINSON", "DILLSBURG", "DITTMER", "DIXON", "DONNA", "DOTHAN", "DOUGLAS", "DOUGLASVILLE", "DOVER", "DOYLESTOWN", "DREXEL HILL", "DUBLIN", "DUCHESNE", "DULUTH", "DUNCAN", "DUNCANNON", "DUNCANSVILLE", "DUNEDIN", "DUNNSVILLE", "DURHAM", "DUTTON", "EAGLE GROVE", "EAST AURORA", "EAST CHICAGO", "EAST EARL", "EAST HANOVER", "EAST HARTFORD", "EAST HARTLAND", "EAST LEROY", "EAST LIVERPOOL", "EAST MEADOW", "EAST NORTHPORT", "EAST ORANGE", "EAST PEORIA", "EAST SAINT LOUIS", "EASTON", "EDGERTON", "EDISON", "EDMOND", "EGG HBR TWP", "EL DORADO", "EL PASO", "ELDRIDGE", "ELGIN", "ELIZABETHVILLE", "ELLISVILLE", "ELLSWORTH", "ELLWOOD CITY", "ELMHURST", "ELMWOOD PARK", "ELOY", "ELY", "EMERSON", "EMORY", "ENDICOTT", "ENGLEWOOD", "ENID", "ENNICE", "ENOLA", "ENUMCLAW", "EPHRATA", "ERIE", "ESTERO", "EUREKA SPRINGS", "EVANSVILLE", "EVERETT", "EXCELSIOR SPRINGS", "EXTON", "FAIRFAX", "FAIRFIELD", "FAIRHAVEN", "FAIRVIEW", "FAIRVIEW PARK", "FALMOUTH", "FAR HILLS", "FAR ROCKAWAY", "FARMINGDALE", "FARMINGTON", "FAYETTE", "FAYETTEVILLE", "FELTON", "FENTON", "FERGUSON", "FIELDALE", "FINDLAY", "FINGERVILLE", "FLEMINGTON", "FLINT", "FLORENCE", "FLORESVILLE", "FLORISSANT", "FLOVILLA", "FLOWER MOUND", "FLUSHING", "FOGELSVILLE", "FOLSOM", "FONTANELLE", "FOREST HILLS", "FOREST PARK", "FORT DODGE", "FORT FAIRFIELD", "FORT GAY", "FORT LAUDERDALE", "FORT LEE", "FORT MILL", "FORT MOHAVE", "FORT PAYNE", "FORT PIERCE", "FORT SMITH", "FORT WAYNE", "FORT WORTH", "FOSTORIA", "FOUNTAIN INN", "FRANKFORT", "FRANKLIN", "FREEDOM", "FREEHOLD", "FREEPORT", "FREMONT", "FULLERTON", "FULSHEAR", "FULTON", "GADSDEN", "GAFFNEY", "GAINESVILLE", "GALLOWAY", "GARDEN PRAIRIE", "GARDNERS", "GARNETT VALLEY", "GARY", "GASTON", "GASTONIA", "GENEVA", "GETTYSBURG", "GIBSONIA", "GILBERT", "GIRARD", "GLEN BURNIE", "GLEN CARBON", "GLEN COVE", "GLEN MILLS", "GLENSHAW", "GLENVIEW", "GLENWOOD", "GOLDEN CITY", "GOLIAD", "GOODSON", "GOODYEAR", "GORHAM", "GOSHEN", "GRANBURY", "GRANBY", "GRAND PRAIRIE", "GRAND RAPIDS", "GRANDVIEW", "GRANITE CITY", "GRANITE FALLS", "GRANTS PASS", "GRASS VALLEY", "GRAVETTE", "GRAYSVILLE", "GREEN LANE", "GREENBRIER", "GREENLAWN", "GREENSBORO", "GREENSBURG", "GREENUP", "GREENVILLE", "GREER", "GRIFFIN", "GRIFFITH", "GROTON", "GUADALUPE", "GUILFORD", "HADLEY", "HAGAN", "HALF WAY", "HALLANDALE BEACH", "HAMBLETON", "HAMBURG", "HAMDEN", "HAMILTON", "HAMMOND", "HAMMONTON", "HAMPSHIRE", "HAPEVILLE", "HARBORCREEK", "HARLAN", "HARRISBURG", "HARRISON", "HARRISONVILLE", "HARTWELL", "HASTINGS", "HATFIELD", "HAVERHILL", "HAWK POINT", "HAYESVILLE", "HELEN", "HENDERSON", "HENDERSONVILLE", "HENRICO", "HENRIETTA", "HERMITAGE", "HERNDON", "HERSHEY", "HIALEAH", "HIAWATHA", "HIBBING", "HICKORY", "HICKORY GROVE", "HIDDENITE", "HIGH HILL", "HIGH POINT", "HIGH RIDGE", "HIGHLAND", "HIGHLAND MILLS", "HINCKLEY", "HIRAM", "HOBART", "HOLBROOK", "HOLDEN", "HOLDENVILLE", "HOLLADAY", "HOLLIS", "HOLLY SPRINGS", "HOLLYWOOD", "HOLTWOOD", "HOMER", "HOMESTEAD", "HONEYVILLE", "HOPE MILLS", "HOT SPRINGS", "HOT SPRINGS NATIONAL PARK", "HOUSTON", "HUBBARD", "HUDSON", "HUFFMAN", "HULL", "HUMANSVILLE", "HUNTERSVILLE", "HUNTINGDON", "HUNTINGTON BEACH", "HUNTS POINT", "HURDLE MILLS", "HURRICANE", "HURST", "IMPERIAL", "INDEPENDENCE", "INDIAN SHORES", "INDIAN TRAIL", "INDIANA", "INDIANAPOLIS", "INDIANOLA", "INMAN", "IOWA CITY", "IRMO", "IRVINGTON", "IRWIN", "ISANTI", "ISLESBORO", "ISLIP", "ISSAQUAH", "ITHACA", "JACKSBORO", "JACKSON", "JACKSON HTS", "JACKSONVILLE", "JAMAICA", "JAMESTOWN", "JASPER", "JEANNETTE", "JEFFERSON", "JEFFERSON CITY", "JEWELL", "JOHNSTON", "JOHNSTOWN", "JONESBORO", "JONESPORT", "JONESTOWN", "JOPLIN", "JUPITER", "KANKAKEE", "KANNAPOLIS", "KANSAS CITY", "KATY", "KEARNEY", "KELLERTON", "KEMAH", "KENMORE", "KENNESAW", "KENT", "KINGMAN", "KINGS MOUNTAIN", "KINGSLAND", "KINGSTON", "KINGWOOD", "KIRKLAND", "KUTZTOWN", "LA QUINTA", "LA RUE", "LA VERNE", "LAFAYETTE", "LAKE BLUFF", "LAKE IN THE HILL", "LAKE ISABELLA", "LAKE PLACID", "LAKE SAINT LOUIS", "LAKE TAPPS", "LAKE VILLAGE", "LAKE WAUKOMIS", "LAKE WORTH", "LAKEBAY", "LAKELAND", "LAKEWOOD", "LAKEWOOD RCH", "LAMBERTVILLE", "LANCASTER", "LANDISVILLE", "LANSDALE", "LAREDO", "LARGO", "LAS VEGAS", "LATROBE", "LAUDERHILL", "LAWNDALE", "LAWRENCE", "LAWRENCEVILLE", "LE MARS", "LE ROY", "LEAGUE CITY", "LEAVENWORTH", "LEAWOOD", "LEBANON", "LECOMPTON", "LEECHBURG", "LEES SUMMIT", "LEESBURG", "LEESVILLE", "LEETONIA", "LENEXA", "LENOIR", "LEVITTOWN", "LEWES", "LEWISTOWN", "LEXINGTON", "LIBERTY TWP", "LILLINGTON", "LINCOLN", "LINDENHURST", "LINTON", "LISBON", "LITCHFIELD PK", "LITHIA", "LITITZ", "LITTLE EGG HARBOR TO", "LK FOREST PK", "LK PEEKSKILL", "LOCKHART", "LOCKWOOD", "LOGAN", "LOMA LINDA", "LONE JACK", "LONG BEACH", "LONG LANE", "LONGVIEW", "LORAIN", "LORTON", "LOS ANGELES", "LOUISBURG", "LOVES PARK", "LOWER BURRELL", "LOWRY CITY", "LUBBOCK", "LUGOFF", "LUMBERTON", "LYNBROOK", "LYNNWOOD", "MACHESNEY PARK", "MACON", "MAGNOLIA", "MAHOPAC", "MAHWAH", "MAINEVILLE", "MALVERN", "MALVERNE", "MANASSAS", "MANCHACA", "MANCHESTER", "MANCHESTER TOWNSHIP", "MANCHESTER TW", "MANHEIM", "MANITO", "MANLIUS", "MANNINGTON", "MANSFIELD", "MANSURA", "MAPLE PARK", "MARBLE FALLS", "MARCELLUS", "MARICOPA", "MARIETTA", "MARION", "MARKLEYSBURG", "MARS HILL", "MARSHALLTOWN", "MARSHFIELD", "MARSHVILLE", "MARTINSVILLE", "MARYSVILLE", "MASON CITY", "MASSEY", "MASSILLON", "MASURY", "MATAWAN", "MATEWAN", "MATTAPOISETT", "MATTHEWS", "MAYFIELD HTS", "MAYSEL", "MC CLELLAND", "MC DONALD", "MC KEES ROCKS", "MC SHERRYSTOWN", "MC VEYTOWN", "MCALESTER", "MCDONOUGH", "MCKEESPORT", "MCKINNEY", "MECHANICSBURG", "MECHANICSVILLE", "MEDFORD", "MEDIA", "MEDWAY", "MELVILLE", "MEMPHIS", "MERIDEN", "MERRIAM", "MERRICK", "MERRILL", "MERRILLVILLE", "MESA", "MESQUITE", "MIAMI", "MIAMI GARDENS", "MICHIGAN CITY", "MIDDLETOWN", "MIDLAND", "MIFFLINTOWN", "MILFORD", "MILL CREEK", "MILLBROOK", "MILLEDGEVILLE", "MILLINOCKET", "MILNER", "MILTON", "MILWAUKEE", "MINEOLA", "MINERAL SPGS", "MINERAL WELLS", "MINNEAPOLIS", "MISSION", "MISSION HILLS", "MISSION VIEJO", "MISSOURI CITY", "MISSOURI VALLEY", "MOLINE", "MONESSEN", "MONROE", "MONROE TOWNSHIP", "MONROEVILLE", "MONTCLAIR", "MONTEREY", "MONTICELLO", "MOORESVILLE", "MORGANTON", "MORGANTOWN", "MORRIS PLAINS", "MOUND", "MOUND CITY", "MOUNT HOPE", "MOUNT JOY", "MOUNT LAUREL", "MOUNT PLEASANT", "MOUNT POCONO", "MOUNT UNION", "MOUNT WOLF", "MOUNTVILLE", "MT HOLLY", "MT PLEASANT", "MULVANE", "MUNCIE", "MUNSTER", "MURFREESBORO", "MURRAY", "MURRELLS INLT", "MUSTANG", "MYERSTOWN", "MYSTIC", "N BRANFORD", "N FT MYERS", "NAPERVILLE", "NAPLES", "NAPOLEON", "NASHVILLE", "NATCHITOCHES", "NAUGATUCK", "NEOSHO", "NEPTUNE BEACH", "NESCONSET", "NETCONG", "NEW BLOOMFIELD", "NEW BRAUNFELS", "NEW BRITAIN", "NEW BRUNSWICK", "NEW CASTLE", "NEW CUMBERLAND", "NEW HAVEN", "NEW KENSINGTON", "NEW LONDON", "NEW ORLEANS", "NEW PRESTON", "NEW PROVIDENCE", "NEW ROCHELLE", "NEW TRIPOLI", "NEW ULM", "NEW WINDSOR", "NEW YORK", "NEWARK", "NEWBURGH HEIGHTS", "NEWINGTON", "NEWNAN", "NEWPORT", "NEWPORT BEACH", "NEWTON", "NEWTONVILLE", "NIAGARA FALLS", "NIXA", "NOANK", "NOKOMIS", "NORCROSS", "NORFOLK", "NORMAN", "NORMANDY PARK", "NORTH BABYLON", "NORTH HAVEN", "NORTH HUNTINGDON", "NORTH JACKSON", "NORTH LITTLE ROCK", "NORTH MIAMI", "NORTH PORT", "NORTH RICHLAND HILLS", "NORTH WALES", "NORTH WATERBORO", "NORTHFIELD", "NORTHRIDGE", "NORTON", "NORWALK", "NOTTINGHAM", "NUTLEY", "NYACK", "O FALLON", "OAK RIDGE", "OAKDALE", "OCALA", "OCEANSIDE", "OCILLA", "OLATHE", "OMAHA", "OMRO", "ONA", "ONALASKA", "OPA LOCKA", "ORADLL", "ORION", "ORONO", "ORRINGTON", "OSCEOLA", "OSKALOOSA", "OSSINING", "OSWEGO", "OTTAWA", "OVALO", "OVERLAND PARK", "OWASSO", "OWEGO", "OXFORD", "OYSTER BAY", "OZARK", "PALERMO", "PALM CITY", "PALM HARBOR", "PALMDALE", "PALMYRA", "PALOS HEIGHTS", "PANA", "PAOLA", "PARK RIDGE", "PARLIN", "PARMA", "PARRISH", "PARROTT", "PATASKALA", "PAULS VALLEY", "PAXTON", "PEA RIDGE", "PEARLAND", "PECULIAR", "PEEKSKILL", "PEKIN", "PELION", "PEMBROKE", "PEMBROKE PINES", "PENN YAN", "PENNELLVILLE", "PENNSBURG", "PENNSVILLE", "PEORIA", "PERRY", "PERRYOPOLIS", "PERRYSBURG", "PERRYVILLE", "PHARR", "PHILADELPHIA", "PHILIPPI", "PHOENIX", "PICKENS", "PICKERINGTON", "PIERSON", "PILOT MOUNTAIN", "PINE BLUFF", "PINE HILL", "PINEVILLE", "PINNELLAS PARK", "PISCATAWAY", "PITMAN", "PITTSBURGH", "PLACIDA", "PLAINFIELD", "PLANO", "PLANT CITY", "PLATTEKILL", "PLEASANT HILL", "PLEASANT HOPE", "PLYMOUTH", "POCONO LAKE", "POMFRET CENTER", "POMPANO BEACH", "POOLER", "PORT CARBON", "PORT CHARLOTTE", "PORT NORRIS", "PORT ORANGE", "PORT SAINT LUCIE", "PORT WASHINGTON", "PORTAGE", "PORTER", "PORTERSVILLE", "PORTLAND", "POTTSVILLE", "POUGHKEEPSIE", "POWDER SPRINGS", "POWELL", "PRAIRIE VILLAGE", "PRESCOTT", "PRESCOTT VALLEY", "PRINCETON", "PROSPECT", "PT PLEASANT", "PUNTA GORDA", "PURCHASE", "QUAKERTOWN", "QUEENS VLG", "QUINCY", "RALEIGH", "RANDLEMAN", "RANDOLPH", "RAYTOWN", "READING", "READLYN", "RED BANK", "RED HOUSE", "RED LION", "REEDERS", "REGO PARK", "REHOBOTH BCH", "REIDSVILLE", "RENO", "RENTON", "REPUBLIC", "RICH HILL", "RICHARDS", "RICHMOND", "RICHMOND HILL", "RIDGEWOOD", "RINCON", "RIO GRANDE CITY", "RIO RANCHO", "RIVERDALE", "RIVERHEAD", "RIVERSIDE", "ROANOKE", "ROCHELLE", "ROCHESTER", "ROCK HILL", "ROCKAWAY BCH", "ROCKFORD", "ROCKMART", "ROCKY HILL", "ROCKY MOUNT", "ROGERS", "ROGERSVILLE", "ROMULUS", "ROOSEVELT", "ROSAMOND", "ROSCOE", "ROSENBERG", "ROSENDALE", "ROSWELL", "ROTONDA WEST", "ROUGEMONT", "ROXBORO", "ROY", "RUNNELLS", "RURAL HALL", "RUSH VALLEY", "RUSKIN", "RUSTBURG", "RUTHER GLEN", "RUTHERFORDTON", "S DEERFIELD", "SACO", "SAGINAW", "SAINT AUGUSTINE", "SAINT CHARLES", "SAINT CLAIR", "SAINT CLAIRSVILLE", "SAINT LOUIS", "SAINT MARYS", "SAINT MATTHEWS", "SAINT PAULS", "SAINT PETERS", "SAINT PETERSBURG", "SALEM", "SALISBURY", "SALT LAKE CITY", "SALTSBURG", "SALUNGA", "SAMMAMISH", "SAN ANTONIO", "SAN BENITO", "SAN CLEMENTE", "SAN DIEGO", "SAN ELIZARIO", "SAN JUAN", "SANDUSKY", "SANDY", "SANFORD", "SANGERVILLE", "SANTA ANA", "SARASOTA", "SARATOGA SPRINGS", "SARCOXIE", "SAUGUS", "SAVANNAH", "SAYVILLE", "SCALY MOUNTAIN", "SCHAEFFERSTOWN", "SCHULENBURG", "SCOTT", "SCOTTSDALE", "SEAFORD", "SEALE", "SEATTLE", "SEDONA", "SEGUIN", "SELDEN", "SENECA", "SENOIA", "SEVEN VALLEYS", "SEYMOUR", "SHARON", "SHARPSBURG", "SHARPSVILLE", "SHAVANO PARK", "SHAWNEE", "SHELLSBURG", "SHELTON", "SHENANDOAH", "SHORELINE", "SHOREWOOD", "SHREVEPORT", "SICKLERVILLE", "SILER CITY", "SILOAM SPRINGS", "SIMON", "SIMPSONVILLE", "SIMSBURY", "SIOUX CITY", "SIOUX FALLS", "SKOKIE", "SKOWHEGAN", "SLATINGTON", "SLIDELL", "SMITHFIELD", "SN BERNRDNO", "SNELLVILLE", "SOCORRO", "SOMERS", "SOPHIA", "SOUTH AMBOY", "SOUTH BELOIT", "SOUTH BEND", "SOUTH DARTMOUTH", "SOUTH HOUSTON", "SOUTH PARK", "SOUTH PLAINFIELD", "SOUTH SIOUX CITY", "SOUTHAMPTON", "SOUTHBURY", "SOUTHGATE", "SPARKS", "SPARROW BUSH", "SPENCER", "SPRING", "SPRING BRANCH", "SPRING GROVE", "SPRING HILL", "SPRING HOPE", "SPRING VALLEY", "SPRINGDALE", "SPRINGFIELD", "SPRINGFIELD GARDENS", "SPRINGHILL", "SPRINGTOWN", "SPRNGFLD GDNS", "SPRUCE PINE", "ST PETERSBURG", "ST. GEORGE", "STAFFORD", "STAMFORD", "STANDISH", "STANLEY", "STANTON", "STATEN ISLAND", "STATESVILLE", "STERLING", "STILLMAN VALLEY", "STILWELL", "STOCKBRIDGE", "STOCKTON", "STONE MTN", "STRAFFORD", "STRATFORD", "STRONGSVILLE", "STROUDSBURG", "STRUTHERS", "SUFFIELD", "SUGAR HILL", "SUGAR LAND", "SULPHUR", "SUMMERVILLE", "SUMMIT", "SUN CITY", "SUNBURY", "SUWANEE", "SWANSEA", "SWANTON", "SWEENY", "SWISSVALE", "SYCAMORE", "SYLVANIA", "SYRACUSE", "TACOMA", "TAFTVILLE", "TAMPA", "TAPPAHANNOCK", "TAR HEEL", "TAUNTON", "TAYLORVILLE", "TECUMSEH", "THE WOODLANDS", "THEODOSIA", "THOMASTON", "THOMASVILLE", "TIERRA VERDE", "TIFTON", "TILLSON", "TILTON", "TINLEY PARK", "TOCCOA", "TOLEDO", "TOLLAND", "TOMBALL", "TOMS RIVER", "TOPEKA", "TOPSHAM", "TORRINGTON", "TOVEY", "TOWNSEND", "TRAVELERS RST", "TRENT", "TRINITY", "TROUTMAN", "TROY", "TRUMBULL", "TUCKER", "TULALIP", "TURNER", "TUSCUMBIA", "TYRONE", "UNION", "UNION CITY", "UNIVERSAL CTY", "UNIVERSITY HTS", "UPPR CHICHSTR", "URBANA", "URBANDALE", "UTICA", "VAIL", "VALE", "VALENCIA", "VALPARAISO", "VAN BUREN", "VAN METER", "VAN WERT", "VANDERGRIFT", "VASSALBORO", "VAUGHN", "VENICE", "VERNAL", "VERNON", "VERONA", "VICTOR", "VIDALIA", "VIENNA", "VILLA GROVE", "VILLA RIDGE", "VOLANT", "W HAMPTON BCH", "W TERRE HAUTE", "WADSWORTH", "WAHOO", "WAKE FOREST", "WALDEN", "WALLINGFORD", "WALLINGTON", "WALNUT COVE", "WANAQUE", "WARFORDSBURG", "WARMINSTER", "WARREN", "WARSAW", "WARTHEN", "WASHINGTON", "WASOLA", "WATAUGA", "WATERBURY", "WATERFORD", "WATERLOO", "WATERVILLE", "WATKINS GLEN", "WAXAHACHIE", "WAYCROSS", "WAYNESBORO", "WEBSTER", "WEIRTON", "WELLSBORO", "WELLSVILLE", "WENTZVILLE", "WESLACO", "WEST CHESTER", "WEST DEPTFORD", "WEST DES MOINES", "WEST HAVEN", "WEST HICKORY", "WEST LIBERTY", "WEST MIFFLIN", "WEST PALM BEACH", "WEST POINT", "WEST READING", "WEST SENECA", "WEST SUFFIELD", "WEST VALLEY CITY", "WESTERVILLE", "WESTHAMPTON", "WESTMINSTER", "WESTMORELAND CITY", "WESTPORT", "WESTVILLE", "WETHERSFIELD", "WHARTON", "WHEELING", "WHITE PLAINS", "WHITEHALL", "WHITESTONE", "WHITESTOWN", "WHITING", "WHITMAN", "WHITTIER", "WICHITA", "WILDWOOD", "WILLARD", "WILLIAMSBURG", "WILLIAMSPORT", "WILLOW GROVE", "WILLOWBROOK", "WILLOWICK", "WILMETTE", "WILMINGTON", "WILSON", "WILTON MANORS", "WIMBERLEY", "WINDCREST", "WINDER", "WINNEBAGO", "WINSIDE", "WINSTON", "WINSTON SALEM", "WINTERSET", "WINTHROP", "WOLCOTT", "WOODBRIDGE", "WOODBURY HEIGHTS", "WOODLAND PARK", "WOODLAWN", "WOODS CROSS", "WOODSIDE", "WOODSTOCK", "WORTHINGTON", "WYOMISSING", "YARMOUTH", "YOE", "YONKERS", "YORK", "YORKTOWN", "YORKTOWN HEIGHTS", "YOUNG HARRIS", "YOUNGSTOWN", "YPSILANTI", "ZELIENOPLE", "ZEPHYRHILLS"), class = "factor")), row.names = c(NA, -14L), class = "data.frame") Proprietary NOTICE TO RECIPIENT OF INFORMATION:\ This e-mail may con...{{dropped:16}}
Ben Tupper
2020-May-19 12:45 UTC
[R] Help with ggplot error: #Error in FUN(X[[i]], ...) : object 'x' not found
Hi, When you add a new layer to a plot and you provide new data, wouldn't it make sense to provide aes() with some indication of the names of the variables to use for coordinate plotting? You have provided a grouping variable for the paths, but what of coordinates x and y? How could geom_path() know that your lon/lat variables are to be used as x and y coordinates in the plot? Cheers, Ben On Tue, May 19, 2020 at 8:29 AM Poling, William via R-help < r-help at r-project.org> wrote:> #RStudio Version Version 1.2.1335 > sessionInfo() > # R version 4.0.0 Patched (2020-05-03 r78349) > #Platform: x86_64-w64-mingw32/x64 (64-bit) > #Running under: Windows 10 x64 (build 17763) > > Good morning. > > I am testing a small sample of my data using an example found here: > # > https://www.r-orms.org/mixed-integer-linear-programming/practicals/problem-tsp/ > > If needed I can provide my complete script which is simply the same as the > example only using a few rows from my data, let me know, as I think this is > just a ggplot issue. > > I am getting this error when I use ggplot > #Error in FUN(X[[i]], ...) : object 'x' not found > > 1. I have reviewed the following with no success. > #Sources referred to for help > #https://github.com/business-science/anomalize/issues/2 > # > https://stackoverflow.com/questions/38988028/error-in-funxi-object-x-not-found > > #https://community.rstudio.com/t/error-in-fun-x-i-object-variable-not-found/62532/3 > #https://www.neonscience.org/packages-in-r > <https://stackoverflow.com/questions/38988028/error-in-funxi-object-x-not-found#https://community.rstudio.com/t/error-in-fun-x-i-object-variable-not-found/62532/3%23https://www.neonscience.org/packages-in-r> > > 2. I have rebooted and re-installed ggplot2 for updates > > 3. These are the only libraries running > library(knitr) > library(dplyr) > library(ggplot2) > library(ggmap) > library(ompr) > library(ompr.roi) > library(ROI.plugin.glpk) > > Here is the original plot attempt: > ggplot(c1members2, aes(x , y)) + > geom_point() + > geom_line(data = paths, aes(group = trip_id)) + #Error in FUN(X[[i]], > ...) : object 'x' not found > ggtitle(paste0("Optimal route with cost: ", > round(objective_value(result), 2))) > > #I have gone through each of the steps one by one and error occurs at --> > geom_line(data = paths, aes(group = trip_id)) > > I have also tried the following: > Test1 > p <- ggplot(c1members2, aes(x,y)) + > geom_point() > > p + geom_line(data = paths, aes(group = trip_id),inherit.aes = FALSE) + > #Error in FUN(X[[i]], ...) : object 'x' not found > ggtitle(paste0("Optimal route with cost: ", > round(objective_value(result), 2))) > > Test2 > ggplot(c1members2, aes(x,y)) + > geom_point() + > geom_line(data = paths, aes(group = trip_id),inherit.aes = TRUE) + #Error > in FUN(X[[i]], ...) : object 'x' not found > ggtitle(paste0("Optimal route with cost: ", > round(objective_value(result), 2))) > > Here are the data involved. > str(c1members2) > 'data.frame': 7 obs. of 3 variables: > $ id: int 1 2 3 4 5 6 7 > $ x : num 95.5 90.2 46.8 40.9 43.3 ... > $ y : num 4.65 47.57 8.07 38.43 28.59 ... > > str(paths) > data.frame': 14 obs. of 6 variables: > $ trip_id : int 1 2 3 4 5 6 7 1 2 3 ... > $ property : chr "from" "from" "from" "from" ... > $ idx_val : int 3 1 5 7 6 4 2 1 2 3 ... > $ Longitude: num -122 -122 -122 -122 -122 ... > $ Latitude : num 47.3 47.2 47.3 47.6 47.6 ... > $ city : Factor w/ 1337 levels "ABBOTTSTOWN",..: 1169 1169 1169 1069 > 1069 1069 1069 1169 1069 1169 ... > > Here are the dput()'s > > I hope I have provided enough information to elicit a response. > > Thank you. > > WHP > > dput(c1members2) > structure(list(id = 1:7, x = c(95.521828085515, 90.2272877161736, > 46.8465689660691, 40.8959155605829, 43.2591531526978, 23.7485886058345, > 64.0406297698986), y = c(4.64803485876031, 47.5678629996171, > 8.0689847051367, 38.4256264258875, 28.5930051512296, 43.5934562642672, > 42.415566619041)), class = "data.frame", row.names = c(NA, -7L > > dput(paths) #Although I am only using city %in% c("SEATTLE","TACOMA")) > from the original 2353 rows = 7 rows in c1members2 > structure(list(trip_id = c(1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L, > 3L, 4L, 5L, 6L, 7L), property = c("from", "from", "from", "from", > "from", "from", "from", "to", "to", "to", "to", "to", "to", "to" > ), idx_val = c(3L, 1L, 5L, 7L, 6L, 4L, 2L, 1L, 2L, 3L, 4L, 5L, > 6L, 7L), Longitude = c(-122.490417, -122.429323, -122.358115, > -122.37003, -122.41282, -122.299261, -122.390815, -122.429323, > -122.390815, -122.490417, -122.299261, -122.358115, -122.41282, > -122.37003), Latitude = c(47.274599, 47.176596, 47.276776, 47.565667, > 47.646222, 47.673056, 47.549377, 47.176596, 47.549377, 47.274599, > 47.673056, 47.276776, 47.646222, 47.565667), city = structure(c(1169L, > 1169L, 1169L, 1069L, 1069L, 1069L, 1069L, 1169L, 1069L, 1169L, > 1069L, 1169L, 1069L, 1069L), .Label = c("ABBOTTSTOWN", "ABILENE", > "ACWORTH", "ADAMS", "ADDISON", "ADKINS", "ALBANY", "ALBIA", "ALBUQUERQUE", > "ALEXANDRIA", "ALFRED", "ALIQUIPPA", "ALISO VIEJO", "ALLEN PARK", > "ALLENTOWN", "ALPHA", "ALPHARETTA", "ALPINE", "ALTOONA", "AMARILLO", > "AMBLER", "AMBRIDGE", "AMHERST", "AMITYVILLE", "ANAHIEM", "ANDERSON", > "ANDOVER", "ANGIER", "ANGLETON", "ANKENY", "ANN ARBOR", "ANZA", > "APEX", "APOLLO", "ARCADIA", "ARCHDALE", "ARDMORE", "ARGYLE", > "ARKANSAS CITY", "ARLINGTON", "ARNOLD", "ARTHUR", "ASHEBORO", > "ASHEVILLE", "ASHLAND", "ASHLAND CITY", "ASHTON", "ASTON", "ATHENS", > "ATLANTA", "ATLANTIC BCH", "AUBORN", "AUGUSTA", "AURORA", "AUSTELL", > "AUSTIN", "AVENTURA", "AVONDALE ESTATES", "BAKERSFIELD", "BALDWIN CITY", > "BALDWIN PLACE", "BALLWIN", "BANGOR", "BARBOURSVILLE", "BARNEGAT", > "BARTLETT", "BARTON", "BARTONVILLE", "BASSETT", "BATAVIA", "BATESBURG", > "BATON ROUGE", "BAXTER SPRINGS", "BAY CITY", "BAYONNE", "BAYSIDE", > "BAYTOWN", "BEAR", "BEAUMONT", "BEECH CREEK", "BEECHER CITY", > "BELFAIR", "BELLE VERNON", "BELLEAIR", "BELLEVUE", "BELLMAWR", > "BELLMORE", "BELLWOOD", "BELMAR", "BELMONT", "BELVIDERE", "BENNET", > "BENTON", "BENTONVILLE", "BERLIN", "BESSEMER CITY", "BETHANY", > "BETHEL", "BETHEL PARK", "BETHESDA", "BETHLEHEM", "BETTENDORF", > "BIGLERVILLE", "BINGHAMTON", "BIRDSBORO", "BIWABIK", "BLACK MOUNTAIN", > "BLACKSBURG", "BLAINE", "BLAIRSVILLE", "BLAKESLEE", "BLOOMFIELD", > "BLUE BELL", "BLUE GRASS", "BLUE POINT", "BLUE SPRINGS", "BOCA RATON", > "BODFISH", "BOILING SPRINGS", "BOLIVAR", "BON AQUA", "BONNER SPRINGS", > "BONNEY LAKE", "BOONEVILLE", "BOSSIER CITY", "BOUNTIFUL", "BOWLING GREEN", > "BOYERTOWN", "BOYNTON BEACH", "BRADENTON", "BRADENVILLE", "BRANDAMORE", > "BRANDON", "BRANFORD", "BRANSON", "BRASELTON", "BREEZEWOOD", > "BRENTON", "BRENTWOOD", "BREWSTER", "BRICK", "BRIDGEPORT", "BRIDGETON", > "BRIGHAM CITY", "BROADDUS", "BROCKPORT", "BROGUE", "BROKEN ARROW", > "BRONX", "BROOKFIELD", "BROOKHAVEN", "BROOKLYN", "BROWNS MILLS", > "BROWNSBURG", "BROWNSVILLE", "BRUNSWICK", "BRYAN", "BUCKSPORT", > "BUDD LAKE", "BUFFALO", "BULVERDE", "BUNKERVILLE", "BURBANK", > "BURFORD", "BURIEN", "BURLINGTON", "BURR RIDGE", "BURTON", "BUSKIRK", > "BUTLER", "BUXTON", "BYRON", "CALERA", "CAMBRIDGE", "CAMP HILL", > "CAMPBELL", "CANAAN", "CANAL WINCHESTER", "CANASTOTA", "CANTON", > "CARDIFF BY THE SEA", "CARL JUNCTION", "CARLISLE", "CARLTON", > "CAROL STREAM", "CARROLLTON", "CARSON CITY", "CARTERSVILLE", > "CARTHAGE", "CARY", "CASEYVILLE", "CASSVILLE", "CASWELL", "CATO", > "CEDAR RAPIDS", "CEDARBURG", "CEDARVILLE", "CENTER POINT", "CENTERTON", > "CENTRAL ISLIP", "CENTRAL POINT", "CHAGRIN FALLS", "CHALFONT", > "CHAPEL HILL", "CHAPIN", "CHARDON", "CHARITON", "CHARLESTON", > "CHARLOTTE", "CHEROKEE", "CHERRY HILL", "CHERRY VALLEY", "CHESHIRE", > "CHEST SPRINGS", "CHESTER", "CHESTERTON", "CHICAGO", "CHILLICOTHE", > "CHOCTAW", "CICERO", "CINCINNATI", "CLAY", "CLEARWATER", "CLEARWATER > BEACH", > "CLEMMONS", "CLENDENIN", "CLEVELAND", "CLEVELAND HTS", "CLEVES", > "CLIFFSIDE PARK", "CLIFTON", "CLIFTON PARK", "CLIFTON SPGS", > "CLINTON", "COACHELLA", "COAL TOWNSHIP", "COATESVILLE", "COLLEGE STATION", > "COLLINSVILLE", "COLONIA", "COLUMBIA", "COLUMBUS", "COMMERCE", > "CONCORD", "CONCORD TOWNSHIP", "CONNELLSVILLE", "CONROE", "CONWAY", > "CONYERS", "COOKEVILLE", "COON RAPIDS", "CORAOPOLIS", "CORDOVA", > "CORNELIUS", "CORNWALL", "CORONADO", "CORPUS CHRISTI", "CORRY", > "COTTAGE HILLS", "COTTLEVILLE", "COTTONWOOD", "COVINGTON", "COWEN", > "CRANBERRY TOWNSHIP", "CROWN POINT", "CUBA", "CUMBERLAND CENTER", > "CUMBERLAND FORESIDE", "CUMMING", "CUYAHOGA FLS", "CYPRESS", > "DALLAS", "DALLASTOWN", "DANBURY", "DANIA BCH", "DANVILLE", "DAVENPORT", > "DAVIE", "DAVIS JUNCTION", "DAWSON", "DAYTON", "DE SOTO", "DECATUR", > "DEFIANCE", "DEFOREST", "DELAVAN", "DELMAR", "DELRAY BEACH", > "DEMOTTE", "DENISON", "DENVER", "DEPTFORD", "DERBY", "DERRY", > "DES MOINES", "DETROIT", "DICKINSON", "DILLSBURG", "DITTMER", > "DIXON", "DONNA", "DOTHAN", "DOUGLAS", "DOUGLASVILLE", "DOVER", > "DOYLESTOWN", "DREXEL HILL", "DUBLIN", "DUCHESNE", "DULUTH", > "DUNCAN", "DUNCANNON", "DUNCANSVILLE", "DUNEDIN", "DUNNSVILLE", > "DURHAM", "DUTTON", "EAGLE GROVE", "EAST AURORA", "EAST CHICAGO", > "EAST EARL", "EAST HANOVER", "EAST HARTFORD", "EAST HARTLAND", > "EAST LEROY", "EAST LIVERPOOL", "EAST MEADOW", "EAST NORTHPORT", > "EAST ORANGE", "EAST PEORIA", "EAST SAINT LOUIS", "EASTON", "EDGERTON", > "EDISON", "EDMOND", "EGG HBR TWP", "EL DORADO", "EL PASO", "ELDRIDGE", > "ELGIN", "ELIZABETHVILLE", "ELLISVILLE", "ELLSWORTH", "ELLWOOD CITY", > "ELMHURST", "ELMWOOD PARK", "ELOY", "ELY", "EMERSON", "EMORY", > "ENDICOTT", "ENGLEWOOD", "ENID", "ENNICE", "ENOLA", "ENUMCLAW", > "EPHRATA", "ERIE", "ESTERO", "EUREKA SPRINGS", "EVANSVILLE", > "EVERETT", "EXCELSIOR SPRINGS", "EXTON", "FAIRFAX", "FAIRFIELD", > "FAIRHAVEN", "FAIRVIEW", "FAIRVIEW PARK", "FALMOUTH", "FAR HILLS", > "FAR ROCKAWAY", "FARMINGDALE", "FARMINGTON", "FAYETTE", "FAYETTEVILLE", > "FELTON", "FENTON", "FERGUSON", "FIELDALE", "FINDLAY", "FINGERVILLE", > "FLEMINGTON", "FLINT", "FLORENCE", "FLORESVILLE", "FLORISSANT", > "FLOVILLA", "FLOWER MOUND", "FLUSHING", "FOGELSVILLE", "FOLSOM", > "FONTANELLE", "FOREST HILLS", "FOREST PARK", "FORT DODGE", "FORT > FAIRFIELD", > "FORT GAY", "FORT LAUDERDALE", "FORT LEE", "FORT MILL", "FORT MOHAVE", > "FORT PAYNE", "FORT PIERCE", "FORT SMITH", "FORT WAYNE", "FORT WORTH", > "FOSTORIA", "FOUNTAIN INN", "FRANKFORT", "FRANKLIN", "FREEDOM", > "FREEHOLD", "FREEPORT", "FREMONT", "FULLERTON", "FULSHEAR", "FULTON", > "GADSDEN", "GAFFNEY", "GAINESVILLE", "GALLOWAY", "GARDEN PRAIRIE", > "GARDNERS", "GARNETT VALLEY", "GARY", "GASTON", "GASTONIA", "GENEVA", > "GETTYSBURG", "GIBSONIA", "GILBERT", "GIRARD", "GLEN BURNIE", > "GLEN CARBON", "GLEN COVE", "GLEN MILLS", "GLENSHAW", "GLENVIEW", > "GLENWOOD", "GOLDEN CITY", "GOLIAD", "GOODSON", "GOODYEAR", "GORHAM", > "GOSHEN", "GRANBURY", "GRANBY", "GRAND PRAIRIE", "GRAND RAPIDS", > "GRANDVIEW", "GRANITE CITY", "GRANITE FALLS", "GRANTS PASS", > "GRASS VALLEY", "GRAVETTE", "GRAYSVILLE", "GREEN LANE", "GREENBRIER", > "GREENLAWN", "GREENSBORO", "GREENSBURG", "GREENUP", "GREENVILLE", > "GREER", "GRIFFIN", "GRIFFITH", "GROTON", "GUADALUPE", "GUILFORD", > "HADLEY", "HAGAN", "HALF WAY", "HALLANDALE BEACH", "HAMBLETON", > "HAMBURG", "HAMDEN", "HAMILTON", "HAMMOND", "HAMMONTON", "HAMPSHIRE", > "HAPEVILLE", "HARBORCREEK", "HARLAN", "HARRISBURG", "HARRISON", > "HARRISONVILLE", "HARTWELL", "HASTINGS", "HATFIELD", "HAVERHILL", > "HAWK POINT", "HAYESVILLE", "HELEN", "HENDERSON", "HENDERSONVILLE", > "HENRICO", "HENRIETTA", "HERMITAGE", "HERNDON", "HERSHEY", "HIALEAH", > "HIAWATHA", "HIBBING", "HICKORY", "HICKORY GROVE", "HIDDENITE", > "HIGH HILL", "HIGH POINT", "HIGH RIDGE", "HIGHLAND", "HIGHLAND MILLS", > "HINCKLEY", "HIRAM", "HOBART", "HOLBROOK", "HOLDEN", "HOLDENVILLE", > "HOLLADAY", "HOLLIS", "HOLLY SPRINGS", "HOLLYWOOD", "HOLTWOOD", > "HOMER", "HOMESTEAD", "HONEYVILLE", "HOPE MILLS", "HOT SPRINGS", > "HOT SPRINGS NATIONAL PARK", "HOUSTON", "HUBBARD", "HUDSON", > "HUFFMAN", "HULL", "HUMANSVILLE", "HUNTERSVILLE", "HUNTINGDON", > "HUNTINGTON BEACH", "HUNTS POINT", "HURDLE MILLS", "HURRICANE", > "HURST", "IMPERIAL", "INDEPENDENCE", "INDIAN SHORES", "INDIAN TRAIL", > "INDIANA", "INDIANAPOLIS", "INDIANOLA", "INMAN", "IOWA CITY", > "IRMO", "IRVINGTON", "IRWIN", "ISANTI", "ISLESBORO", "ISLIP", > "ISSAQUAH", "ITHACA", "JACKSBORO", "JACKSON", "JACKSON HTS", > "JACKSONVILLE", "JAMAICA", "JAMESTOWN", "JASPER", "JEANNETTE", > "JEFFERSON", "JEFFERSON CITY", "JEWELL", "JOHNSTON", "JOHNSTOWN", > "JONESBORO", "JONESPORT", "JONESTOWN", "JOPLIN", "JUPITER", "KANKAKEE", > "KANNAPOLIS", "KANSAS CITY", "KATY", "KEARNEY", "KELLERTON", > "KEMAH", "KENMORE", "KENNESAW", "KENT", "KINGMAN", "KINGS MOUNTAIN", > "KINGSLAND", "KINGSTON", "KINGWOOD", "KIRKLAND", "KUTZTOWN", > "LA QUINTA", "LA RUE", "LA VERNE", "LAFAYETTE", "LAKE BLUFF", > "LAKE IN THE HILL", "LAKE ISABELLA", "LAKE PLACID", "LAKE SAINT LOUIS", > "LAKE TAPPS", "LAKE VILLAGE", "LAKE WAUKOMIS", "LAKE WORTH", > "LAKEBAY", "LAKELAND", "LAKEWOOD", "LAKEWOOD RCH", "LAMBERTVILLE", > "LANCASTER", "LANDISVILLE", "LANSDALE", "LAREDO", "LARGO", "LAS VEGAS", > "LATROBE", "LAUDERHILL", "LAWNDALE", "LAWRENCE", "LAWRENCEVILLE", > "LE MARS", "LE ROY", "LEAGUE CITY", "LEAVENWORTH", "LEAWOOD", > "LEBANON", "LECOMPTON", "LEECHBURG", "LEES SUMMIT", "LEESBURG", > "LEESVILLE", "LEETONIA", "LENEXA", "LENOIR", "LEVITTOWN", "LEWES", > "LEWISTOWN", "LEXINGTON", "LIBERTY TWP", "LILLINGTON", "LINCOLN", > "LINDENHURST", "LINTON", "LISBON", "LITCHFIELD PK", "LITHIA", > "LITITZ", "LITTLE EGG HARBOR TO", "LK FOREST PK", "LK PEEKSKILL", > "LOCKHART", "LOCKWOOD", "LOGAN", "LOMA LINDA", "LONE JACK", "LONG BEACH", > "LONG LANE", "LONGVIEW", "LORAIN", "LORTON", "LOS ANGELES", "LOUISBURG", > "LOVES PARK", "LOWER BURRELL", "LOWRY CITY", "LUBBOCK", "LUGOFF", > "LUMBERTON", "LYNBROOK", "LYNNWOOD", "MACHESNEY PARK", "MACON", > "MAGNOLIA", "MAHOPAC", "MAHWAH", "MAINEVILLE", "MALVERN", "MALVERNE", > "MANASSAS", "MANCHACA", "MANCHESTER", "MANCHESTER TOWNSHIP", > "MANCHESTER TW", "MANHEIM", "MANITO", "MANLIUS", "MANNINGTON", > "MANSFIELD", "MANSURA", "MAPLE PARK", "MARBLE FALLS", "MARCELLUS", > "MARICOPA", "MARIETTA", "MARION", "MARKLEYSBURG", "MARS HILL", > "MARSHALLTOWN", "MARSHFIELD", "MARSHVILLE", "MARTINSVILLE", "MARYSVILLE", > "MASON CITY", "MASSEY", "MASSILLON", "MASURY", "MATAWAN", "MATEWAN", > "MATTAPOISETT", "MATTHEWS", "MAYFIELD HTS", "MAYSEL", "MC CLELLAND", > "MC DONALD", "MC KEES ROCKS", "MC SHERRYSTOWN", "MC VEYTOWN", > "MCALESTER", "MCDONOUGH", "MCKEESPORT", "MCKINNEY", "MECHANICSBURG", > "MECHANICSVILLE", "MEDFORD", "MEDIA", "MEDWAY", "MELVILLE", "MEMPHIS", > "MERIDEN", "MERRIAM", "MERRICK", "MERRILL", "MERRILLVILLE", "MESA", > "MESQUITE", "MIAMI", "MIAMI GARDENS", "MICHIGAN CITY", "MIDDLETOWN", > "MIDLAND", "MIFFLINTOWN", "MILFORD", "MILL CREEK", "MILLBROOK", > "MILLEDGEVILLE", "MILLINOCKET", "MILNER", "MILTON", "MILWAUKEE", > "MINEOLA", "MINERAL SPGS", "MINERAL WELLS", "MINNEAPOLIS", "MISSION", > "MISSION HILLS", "MISSION VIEJO", "MISSOURI CITY", "MISSOURI VALLEY", > "MOLINE", "MONESSEN", "MONROE", "MONROE TOWNSHIP", "MONROEVILLE", > "MONTCLAIR", "MONTEREY", "MONTICELLO", "MOORESVILLE", "MORGANTON", > "MORGANTOWN", "MORRIS PLAINS", "MOUND", "MOUND CITY", "MOUNT HOPE", > "MOUNT JOY", "MOUNT LAUREL", "MOUNT PLEASANT", "MOUNT POCONO", > "MOUNT UNION", "MOUNT WOLF", "MOUNTVILLE", "MT HOLLY", "MT PLEASANT", > "MULVANE", "MUNCIE", "MUNSTER", "MURFREESBORO", "MURRAY", "MURRELLS INLT", > "MUSTANG", "MYERSTOWN", "MYSTIC", "N BRANFORD", "N FT MYERS", > "NAPERVILLE", "NAPLES", "NAPOLEON", "NASHVILLE", "NATCHITOCHES", > "NAUGATUCK", "NEOSHO", "NEPTUNE BEACH", "NESCONSET", "NETCONG", > "NEW BLOOMFIELD", "NEW BRAUNFELS", "NEW BRITAIN", "NEW BRUNSWICK", > "NEW CASTLE", "NEW CUMBERLAND", "NEW HAVEN", "NEW KENSINGTON", > "NEW LONDON", "NEW ORLEANS", "NEW PRESTON", "NEW PROVIDENCE", > "NEW ROCHELLE", "NEW TRIPOLI", "NEW ULM", "NEW WINDSOR", "NEW YORK", > "NEWARK", "NEWBURGH HEIGHTS", "NEWINGTON", "NEWNAN", "NEWPORT", > "NEWPORT BEACH", "NEWTON", "NEWTONVILLE", "NIAGARA FALLS", "NIXA", > "NOANK", "NOKOMIS", "NORCROSS", "NORFOLK", "NORMAN", "NORMANDY PARK", > "NORTH BABYLON", "NORTH HAVEN", "NORTH HUNTINGDON", "NORTH JACKSON", > "NORTH LITTLE ROCK", "NORTH MIAMI", "NORTH PORT", "NORTH RICHLAND HILLS", > "NORTH WALES", "NORTH WATERBORO", "NORTHFIELD", "NORTHRIDGE", > "NORTON", "NORWALK", "NOTTINGHAM", "NUTLEY", "NYACK", "O FALLON", > "OAK RIDGE", "OAKDALE", "OCALA", "OCEANSIDE", "OCILLA", "OLATHE", > "OMAHA", "OMRO", "ONA", "ONALASKA", "OPA LOCKA", "ORADLL", "ORION", > "ORONO", "ORRINGTON", "OSCEOLA", "OSKALOOSA", "OSSINING", "OSWEGO", > "OTTAWA", "OVALO", "OVERLAND PARK", "OWASSO", "OWEGO", "OXFORD", > "OYSTER BAY", "OZARK", "PALERMO", "PALM CITY", "PALM HARBOR", > "PALMDALE", "PALMYRA", "PALOS HEIGHTS", "PANA", "PAOLA", "PARK RIDGE", > "PARLIN", "PARMA", "PARRISH", "PARROTT", "PATASKALA", "PAULS VALLEY", > "PAXTON", "PEA RIDGE", "PEARLAND", "PECULIAR", "PEEKSKILL", "PEKIN", > "PELION", "PEMBROKE", "PEMBROKE PINES", "PENN YAN", "PENNELLVILLE", > "PENNSBURG", "PENNSVILLE", "PEORIA", "PERRY", "PERRYOPOLIS", > "PERRYSBURG", "PERRYVILLE", "PHARR", "PHILADELPHIA", "PHILIPPI", > "PHOENIX", "PICKENS", "PICKERINGTON", "PIERSON", "PILOT MOUNTAIN", > "PINE BLUFF", "PINE HILL", "PINEVILLE", "PINNELLAS PARK", "PISCATAWAY", > "PITMAN", "PITTSBURGH", "PLACIDA", "PLAINFIELD", "PLANO", "PLANT CITY", > "PLATTEKILL", "PLEASANT HILL", "PLEASANT HOPE", "PLYMOUTH", "POCONO LAKE", > "POMFRET CENTER", "POMPANO BEACH", "POOLER", "PORT CARBON", "PORT > CHARLOTTE", > "PORT NORRIS", "PORT ORANGE", "PORT SAINT LUCIE", "PORT WASHINGTON", > "PORTAGE", "PORTER", "PORTERSVILLE", "PORTLAND", "POTTSVILLE", > "POUGHKEEPSIE", "POWDER SPRINGS", "POWELL", "PRAIRIE VILLAGE", > "PRESCOTT", "PRESCOTT VALLEY", "PRINCETON", "PROSPECT", "PT PLEASANT", > "PUNTA GORDA", "PURCHASE", "QUAKERTOWN", "QUEENS VLG", "QUINCY", > "RALEIGH", "RANDLEMAN", "RANDOLPH", "RAYTOWN", "READING", "READLYN", > "RED BANK", "RED HOUSE", "RED LION", "REEDERS", "REGO PARK", > "REHOBOTH BCH", "REIDSVILLE", "RENO", "RENTON", "REPUBLIC", "RICH HILL", > "RICHARDS", "RICHMOND", "RICHMOND HILL", "RIDGEWOOD", "RINCON", > "RIO GRANDE CITY", "RIO RANCHO", "RIVERDALE", "RIVERHEAD", "RIVERSIDE", > "ROANOKE", "ROCHELLE", "ROCHESTER", "ROCK HILL", "ROCKAWAY BCH", > "ROCKFORD", "ROCKMART", "ROCKY HILL", "ROCKY MOUNT", "ROGERS", > "ROGERSVILLE", "ROMULUS", "ROOSEVELT", "ROSAMOND", "ROSCOE", > "ROSENBERG", "ROSENDALE", "ROSWELL", "ROTONDA WEST", "ROUGEMONT", > "ROXBORO", "ROY", "RUNNELLS", "RURAL HALL", "RUSH VALLEY", "RUSKIN", > "RUSTBURG", "RUTHER GLEN", "RUTHERFORDTON", "S DEERFIELD", "SACO", > "SAGINAW", "SAINT AUGUSTINE", "SAINT CHARLES", "SAINT CLAIR", > "SAINT CLAIRSVILLE", "SAINT LOUIS", "SAINT MARYS", "SAINT MATTHEWS", > "SAINT PAULS", "SAINT PETERS", "SAINT PETERSBURG", "SALEM", "SALISBURY", > "SALT LAKE CITY", "SALTSBURG", "SALUNGA", "SAMMAMISH", "SAN ANTONIO", > "SAN BENITO", "SAN CLEMENTE", "SAN DIEGO", "SAN ELIZARIO", "SAN JUAN", > "SANDUSKY", "SANDY", "SANFORD", "SANGERVILLE", "SANTA ANA", "SARASOTA", > "SARATOGA SPRINGS", "SARCOXIE", "SAUGUS", "SAVANNAH", "SAYVILLE", > "SCALY MOUNTAIN", "SCHAEFFERSTOWN", "SCHULENBURG", "SCOTT", "SCOTTSDALE", > "SEAFORD", "SEALE", "SEATTLE", "SEDONA", "SEGUIN", "SELDEN", > "SENECA", "SENOIA", "SEVEN VALLEYS", "SEYMOUR", "SHARON", "SHARPSBURG", > "SHARPSVILLE", "SHAVANO PARK", "SHAWNEE", "SHELLSBURG", "SHELTON", > "SHENANDOAH", "SHORELINE", "SHOREWOOD", "SHREVEPORT", "SICKLERVILLE", > "SILER CITY", "SILOAM SPRINGS", "SIMON", "SIMPSONVILLE", "SIMSBURY", > "SIOUX CITY", "SIOUX FALLS", "SKOKIE", "SKOWHEGAN", "SLATINGTON", > "SLIDELL", "SMITHFIELD", "SN BERNRDNO", "SNELLVILLE", "SOCORRO", > "SOMERS", "SOPHIA", "SOUTH AMBOY", "SOUTH BELOIT", "SOUTH BEND", > "SOUTH DARTMOUTH", "SOUTH HOUSTON", "SOUTH PARK", "SOUTH PLAINFIELD", > "SOUTH SIOUX CITY", "SOUTHAMPTON", "SOUTHBURY", "SOUTHGATE", > "SPARKS", "SPARROW BUSH", "SPENCER", "SPRING", "SPRING BRANCH", > "SPRING GROVE", "SPRING HILL", "SPRING HOPE", "SPRING VALLEY", > "SPRINGDALE", "SPRINGFIELD", "SPRINGFIELD GARDENS", "SPRINGHILL", > "SPRINGTOWN", "SPRNGFLD GDNS", "SPRUCE PINE", "ST PETERSBURG", > "ST. GEORGE", "STAFFORD", "STAMFORD", "STANDISH", "STANLEY", > "STANTON", "STATEN ISLAND", "STATESVILLE", "STERLING", "STILLMAN VALLEY", > "STILWELL", "STOCKBRIDGE", "STOCKTON", "STONE MTN", "STRAFFORD", > "STRATFORD", "STRONGSVILLE", "STROUDSBURG", "STRUTHERS", "SUFFIELD", > "SUGAR HILL", "SUGAR LAND", "SULPHUR", "SUMMERVILLE", "SUMMIT", > "SUN CITY", "SUNBURY", "SUWANEE", "SWANSEA", "SWANTON", "SWEENY", > "SWISSVALE", "SYCAMORE", "SYLVANIA", "SYRACUSE", "TACOMA", "TAFTVILLE", > "TAMPA", "TAPPAHANNOCK", "TAR HEEL", "TAUNTON", "TAYLORVILLE", > "TECUMSEH", "THE WOODLANDS", "THEODOSIA", "THOMASTON", "THOMASVILLE", > "TIERRA VERDE", "TIFTON", "TILLSON", "TILTON", "TINLEY PARK", > "TOCCOA", "TOLEDO", "TOLLAND", "TOMBALL", "TOMS RIVER", "TOPEKA", > "TOPSHAM", "TORRINGTON", "TOVEY", "TOWNSEND", "TRAVELERS RST", > "TRENT", "TRINITY", "TROUTMAN", "TROY", "TRUMBULL", "TUCKER", > "TULALIP", "TURNER", "TUSCUMBIA", "TYRONE", "UNION", "UNION CITY", > "UNIVERSAL CTY", "UNIVERSITY HTS", "UPPR CHICHSTR", "URBANA", > "URBANDALE", "UTICA", "VAIL", "VALE", "VALENCIA", "VALPARAISO", > "VAN BUREN", "VAN METER", "VAN WERT", "VANDERGRIFT", "VASSALBORO", > "VAUGHN", "VENICE", "VERNAL", "VERNON", "VERONA", "VICTOR", "VIDALIA", > "VIENNA", "VILLA GROVE", "VILLA RIDGE", "VOLANT", "W HAMPTON BCH", > "W TERRE HAUTE", "WADSWORTH", "WAHOO", "WAKE FOREST", "WALDEN", > "WALLINGFORD", "WALLINGTON", "WALNUT COVE", "WANAQUE", "WARFORDSBURG", > "WARMINSTER", "WARREN", "WARSAW", "WARTHEN", "WASHINGTON", "WASOLA", > "WATAUGA", "WATERBURY", "WATERFORD", "WATERLOO", "WATERVILLE", > "WATKINS GLEN", "WAXAHACHIE", "WAYCROSS", "WAYNESBORO", "WEBSTER", > "WEIRTON", "WELLSBORO", "WELLSVILLE", "WENTZVILLE", "WESLACO", > "WEST CHESTER", "WEST DEPTFORD", "WEST DES MOINES", "WEST HAVEN", > "WEST HICKORY", "WEST LIBERTY", "WEST MIFFLIN", "WEST PALM BEACH", > "WEST POINT", "WEST READING", "WEST SENECA", "WEST SUFFIELD", > "WEST VALLEY CITY", "WESTERVILLE", "WESTHAMPTON", "WESTMINSTER", > "WESTMORELAND CITY", "WESTPORT", "WESTVILLE", "WETHERSFIELD", > "WHARTON", "WHEELING", "WHITE PLAINS", "WHITEHALL", "WHITESTONE", > "WHITESTOWN", "WHITING", "WHITMAN", "WHITTIER", "WICHITA", "WILDWOOD", > "WILLARD", "WILLIAMSBURG", "WILLIAMSPORT", "WILLOW GROVE", "WILLOWBROOK", > "WILLOWICK", "WILMETTE", "WILMINGTON", "WILSON", "WILTON MANORS", > "WIMBERLEY", "WINDCREST", "WINDER", "WINNEBAGO", "WINSIDE", "WINSTON", > "WINSTON SALEM", "WINTERSET", "WINTHROP", "WOLCOTT", "WOODBRIDGE", > "WOODBURY HEIGHTS", "WOODLAND PARK", "WOODLAWN", "WOODS CROSS", > "WOODSIDE", "WOODSTOCK", "WORTHINGTON", "WYOMISSING", "YARMOUTH", > "YOE", "YONKERS", "YORK", "YORKTOWN", "YORKTOWN HEIGHTS", "YOUNG HARRIS", > "YOUNGSTOWN", "YPSILANTI", "ZELIENOPLE", "ZEPHYRHILLS"), class > "factor")), row.names = c(NA, > -14L), class = "data.frame") > > > > > > > Proprietary > > NOTICE TO RECIPIENT OF INFORMATION:\ This e-mail may con...{{dropped:16}} > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Ben Tupper Bigelow Laboratory for Ocean Science East Boothbay, Maine http://www.bigelow.org/ https://eco.bigelow.org [[alternative HTML version deleted]]
Rui Barradas
2020-May-19 14:25 UTC
[R] Help with ggplot error: #Error in FUN(X[[i]], ...) : object 'x' not found
Hello, I'm getting a different error: p <- ggplot(c1members2, aes(x,y)) + geom_point() p + geom_line(data = paths, aes(group = trip_id)) + ggtitle(paste0("Optimal route with cost: ", round(objective_value(result), 2))) #Error in objective_value(result) : object 'result' not found When I remove the ggtitle line, p + geom_line(data = paths, aes(group = trip_id)) #+ #Error: Aesthetics must be either length 1 or the same as the data (14): x and y This makes sense, the data argument has changed, trip_id is in data set paths, not in c1members2. So I have added x, y aesthetics to the geom_line call. p + geom_line(data = paths, aes(Longitude, Latitude, group = trip_id)) No errors. Is this it? Hope this helps, Rui Barradas ?s 13:28 de 19/05/20, Poling, William via R-help escreveu:> #RStudio Version Version 1.2.1335 > sessionInfo() > # R version 4.0.0 Patched (2020-05-03 r78349) > #Platform: x86_64-w64-mingw32/x64 (64-bit) > #Running under: Windows 10 x64 (build 17763) > > Good morning. > > I am testing a small sample of my data using an example found here: > #https://www.r-orms.org/mixed-integer-linear-programming/practicals/problem-tsp/ > > If needed I can provide my complete script which is simply the same as the example only using a few rows from my data, let me know, as I think this is just a ggplot issue. > > I am getting this error when I use ggplot > #Error in FUN(X[[i]], ...) : object 'x' not found > > 1. I have reviewed the following with no success. > #Sources referred to for help > #https://github.com/business-science/anomalize/issues/2 > #https://stackoverflow.com/questions/38988028/error-in-funxi-object-x-not-found > #https://community.rstudio.com/t/error-in-fun-x-i-object-variable-not-found/62532/3 > #https://www.neonscience.org/packages-in-r > > 2. I have rebooted and re-installed ggplot2 for updates > > 3. These are the only libraries running > library(knitr) > library(dplyr) > library(ggplot2) > library(ggmap) > library(ompr) > library(ompr.roi) > library(ROI.plugin.glpk) > > Here is the original plot attempt: > ggplot(c1members2, aes(x , y)) + > geom_point() + > geom_line(data = paths, aes(group = trip_id)) + #Error in FUN(X[[i]], ...) : object 'x' not found > ggtitle(paste0("Optimal route with cost: ", round(objective_value(result), 2))) > > #I have gone through each of the steps one by one and error occurs at --> geom_line(data = paths, aes(group = trip_id)) > > I have also tried the following: > Test1 > p <- ggplot(c1members2, aes(x,y)) + > geom_point() > > p + geom_line(data = paths, aes(group = trip_id),inherit.aes = FALSE) + #Error in FUN(X[[i]], ...) : object 'x' not found > ggtitle(paste0("Optimal route with cost: ", round(objective_value(result), 2))) > > Test2 > ggplot(c1members2, aes(x,y)) + > geom_point() + > geom_line(data = paths, aes(group = trip_id),inherit.aes = TRUE) + #Error in FUN(X[[i]], ...) : object 'x' not found > ggtitle(paste0("Optimal route with cost: ", round(objective_value(result), 2))) > > Here are the data involved. > str(c1members2) > 'data.frame': 7 obs. of 3 variables: > $ id: int 1 2 3 4 5 6 7 > $ x : num 95.5 90.2 46.8 40.9 43.3 ... > $ y : num 4.65 47.57 8.07 38.43 28.59 ... > > str(paths) > data.frame': 14 obs. of 6 variables: > $ trip_id : int 1 2 3 4 5 6 7 1 2 3 ... > $ property : chr "from" "from" "from" "from" ... > $ idx_val : int 3 1 5 7 6 4 2 1 2 3 ... > $ Longitude: num -122 -122 -122 -122 -122 ... > $ Latitude : num 47.3 47.2 47.3 47.6 47.6 ... > $ city : Factor w/ 1337 levels "ABBOTTSTOWN",..: 1169 1169 1169 1069 1069 1069 1069 1169 1069 1169 ... > > Here are the dput()'s > > I hope I have provided enough information to elicit a response. > > Thank you. > > WHP > > dput(c1members2) > structure(list(id = 1:7, x = c(95.521828085515, 90.2272877161736, > 46.8465689660691, 40.8959155605829, 43.2591531526978, 23.7485886058345, > 64.0406297698986), y = c(4.64803485876031, 47.5678629996171, > 8.0689847051367, 38.4256264258875, 28.5930051512296, 43.5934562642672, > 42.415566619041)), class = "data.frame", row.names = c(NA, -7L > > dput(paths) #Although I am only using city %in% c("SEATTLE","TACOMA")) from the original 2353 rows = 7 rows in c1members2 > structure(list(trip_id = c(1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L, > 3L, 4L, 5L, 6L, 7L), property = c("from", "from", "from", "from", > "from", "from", "from", "to", "to", "to", "to", "to", "to", "to" > ), idx_val = c(3L, 1L, 5L, 7L, 6L, 4L, 2L, 1L, 2L, 3L, 4L, 5L, > 6L, 7L), Longitude = c(-122.490417, -122.429323, -122.358115, > -122.37003, -122.41282, -122.299261, -122.390815, -122.429323, > -122.390815, -122.490417, -122.299261, -122.358115, -122.41282, > -122.37003), Latitude = c(47.274599, 47.176596, 47.276776, 47.565667, > 47.646222, 47.673056, 47.549377, 47.176596, 47.549377, 47.274599, > 47.673056, 47.276776, 47.646222, 47.565667), city = structure(c(1169L, > 1169L, 1169L, 1069L, 1069L, 1069L, 1069L, 1169L, 1069L, 1169L, > 1069L, 1169L, 1069L, 1069L), .Label = c("ABBOTTSTOWN", "ABILENE", > "ACWORTH", "ADAMS", "ADDISON", "ADKINS", "ALBANY", "ALBIA", "ALBUQUERQUE", > "ALEXANDRIA", "ALFRED", "ALIQUIPPA", "ALISO VIEJO", "ALLEN PARK", > "ALLENTOWN", "ALPHA", "ALPHARETTA", "ALPINE", "ALTOONA", "AMARILLO", > "AMBLER", "AMBRIDGE", "AMHERST", "AMITYVILLE", "ANAHIEM", "ANDERSON", > "ANDOVER", "ANGIER", "ANGLETON", "ANKENY", "ANN ARBOR", "ANZA", > "APEX", "APOLLO", "ARCADIA", "ARCHDALE", "ARDMORE", "ARGYLE", > "ARKANSAS CITY", "ARLINGTON", "ARNOLD", "ARTHUR", "ASHEBORO", > "ASHEVILLE", "ASHLAND", "ASHLAND CITY", "ASHTON", "ASTON", "ATHENS", > "ATLANTA", "ATLANTIC BCH", "AUBORN", "AUGUSTA", "AURORA", "AUSTELL", > "AUSTIN", "AVENTURA", "AVONDALE ESTATES", "BAKERSFIELD", "BALDWIN CITY", > "BALDWIN PLACE", "BALLWIN", "BANGOR", "BARBOURSVILLE", "BARNEGAT", > "BARTLETT", "BARTON", "BARTONVILLE", "BASSETT", "BATAVIA", "BATESBURG", > "BATON ROUGE", "BAXTER SPRINGS", "BAY CITY", "BAYONNE", "BAYSIDE", > "BAYTOWN", "BEAR", "BEAUMONT", "BEECH CREEK", "BEECHER CITY", > "BELFAIR", "BELLE VERNON", "BELLEAIR", "BELLEVUE", "BELLMAWR", > "BELLMORE", "BELLWOOD", "BELMAR", "BELMONT", "BELVIDERE", "BENNET", > "BENTON", "BENTONVILLE", "BERLIN", "BESSEMER CITY", "BETHANY", > "BETHEL", "BETHEL PARK", "BETHESDA", "BETHLEHEM", "BETTENDORF", > "BIGLERVILLE", "BINGHAMTON", "BIRDSBORO", "BIWABIK", "BLACK MOUNTAIN", > "BLACKSBURG", "BLAINE", "BLAIRSVILLE", "BLAKESLEE", "BLOOMFIELD", > "BLUE BELL", "BLUE GRASS", "BLUE POINT", "BLUE SPRINGS", "BOCA RATON", > "BODFISH", "BOILING SPRINGS", "BOLIVAR", "BON AQUA", "BONNER SPRINGS", > "BONNEY LAKE", "BOONEVILLE", "BOSSIER CITY", "BOUNTIFUL", "BOWLING GREEN", > "BOYERTOWN", "BOYNTON BEACH", "BRADENTON", "BRADENVILLE", "BRANDAMORE", > "BRANDON", "BRANFORD", "BRANSON", "BRASELTON", "BREEZEWOOD", > "BRENTON", "BRENTWOOD", "BREWSTER", "BRICK", "BRIDGEPORT", "BRIDGETON", > "BRIGHAM CITY", "BROADDUS", "BROCKPORT", "BROGUE", "BROKEN ARROW", > "BRONX", "BROOKFIELD", "BROOKHAVEN", "BROOKLYN", "BROWNS MILLS", > "BROWNSBURG", "BROWNSVILLE", "BRUNSWICK", "BRYAN", "BUCKSPORT", > "BUDD LAKE", "BUFFALO", "BULVERDE", "BUNKERVILLE", "BURBANK", > "BURFORD", "BURIEN", "BURLINGTON", "BURR RIDGE", "BURTON", "BUSKIRK", > "BUTLER", "BUXTON", "BYRON", "CALERA", "CAMBRIDGE", "CAMP HILL", > "CAMPBELL", "CANAAN", "CANAL WINCHESTER", "CANASTOTA", "CANTON", > "CARDIFF BY THE SEA", "CARL JUNCTION", "CARLISLE", "CARLTON", > "CAROL STREAM", "CARROLLTON", "CARSON CITY", "CARTERSVILLE", > "CARTHAGE", "CARY", "CASEYVILLE", "CASSVILLE", "CASWELL", "CATO", > "CEDAR RAPIDS", "CEDARBURG", "CEDARVILLE", "CENTER POINT", "CENTERTON", > "CENTRAL ISLIP", "CENTRAL POINT", "CHAGRIN FALLS", "CHALFONT", > "CHAPEL HILL", "CHAPIN", "CHARDON", "CHARITON", "CHARLESTON", > "CHARLOTTE", "CHEROKEE", "CHERRY HILL", "CHERRY VALLEY", "CHESHIRE", > "CHEST SPRINGS", "CHESTER", "CHESTERTON", "CHICAGO", "CHILLICOTHE", > "CHOCTAW", "CICERO", "CINCINNATI", "CLAY", "CLEARWATER", "CLEARWATER BEACH", > "CLEMMONS", "CLENDENIN", "CLEVELAND", "CLEVELAND HTS", "CLEVES", > "CLIFFSIDE PARK", "CLIFTON", "CLIFTON PARK", "CLIFTON SPGS", > "CLINTON", "COACHELLA", "COAL TOWNSHIP", "COATESVILLE", "COLLEGE STATION", > "COLLINSVILLE", "COLONIA", "COLUMBIA", "COLUMBUS", "COMMERCE", > "CONCORD", "CONCORD TOWNSHIP", "CONNELLSVILLE", "CONROE", "CONWAY", > "CONYERS", "COOKEVILLE", "COON RAPIDS", "CORAOPOLIS", "CORDOVA", > "CORNELIUS", "CORNWALL", "CORONADO", "CORPUS CHRISTI", "CORRY", > "COTTAGE HILLS", "COTTLEVILLE", "COTTONWOOD", "COVINGTON", "COWEN", > "CRANBERRY TOWNSHIP", "CROWN POINT", "CUBA", "CUMBERLAND CENTER", > "CUMBERLAND FORESIDE", "CUMMING", "CUYAHOGA FLS", "CYPRESS", > "DALLAS", "DALLASTOWN", "DANBURY", "DANIA BCH", "DANVILLE", "DAVENPORT", > "DAVIE", "DAVIS JUNCTION", "DAWSON", "DAYTON", "DE SOTO", "DECATUR", > "DEFIANCE", "DEFOREST", "DELAVAN", "DELMAR", "DELRAY BEACH", > "DEMOTTE", "DENISON", "DENVER", "DEPTFORD", "DERBY", "DERRY", > "DES MOINES", "DETROIT", "DICKINSON", "DILLSBURG", "DITTMER", > "DIXON", "DONNA", "DOTHAN", "DOUGLAS", "DOUGLASVILLE", "DOVER", > "DOYLESTOWN", "DREXEL HILL", "DUBLIN", "DUCHESNE", "DULUTH", > "DUNCAN", "DUNCANNON", "DUNCANSVILLE", "DUNEDIN", "DUNNSVILLE", > "DURHAM", "DUTTON", "EAGLE GROVE", "EAST AURORA", "EAST CHICAGO", > "EAST EARL", "EAST HANOVER", "EAST HARTFORD", "EAST HARTLAND", > "EAST LEROY", "EAST LIVERPOOL", "EAST MEADOW", "EAST NORTHPORT", > "EAST ORANGE", "EAST PEORIA", "EAST SAINT LOUIS", "EASTON", "EDGERTON", > "EDISON", "EDMOND", "EGG HBR TWP", "EL DORADO", "EL PASO", "ELDRIDGE", > "ELGIN", "ELIZABETHVILLE", "ELLISVILLE", "ELLSWORTH", "ELLWOOD CITY", > "ELMHURST", "ELMWOOD PARK", "ELOY", "ELY", "EMERSON", "EMORY", > "ENDICOTT", "ENGLEWOOD", "ENID", "ENNICE", "ENOLA", "ENUMCLAW", > "EPHRATA", "ERIE", "ESTERO", "EUREKA SPRINGS", "EVANSVILLE", > "EVERETT", "EXCELSIOR SPRINGS", "EXTON", "FAIRFAX", "FAIRFIELD", > "FAIRHAVEN", "FAIRVIEW", "FAIRVIEW PARK", "FALMOUTH", "FAR HILLS", > "FAR ROCKAWAY", "FARMINGDALE", "FARMINGTON", "FAYETTE", "FAYETTEVILLE", > "FELTON", "FENTON", "FERGUSON", "FIELDALE", "FINDLAY", "FINGERVILLE", > "FLEMINGTON", "FLINT", "FLORENCE", "FLORESVILLE", "FLORISSANT", > "FLOVILLA", "FLOWER MOUND", "FLUSHING", "FOGELSVILLE", "FOLSOM", > "FONTANELLE", "FOREST HILLS", "FOREST PARK", "FORT DODGE", "FORT FAIRFIELD", > "FORT GAY", "FORT LAUDERDALE", "FORT LEE", "FORT MILL", "FORT MOHAVE", > "FORT PAYNE", "FORT PIERCE", "FORT SMITH", "FORT WAYNE", "FORT WORTH", > "FOSTORIA", "FOUNTAIN INN", "FRANKFORT", "FRANKLIN", "FREEDOM", > "FREEHOLD", "FREEPORT", "FREMONT", "FULLERTON", "FULSHEAR", "FULTON", > "GADSDEN", "GAFFNEY", "GAINESVILLE", "GALLOWAY", "GARDEN PRAIRIE", > "GARDNERS", "GARNETT VALLEY", "GARY", "GASTON", "GASTONIA", "GENEVA", > "GETTYSBURG", "GIBSONIA", "GILBERT", "GIRARD", "GLEN BURNIE", > "GLEN CARBON", "GLEN COVE", "GLEN MILLS", "GLENSHAW", "GLENVIEW", > "GLENWOOD", "GOLDEN CITY", "GOLIAD", "GOODSON", "GOODYEAR", "GORHAM", > "GOSHEN", "GRANBURY", "GRANBY", "GRAND PRAIRIE", "GRAND RAPIDS", > "GRANDVIEW", "GRANITE CITY", "GRANITE FALLS", "GRANTS PASS", > "GRASS VALLEY", "GRAVETTE", "GRAYSVILLE", "GREEN LANE", "GREENBRIER", > "GREENLAWN", "GREENSBORO", "GREENSBURG", "GREENUP", "GREENVILLE", > "GREER", "GRIFFIN", "GRIFFITH", "GROTON", "GUADALUPE", "GUILFORD", > "HADLEY", "HAGAN", "HALF WAY", "HALLANDALE BEACH", "HAMBLETON", > "HAMBURG", "HAMDEN", "HAMILTON", "HAMMOND", "HAMMONTON", "HAMPSHIRE", > "HAPEVILLE", "HARBORCREEK", "HARLAN", "HARRISBURG", "HARRISON", > "HARRISONVILLE", "HARTWELL", "HASTINGS", "HATFIELD", "HAVERHILL", > "HAWK POINT", "HAYESVILLE", "HELEN", "HENDERSON", "HENDERSONVILLE", > "HENRICO", "HENRIETTA", "HERMITAGE", "HERNDON", "HERSHEY", "HIALEAH", > "HIAWATHA", "HIBBING", "HICKORY", "HICKORY GROVE", "HIDDENITE", > "HIGH HILL", "HIGH POINT", "HIGH RIDGE", "HIGHLAND", "HIGHLAND MILLS", > "HINCKLEY", "HIRAM", "HOBART", "HOLBROOK", "HOLDEN", "HOLDENVILLE", > "HOLLADAY", "HOLLIS", "HOLLY SPRINGS", "HOLLYWOOD", "HOLTWOOD", > "HOMER", "HOMESTEAD", "HONEYVILLE", "HOPE MILLS", "HOT SPRINGS", > "HOT SPRINGS NATIONAL PARK", "HOUSTON", "HUBBARD", "HUDSON", > "HUFFMAN", "HULL", "HUMANSVILLE", "HUNTERSVILLE", "HUNTINGDON", > "HUNTINGTON BEACH", "HUNTS POINT", "HURDLE MILLS", "HURRICANE", > "HURST", "IMPERIAL", "INDEPENDENCE", "INDIAN SHORES", "INDIAN TRAIL", > "INDIANA", "INDIANAPOLIS", "INDIANOLA", "INMAN", "IOWA CITY", > "IRMO", "IRVINGTON", "IRWIN", "ISANTI", "ISLESBORO", "ISLIP", > "ISSAQUAH", "ITHACA", "JACKSBORO", "JACKSON", "JACKSON HTS", > "JACKSONVILLE", "JAMAICA", "JAMESTOWN", "JASPER", "JEANNETTE", > "JEFFERSON", "JEFFERSON CITY", "JEWELL", "JOHNSTON", "JOHNSTOWN", > "JONESBORO", "JONESPORT", "JONESTOWN", "JOPLIN", "JUPITER", "KANKAKEE", > "KANNAPOLIS", "KANSAS CITY", "KATY", "KEARNEY", "KELLERTON", > "KEMAH", "KENMORE", "KENNESAW", "KENT", "KINGMAN", "KINGS MOUNTAIN", > "KINGSLAND", "KINGSTON", "KINGWOOD", "KIRKLAND", "KUTZTOWN", > "LA QUINTA", "LA RUE", "LA VERNE", "LAFAYETTE", "LAKE BLUFF", > "LAKE IN THE HILL", "LAKE ISABELLA", "LAKE PLACID", "LAKE SAINT LOUIS", > "LAKE TAPPS", "LAKE VILLAGE", "LAKE WAUKOMIS", "LAKE WORTH", > "LAKEBAY", "LAKELAND", "LAKEWOOD", "LAKEWOOD RCH", "LAMBERTVILLE", > "LANCASTER", "LANDISVILLE", "LANSDALE", "LAREDO", "LARGO", "LAS VEGAS", > "LATROBE", "LAUDERHILL", "LAWNDALE", "LAWRENCE", "LAWRENCEVILLE", > "LE MARS", "LE ROY", "LEAGUE CITY", "LEAVENWORTH", "LEAWOOD", > "LEBANON", "LECOMPTON", "LEECHBURG", "LEES SUMMIT", "LEESBURG", > "LEESVILLE", "LEETONIA", "LENEXA", "LENOIR", "LEVITTOWN", "LEWES", > "LEWISTOWN", "LEXINGTON", "LIBERTY TWP", "LILLINGTON", "LINCOLN", > "LINDENHURST", "LINTON", "LISBON", "LITCHFIELD PK", "LITHIA", > "LITITZ", "LITTLE EGG HARBOR TO", "LK FOREST PK", "LK PEEKSKILL", > "LOCKHART", "LOCKWOOD", "LOGAN", "LOMA LINDA", "LONE JACK", "LONG BEACH", > "LONG LANE", "LONGVIEW", "LORAIN", "LORTON", "LOS ANGELES", "LOUISBURG", > "LOVES PARK", "LOWER BURRELL", "LOWRY CITY", "LUBBOCK", "LUGOFF", > "LUMBERTON", "LYNBROOK", "LYNNWOOD", "MACHESNEY PARK", "MACON", > "MAGNOLIA", "MAHOPAC", "MAHWAH", "MAINEVILLE", "MALVERN", "MALVERNE", > "MANASSAS", "MANCHACA", "MANCHESTER", "MANCHESTER TOWNSHIP", > "MANCHESTER TW", "MANHEIM", "MANITO", "MANLIUS", "MANNINGTON", > "MANSFIELD", "MANSURA", "MAPLE PARK", "MARBLE FALLS", "MARCELLUS", > "MARICOPA", "MARIETTA", "MARION", "MARKLEYSBURG", "MARS HILL", > "MARSHALLTOWN", "MARSHFIELD", "MARSHVILLE", "MARTINSVILLE", "MARYSVILLE", > "MASON CITY", "MASSEY", "MASSILLON", "MASURY", "MATAWAN", "MATEWAN", > "MATTAPOISETT", "MATTHEWS", "MAYFIELD HTS", "MAYSEL", "MC CLELLAND", > "MC DONALD", "MC KEES ROCKS", "MC SHERRYSTOWN", "MC VEYTOWN", > "MCALESTER", "MCDONOUGH", "MCKEESPORT", "MCKINNEY", "MECHANICSBURG", > "MECHANICSVILLE", "MEDFORD", "MEDIA", "MEDWAY", "MELVILLE", "MEMPHIS", > "MERIDEN", "MERRIAM", "MERRICK", "MERRILL", "MERRILLVILLE", "MESA", > "MESQUITE", "MIAMI", "MIAMI GARDENS", "MICHIGAN CITY", "MIDDLETOWN", > "MIDLAND", "MIFFLINTOWN", "MILFORD", "MILL CREEK", "MILLBROOK", > "MILLEDGEVILLE", "MILLINOCKET", "MILNER", "MILTON", "MILWAUKEE", > "MINEOLA", "MINERAL SPGS", "MINERAL WELLS", "MINNEAPOLIS", "MISSION", > "MISSION HILLS", "MISSION VIEJO", "MISSOURI CITY", "MISSOURI VALLEY", > "MOLINE", "MONESSEN", "MONROE", "MONROE TOWNSHIP", "MONROEVILLE", > "MONTCLAIR", "MONTEREY", "MONTICELLO", "MOORESVILLE", "MORGANTON", > "MORGANTOWN", "MORRIS PLAINS", "MOUND", "MOUND CITY", "MOUNT HOPE", > "MOUNT JOY", "MOUNT LAUREL", "MOUNT PLEASANT", "MOUNT POCONO", > "MOUNT UNION", "MOUNT WOLF", "MOUNTVILLE", "MT HOLLY", "MT PLEASANT", > "MULVANE", "MUNCIE", "MUNSTER", "MURFREESBORO", "MURRAY", "MURRELLS INLT", > "MUSTANG", "MYERSTOWN", "MYSTIC", "N BRANFORD", "N FT MYERS", > "NAPERVILLE", "NAPLES", "NAPOLEON", "NASHVILLE", "NATCHITOCHES", > "NAUGATUCK", "NEOSHO", "NEPTUNE BEACH", "NESCONSET", "NETCONG", > "NEW BLOOMFIELD", "NEW BRAUNFELS", "NEW BRITAIN", "NEW BRUNSWICK", > "NEW CASTLE", "NEW CUMBERLAND", "NEW HAVEN", "NEW KENSINGTON", > "NEW LONDON", "NEW ORLEANS", "NEW PRESTON", "NEW PROVIDENCE", > "NEW ROCHELLE", "NEW TRIPOLI", "NEW ULM", "NEW WINDSOR", "NEW YORK", > "NEWARK", "NEWBURGH HEIGHTS", "NEWINGTON", "NEWNAN", "NEWPORT", > "NEWPORT BEACH", "NEWTON", "NEWTONVILLE", "NIAGARA FALLS", "NIXA", > "NOANK", "NOKOMIS", "NORCROSS", "NORFOLK", "NORMAN", "NORMANDY PARK", > "NORTH BABYLON", "NORTH HAVEN", "NORTH HUNTINGDON", "NORTH JACKSON", > "NORTH LITTLE ROCK", "NORTH MIAMI", "NORTH PORT", "NORTH RICHLAND HILLS", > "NORTH WALES", "NORTH WATERBORO", "NORTHFIELD", "NORTHRIDGE", > "NORTON", "NORWALK", "NOTTINGHAM", "NUTLEY", "NYACK", "O FALLON", > "OAK RIDGE", "OAKDALE", "OCALA", "OCEANSIDE", "OCILLA", "OLATHE", > "OMAHA", "OMRO", "ONA", "ONALASKA", "OPA LOCKA", "ORADLL", "ORION", > "ORONO", "ORRINGTON", "OSCEOLA", "OSKALOOSA", "OSSINING", "OSWEGO", > "OTTAWA", "OVALO", "OVERLAND PARK", "OWASSO", "OWEGO", "OXFORD", > "OYSTER BAY", "OZARK", "PALERMO", "PALM CITY", "PALM HARBOR", > "PALMDALE", "PALMYRA", "PALOS HEIGHTS", "PANA", "PAOLA", "PARK RIDGE", > "PARLIN", "PARMA", "PARRISH", "PARROTT", "PATASKALA", "PAULS VALLEY", > "PAXTON", "PEA RIDGE", "PEARLAND", "PECULIAR", "PEEKSKILL", "PEKIN", > "PELION", "PEMBROKE", "PEMBROKE PINES", "PENN YAN", "PENNELLVILLE", > "PENNSBURG", "PENNSVILLE", "PEORIA", "PERRY", "PERRYOPOLIS", > "PERRYSBURG", "PERRYVILLE", "PHARR", "PHILADELPHIA", "PHILIPPI", > "PHOENIX", "PICKENS", "PICKERINGTON", "PIERSON", "PILOT MOUNTAIN", > "PINE BLUFF", "PINE HILL", "PINEVILLE", "PINNELLAS PARK", "PISCATAWAY", > "PITMAN", "PITTSBURGH", "PLACIDA", "PLAINFIELD", "PLANO", "PLANT CITY", > "PLATTEKILL", "PLEASANT HILL", "PLEASANT HOPE", "PLYMOUTH", "POCONO LAKE", > "POMFRET CENTER", "POMPANO BEACH", "POOLER", "PORT CARBON", "PORT CHARLOTTE", > "PORT NORRIS", "PORT ORANGE", "PORT SAINT LUCIE", "PORT WASHINGTON", > "PORTAGE", "PORTER", "PORTERSVILLE", "PORTLAND", "POTTSVILLE", > "POUGHKEEPSIE", "POWDER SPRINGS", "POWELL", "PRAIRIE VILLAGE", > "PRESCOTT", "PRESCOTT VALLEY", "PRINCETON", "PROSPECT", "PT PLEASANT", > "PUNTA GORDA", "PURCHASE", "QUAKERTOWN", "QUEENS VLG", "QUINCY", > "RALEIGH", "RANDLEMAN", "RANDOLPH", "RAYTOWN", "READING", "READLYN", > "RED BANK", "RED HOUSE", "RED LION", "REEDERS", "REGO PARK", > "REHOBOTH BCH", "REIDSVILLE", "RENO", "RENTON", "REPUBLIC", "RICH HILL", > "RICHARDS", "RICHMOND", "RICHMOND HILL", "RIDGEWOOD", "RINCON", > "RIO GRANDE CITY", "RIO RANCHO", "RIVERDALE", "RIVERHEAD", "RIVERSIDE", > "ROANOKE", "ROCHELLE", "ROCHESTER", "ROCK HILL", "ROCKAWAY BCH", > "ROCKFORD", "ROCKMART", "ROCKY HILL", "ROCKY MOUNT", "ROGERS", > "ROGERSVILLE", "ROMULUS", "ROOSEVELT", "ROSAMOND", "ROSCOE", > "ROSENBERG", "ROSENDALE", "ROSWELL", "ROTONDA WEST", "ROUGEMONT", > "ROXBORO", "ROY", "RUNNELLS", "RURAL HALL", "RUSH VALLEY", "RUSKIN", > "RUSTBURG", "RUTHER GLEN", "RUTHERFORDTON", "S DEERFIELD", "SACO", > "SAGINAW", "SAINT AUGUSTINE", "SAINT CHARLES", "SAINT CLAIR", > "SAINT CLAIRSVILLE", "SAINT LOUIS", "SAINT MARYS", "SAINT MATTHEWS", > "SAINT PAULS", "SAINT PETERS", "SAINT PETERSBURG", "SALEM", "SALISBURY", > "SALT LAKE CITY", "SALTSBURG", "SALUNGA", "SAMMAMISH", "SAN ANTONIO", > "SAN BENITO", "SAN CLEMENTE", "SAN DIEGO", "SAN ELIZARIO", "SAN JUAN", > "SANDUSKY", "SANDY", "SANFORD", "SANGERVILLE", "SANTA ANA", "SARASOTA", > "SARATOGA SPRINGS", "SARCOXIE", "SAUGUS", "SAVANNAH", "SAYVILLE", > "SCALY MOUNTAIN", "SCHAEFFERSTOWN", "SCHULENBURG", "SCOTT", "SCOTTSDALE", > "SEAFORD", "SEALE", "SEATTLE", "SEDONA", "SEGUIN", "SELDEN", > "SENECA", "SENOIA", "SEVEN VALLEYS", "SEYMOUR", "SHARON", "SHARPSBURG", > "SHARPSVILLE", "SHAVANO PARK", "SHAWNEE", "SHELLSBURG", "SHELTON", > "SHENANDOAH", "SHORELINE", "SHOREWOOD", "SHREVEPORT", "SICKLERVILLE", > "SILER CITY", "SILOAM SPRINGS", "SIMON", "SIMPSONVILLE", "SIMSBURY", > "SIOUX CITY", "SIOUX FALLS", "SKOKIE", "SKOWHEGAN", "SLATINGTON", > "SLIDELL", "SMITHFIELD", "SN BERNRDNO", "SNELLVILLE", "SOCORRO", > "SOMERS", "SOPHIA", "SOUTH AMBOY", "SOUTH BELOIT", "SOUTH BEND", > "SOUTH DARTMOUTH", "SOUTH HOUSTON", "SOUTH PARK", "SOUTH PLAINFIELD", > "SOUTH SIOUX CITY", "SOUTHAMPTON", "SOUTHBURY", "SOUTHGATE", > "SPARKS", "SPARROW BUSH", "SPENCER", "SPRING", "SPRING BRANCH", > "SPRING GROVE", "SPRING HILL", "SPRING HOPE", "SPRING VALLEY", > "SPRINGDALE", "SPRINGFIELD", "SPRINGFIELD GARDENS", "SPRINGHILL", > "SPRINGTOWN", "SPRNGFLD GDNS", "SPRUCE PINE", "ST PETERSBURG", > "ST. GEORGE", "STAFFORD", "STAMFORD", "STANDISH", "STANLEY", > "STANTON", "STATEN ISLAND", "STATESVILLE", "STERLING", "STILLMAN VALLEY", > "STILWELL", "STOCKBRIDGE", "STOCKTON", "STONE MTN", "STRAFFORD", > "STRATFORD", "STRONGSVILLE", "STROUDSBURG", "STRUTHERS", "SUFFIELD", > "SUGAR HILL", "SUGAR LAND", "SULPHUR", "SUMMERVILLE", "SUMMIT", > "SUN CITY", "SUNBURY", "SUWANEE", "SWANSEA", "SWANTON", "SWEENY", > "SWISSVALE", "SYCAMORE", "SYLVANIA", "SYRACUSE", "TACOMA", "TAFTVILLE", > "TAMPA", "TAPPAHANNOCK", "TAR HEEL", "TAUNTON", "TAYLORVILLE", > "TECUMSEH", "THE WOODLANDS", "THEODOSIA", "THOMASTON", "THOMASVILLE", > "TIERRA VERDE", "TIFTON", "TILLSON", "TILTON", "TINLEY PARK", > "TOCCOA", "TOLEDO", "TOLLAND", "TOMBALL", "TOMS RIVER", "TOPEKA", > "TOPSHAM", "TORRINGTON", "TOVEY", "TOWNSEND", "TRAVELERS RST", > "TRENT", "TRINITY", "TROUTMAN", "TROY", "TRUMBULL", "TUCKER", > "TULALIP", "TURNER", "TUSCUMBIA", "TYRONE", "UNION", "UNION CITY", > "UNIVERSAL CTY", "UNIVERSITY HTS", "UPPR CHICHSTR", "URBANA", > "URBANDALE", "UTICA", "VAIL", "VALE", "VALENCIA", "VALPARAISO", > "VAN BUREN", "VAN METER", "VAN WERT", "VANDERGRIFT", "VASSALBORO", > "VAUGHN", "VENICE", "VERNAL", "VERNON", "VERONA", "VICTOR", "VIDALIA", > "VIENNA", "VILLA GROVE", "VILLA RIDGE", "VOLANT", "W HAMPTON BCH", > "W TERRE HAUTE", "WADSWORTH", "WAHOO", "WAKE FOREST", "WALDEN", > "WALLINGFORD", "WALLINGTON", "WALNUT COVE", "WANAQUE", "WARFORDSBURG", > "WARMINSTER", "WARREN", "WARSAW", "WARTHEN", "WASHINGTON", "WASOLA", > "WATAUGA", "WATERBURY", "WATERFORD", "WATERLOO", "WATERVILLE", > "WATKINS GLEN", "WAXAHACHIE", "WAYCROSS", "WAYNESBORO", "WEBSTER", > "WEIRTON", "WELLSBORO", "WELLSVILLE", "WENTZVILLE", "WESLACO", > "WEST CHESTER", "WEST DEPTFORD", "WEST DES MOINES", "WEST HAVEN", > "WEST HICKORY", "WEST LIBERTY", "WEST MIFFLIN", "WEST PALM BEACH", > "WEST POINT", "WEST READING", "WEST SENECA", "WEST SUFFIELD", > "WEST VALLEY CITY", "WESTERVILLE", "WESTHAMPTON", "WESTMINSTER", > "WESTMORELAND CITY", "WESTPORT", "WESTVILLE", "WETHERSFIELD", > "WHARTON", "WHEELING", "WHITE PLAINS", "WHITEHALL", "WHITESTONE", > "WHITESTOWN", "WHITING", "WHITMAN", "WHITTIER", "WICHITA", "WILDWOOD", > "WILLARD", "WILLIAMSBURG", "WILLIAMSPORT", "WILLOW GROVE", "WILLOWBROOK", > "WILLOWICK", "WILMETTE", "WILMINGTON", "WILSON", "WILTON MANORS", > "WIMBERLEY", "WINDCREST", "WINDER", "WINNEBAGO", "WINSIDE", "WINSTON", > "WINSTON SALEM", "WINTERSET", "WINTHROP", "WOLCOTT", "WOODBRIDGE", > "WOODBURY HEIGHTS", "WOODLAND PARK", "WOODLAWN", "WOODS CROSS", > "WOODSIDE", "WOODSTOCK", "WORTHINGTON", "WYOMISSING", "YARMOUTH", > "YOE", "YONKERS", "YORK", "YORKTOWN", "YORKTOWN HEIGHTS", "YOUNG HARRIS", > "YOUNGSTOWN", "YPSILANTI", "ZELIENOPLE", "ZEPHYRHILLS"), class = "factor")), row.names = c(NA, > -14L), class = "data.frame") > > > > > > > Proprietary > > NOTICE TO RECIPIENT OF INFORMATION:\ This e-mail may con...{{dropped:16}} > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >