search for: cityst

Displaying 7 results from an estimated 7 matches for "cityst".

2011 Jun 09
1
Trying to make code more efficient
...budget"), prefix2 = c("low cost"), suffix = c("quote", "quotes"), suffix2 = c("rate", "rates"), suffix3 = c("comparison"), state = c(state), inscompany = c(inscompany), city=c(city), cityst = c(cityst), agency=c(agency)) myone <- function(x, y) { m1 <- do.call(paste, expand.grid(lst[[x]], lst[[y]])) mydf <- data.frame(keyword=c(m1)) } mytwo <- function(x, y, z){ m2 <- do.call(paste, expand.grid(lst[[x]], lst[[y]], lst[[z]]))...
2011 Jun 09
1
Error: missing values where TRUE/FALSE needed
...x2, roots) d15 = myone(prefix, roots2) d16 = myone(prefix2, roots2) d17 = myone(roots, suffix) d18 = myone(roots, suffix2) d19 = myone(roots, suffix3) d20 = myone(roots2, suffix) d21 = myone(roots2, suffix2) d22 = myone(roots2, suffix3) d23 = myone(state, roots) d24 = myone(city, roots) d25 = myone(cityst, roots) d26 = myone(inscompany, roots) d27 = myone(state, roots2) d28 = myone(city, roots2) d29 = myone(cityst, roots2) d30 = myone(inscompany, roots2) d31 = mytwo(state, roots, suffix) d32 = mytwo(city, roots, suffix) d33 = mytwo(cityst, roots, suffix) d34 = mytwo(inscompany, roots, suffix) d35 =...
2011 Jun 09
2
Problem with a if statement inside a function
...psie", "Spokane", "Cape Coral", "Fort Wayne", "Santa Rosa", "Ann Arbor", "South Bend", "Daytona Beach", "Peoria", "Atlantic City", "Antioch", "Thousand Oaks") cityst = c("New York City, NY", "Los Angeles, CA", "Chicago, IL", "Houston, TX", "Philadelphia, PA", "Phoenix, AR", "San Diego, CA", "San Antonio, TX", "Dallas, TX", "Detroit, MI", "San Jose,...
2011 Oct 13
2
Comparing the components of a data frame without levels interfering
...Tennessee I have an if statement that is trying to compare the individual's names and combine the data from the two different data frames to produce some output: for(j in 1:length(row.names(dfState))){ for(k in 1:length(row.names(dfCity))){ if(dfCity[k,1] == dfState[j,1]){ cityState <- paste(dfCity[k,2], ", ", dfState[j,2], sep= "") print(dfCity[1, j], " is from ", cityState) } } } However, when I run it I get the error /Error in Ops.factor(dfState[2, 1], dfCity[4, 1]) : level sets of factors are different/ due to the levels...
2012 Mar 19
0
acs package: analyze data from the U.S. American Community Survey
...the purpose of comparing between one survey and another. * A new prompt method to serve as a helper function when changing geographic rownames or variable column names. For more info, examples, and demo plots, see the package documentation and/or <http://eglenn.scripts.mit.edu/citystate/2012/03/acs-package-updated-version-0-8-now-on-cran/>. -- Ezra Haber Glenn, AICP Lecturer in Community Development Department of Urban Studies and Planning Massachusetts Institute of Technology 77 Massachusetts Ave., Room 7-337 Cambridge, MA 02139 eglenn at mit.edu http://dusp.mit.edu/facul...
2012 Mar 19
0
acs package: analyze data from the U.S. American Community Survey
...the purpose of comparing between one survey and another. * A new prompt method to serve as a helper function when changing geographic rownames or variable column names. For more info, examples, and demo plots, see the package documentation and/or <http://eglenn.scripts.mit.edu/citystate/2012/03/acs-package-updated-version-0-8-now-on-cran/>. -- Ezra Haber Glenn, AICP Lecturer in Community Development Department of Urban Studies and Planning Massachusetts Institute of Technology 77 Massachusetts Ave., Room 7-337 Cambridge, MA 02139 eglenn at mit.edu http://dusp.mit.edu/facul...
2017 Jul 11
0
[R-pkgs] acs version 2.1.0 update: download and analyze data from the US Census in R
...nges include (a) removing plyr from a "dependency" and simply importing the required "rbind.fill" function, and (b) updating cbind/rbind options to be consistent with S3 methods. For more information on the package and the update, please visit: <http://eglenn.scripts.mit.edu/citystate/2016/03/acs-version-2-0-now-on-cran>, and the "Working with acs.R" user guide at <http://dusp.mit.edu/sites/dusp.mit.edu/files/attachments/publications/working_with_acs_R_v_2.0.pdf>. -- Ezra Haber Glenn, AICP Department of Urban Studies and Planning Massachusetts Institute of...