Displaying 7 results from an estimated 7 matches for "citystate".
2011 Jun 09
1
Trying to make code more efficient
I have a repetative task in R and i'm trying to find a more efficient way to
perform
the following task.
lst <- list(roots = c("car insurance", "auto insurance"),
roots2 = c("insurance"), prefix = c("cheap", "budget"),
prefix2 = c("low cost"), suffix = c("quote", "quotes"),
2011 Jun 09
1
Error: missing values where TRUE/FALSE needed
I'm writing a function and keep getting the following error message.
myfunc <- function(lst) {
lst <- list(roots = c("car insurance", "auto insurance"),
roots2 = c("insurance"), prefix = c("cheap", "budget"),
prefix2 = c("low cost"), suffix = c("quote", "quotes"),
suffix2 = c("rate",
2011 Jun 09
2
Problem with a if statement inside a function
I have a really long functions, and at the end of the function, I am using a
if statement
to tag certain keywords based on whether they have certain values contained
in them.
However, the if statement doesn't seem to work.
When I had split up the commands into various functions, it worked fine, but
I'm not sure
what going on now that it's combined into a single function.
myfunc
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 in...
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/faculty/...
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/faculty/...
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 Te...