similar to: Problem with a if statement inside a function

Displaying 15 results from an estimated 15 matches similar to: "Problem with a if statement inside a function"

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
1
Using a function inside a function
I'm trying to run a function inside a function but get an error message. 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", "rates"), suffix3 =
2011 Jun 06
1
Merge two columns of a data frame
I have the following data: prefix <- c("cheap", "budget") roots <- c("car insurance", "auto insurance") suffix <- c("quote", "quotes") prefix2 <- c("cheap", "budget") roots2 <- c("car insurance", "auto insurance") roots3 <- c("car insurance", "auto
2011 Jun 14
1
Invalid Regular Expression
I'm working with some data, and am trying to generate it in the following format. state city zipcode I like pizza 0 0 0 I live in Denver 0 1 0 All the fun stuff is in Alaska 1 0 0 he lives in 66062
2011 Jun 07
1
Adding values to the end of a data frame
Let's say that I'm trying to write a functions that will allow me to automate a process where I examine all possible combinations of various string groupings. Each time I run the one function, I want to include the new values to the end of a data frame. The data frame will basically be one column with a lot of rows. roots <- c("car insurance", "auto insurance")
2005 Mar 31
1
IDMAP LDAP problems
Hi, I running samba-3.0.13-1 on RH9 (openldap-2.0.27-8,krb5-1.2.7-10,nss_ldap-202-5) and configured as show below, my intention is only to make IDMAP storage in LDAP using winbind. I've looked on SAMBA3 by example book and relatives official guide on the site. First I have try to run samba and winbind retriving users and groups from ADS and storing them in winbindd_idmap.tdb and
2005 Mar 30
0
IDMAP storage in LDAP using winbind
Hi, I running samba-3.0.13-1 on RH9 (openldap-2.0.27-8,krb5-1.2.7-10,nss_ldap-202-5) and configured as show below, my intention is only to make IDMAP storage in LDAP using winbind. I've looked on SAMBA3 by example book and relatives official guide on the site. First I have try to run samba and winbind retriving users and groups from ADS and storing them in winbindd_idmap.tdb and
2011 Oct 13
2
Comparing the components of a data frame without levels interfering
*Bottom Line: How can I compare the individual components of two data frames with different row lengths without the levels interfering?* Example: I have two data frames to those respectively named 'dfCity' and 'dfState' that have the following output: dfCity Name City 1 Bill Detroit 2 Jody Chicago 3 Frank Memphis 4 Ron Houston
2011 Mar 22
2
Mail Sync
I am trying to sync my mail on two different servers as testing for converting our business over to a server using dovecot. I am currently running dovecot version 2.0.11 While trying to sync the messages using Thunderbird and a program named imapsync, I run into an error stating that the dovecot server does not know how to handle messages with the FORWARD flag set. Is the FORWARD flag
2012 Apr 02
1
imapsync, namespaces and Dovecot 2.x
Hi people, I recently tried to migrate from Exchange using imapsync. It didn't work because it complained that dovecot had no namespace capablity. After looking through Dovecot's config files I found that namespaces could be defined, but if you did not a 'private' default one was created. In the 2.x wiki documentation (http://wiki2.dovecot.org/Migration) it says nothing about
2016 Dec 15
2
TableGen - Help to implement a form of gather/scatter operations for Mips MSA
Hello. I fixed the bug reported in the previous post on this thread (<<llvm::MemSDNode::MemSDNode(unsigned int, unsigned int, const llvm::DebugLoc&, llvm::SDVTList, llvm::EVT, llvm::MachineMemOperand*): Assertion `memvt.getStoreSize() <= MMO->getSize() && "Size mismatch!"' failed.>>) The problem with this strange error reported comes from
2012 Mar 19
0
acs package: analyze data from the U.S. American Community Survey
We are pleased to announce version 0.8 of the acs package for R, now available on CRAN (<http://cran.r-project.org/web/packages/acs/index.html>. The package provides a general toolkit for managing, analyzing, and presenting data from the U.S. Census American Community Survey (ACS). Confidence intervals provided with the data are converted to standard errors and bundled with estimates in
2012 Mar 19
0
acs package: analyze data from the U.S. American Community Survey
We are pleased to announce version 0.8 of the acs package for R, now available on CRAN (<http://cran.r-project.org/web/packages/acs/index.html>. The package provides a general toolkit for managing, analyzing, and presenting data from the U.S. Census American Community Survey (ACS). Confidence intervals provided with the data are converted to standard errors and bundled with estimates in
2017 Jul 11
0
[R-pkgs] acs version 2.1.0 update: download and analyze data from the US Census in R
We are pleased to announce the release of version 2.1.0 of the "acs" package, now available on CRAN <http://cran.r-project.org/web/packages/acs/index.html>. The package allows users to download, manipulate, analyze, and present demographic data from the U.S. Census, with special tools and methods to simplify the tasks of working with estimates and standard errors contained in data