similar to: Attempting to recode elements contained in a list

Displaying 20 results from an estimated 900 matches similar to: "Attempting to recode elements contained in a list"

2013 Feb 26
1
Getting the correct factor level as Dunnett control in glht()
Hello all, I would like to do a Dunnett test in glht(). However, the factor level I want to use as the control is not the first. dunn1<-glht(model3, linfct = mcp(Container = "Dunnett"), alternative = "less") The factor container has 8 levels, so it would be nice not to manually enter in all of the contrasts. I originally discovered glht() when working with a glm model
2009 Mar 17
4
Plastic Water Bottles
The plastics industry says polycarbonate bottles are safe. http://www.bisphenol-a.org/about/faq.html#g I'm sure Maggie and here friends would say ALL plastic bottles are very dangerous. This lady seems to be at a reasonable middle ground. http://trusted.md/blog/vreni_gurd/2007/03/29/plastic_water_bottles Polycarbonate plastics the kind of bottle you bought contains BPA. "In 2006 Europe
2003 Jan 06
2
R and file size
I will be involved with an analysis based on a file that will be roughly 25 meg. Assuming I have enough memory, is their any limitations to using R on a file this large. Thank you, Gregory L. Blevins Vice President, Partner The Market Solutions Group, Inc. gblevins at marketsolutionsgroup.com Office phone: 612 392-3163 Cell phone: 612 251-0232
2008 May 03
1
recode involving a count rule
Hello, R-helpers. I have a data frame below called df. I want to add a variable c, based on the following logic: if df$a < 5 then the first two times this condition is met place a 1 in c, the next two times this condition is met place a 2 in c and when the condition is not met let c equal df$b. The result would look like, dfnew, shown below. a <- rep(c(3,5,7), 4) b <- rep(c(NA,1,2),
2002 Jul 26
4
chi square test is not appropriate? but what test is
Hallo all Suppose I have a summary amount of various colours used in different areas colour plastic paint black 15.5 173.8 brown 6.0 523.2 green 2.5 6.4 red 77.1 237.4 yellow 144.6 77.3 It seems that there are some preferable colours in these two areas (yellow in plastic, brown an red in paint). The problem seems to me similar to chi square test but it is intended for testing counts or
2007 Jun 25
5
Best wifi IP phone for asterisk
We're looking at a large wifi phone deployment, and we're looking for wifi phones that: 1. Are SIP compliant (Asterisk friendly) 2. Provision capable (ideally TFTP of own MAC address) 3. Industrial quality (no cheap plastic stuff). 4. Well documented (and none of the "only telco's get documentation" crap) Does anyone have a suggestion? Thanks, MD -------------- next
2004 Jun 06
4
Request help writing a function
I have been wrestling with this function for quite a while, and am not making headway. 1) I want to apply a function to the following columns of a dataframe: myfunction. <- apply(ph5028[,c(83:107)],2,function(x) ... 2) Within each of the above columns there is a single numeric code, 1, 2 or 3 or an NA. 3) My goal is to determine the percent of time each person used a 2 code. So if a person
2008 Feb 02
2
ATA with pulse dialing support over FXS
Hi. Does anyone know about a simple one-fxs ATA with pulse dialing support that can work with Asterisk? A SIP one would be ok. I've been told that the Digium S101i IAXy does support pulse dialing; although it's a iax2-only ata it could be enough. I need a bunch of them to convert some old fashioned rotary phones into VoIP ones (I'd like to disassemble the ATAs to remove the boards
2004 Mar 04
4
A file manipulation question
Hello R experts, The following problem outstrips my current programming knowledge. I have a dataframe with two fields that looks like the following: ID Contract 01 1 01 1 02 2 02 3 02 1 03 2 03 2 03 2 03 1 03 1 03 1 etc... I would like to end up with a dataframe with one row per ID where the value in the contract field would be the
2004 Oct 06
8
Dataframe manipulation question
Hello, I have a data frame that has three fields. Resp# ActCode ProdUsed 100 3 2 100 3 2 100 4 3 100 4 3 101 3 6 102 2 1 102 3 1 103 5 1 103 5 1 103
2004 Dec 21
2
How to display each symbol in a different color using plot with summary.formula.reverse
Dear R Masters, I have searched high and low (the help archives and my various R reference material and help files) for a solution to what appears to me to be quite a simple problem. In the following syntax, variable n10 has three levels. I would like the symbols that appear in the graph for these three levels to be different colors. The best I have been able to do is to have the Key display
2004 Apr 03
3
Seeking help for outomating regression (over columns) and storing selected output
Hello, I have spent considerable time trying to figure out that which I am about to describe. This included searching Help, consulting my various R books, and trail and (always) error. I have been assuming I would need to use a loop (looping over columns) but perhaps and apply function would do the trick. I have unsuccessfully tried both. A scaled down version of my situation is as follows:
2003 Oct 07
3
Problem getting an ifelse statment to work
This is a "long" way; i.e., not necessarily efficient: > qs2 [1] 2 1 1 4 4 4 1 1 1 4 2 4 3 1 4 3 3 2 4 3 > qs9 [1] 4 4 1 3 4 3 1 3 1 4 1 2 3 3 4 4 1 4 2 3 > decision <- function(a, b) { + if (a == 1 || b == 1) return(1) + if (a == 2 || b == 2) return(2) + if (a == 3 || b == 3) return(3) + if (a == 4 || b == 4) return(4) + NA + } > mapply(decision,
2005 Mar 21
1
Replacement 7960 Handset
After 4 hours of debugging codecs, changing config files, etc. as a result of not being able to capture voice from a Cisco 7960, I eventually found that the mic in the handset appears to be dead. Does anyone know where I can get a new handset (just the part you hold to your head, everything else on the phone works fine)? Or, does anyone know how to open one up? I tried doing a little prying
2005 Mar 25
1
grandstream firmware update 1.0.5.23
Version 1.0.5.23 is now available from http://gs-firmware.gratissip.dk/ Or directly from Grandstream at http://www.grandstream.com/BETATEST/Release-b21p1.0.5.23.zip Release notes doc here http://www.grandstream.com/BETATEST/Release_Note_1.0.5.23.doc while on the matter I just want to extend a note of thanks to Grandstream, I had 2 early handsets of theirs fail recently (about 9 months old)
2017 Mar 21
1
Centos7 USB wifi recommendation
On 03/21/2017 11:50 AM, John R Pierce wrote: > On 3/21/2017 5:02 AM, ken wrote: >>> >> Those have worked for me as well. Their range, however, is a third >> or half as much as a normal wifi device. >> > > in general, the back of a server, buried under all the cables, and > right up against the metal box is a lousy place for an RF antenna... > My
2003 Jun 17
2
(no subject)
Hello, I'm trying to write code for a repeated measures ANOVA. To put things in perspective, I'll describe my experiment (briefly). I have a 2X2 factorial design with pH (5.5, 6.5) and local community (present, absent) as my treatments. I had plastic enclosures that I sampled across five weeks with the density of 7 species acting as my response variables. I'm analyzing one
2024 Mar 21
1
CyberPower PR3000LCDRTXL2U and NUT 2.8.0 - mute?
On 3/21/24 14:00, Greg Oliver via Nut-upsuser wrote: > All I can say is definitely replace the batteries if you are going to > keep using it.? The CyberPower(s) I have had in the past all have the > battery check that cannot be turned off and when the batteries are > actually "dead" the unit will kill the load to everything every time it > runs the check.? Just FYI.
2007 Aug 27
2
FLAC: headphones
hi flac list! I'm not sure if this question can be asked here, but here you go (it's a question for audiophiles only): I encode CDDA tracks to FLAC and play them on my Pocket PC (PDA). I'm looking for a high quality headphone to connect to my Pocket PC, but it must be an in-ear one but not like these: http://s7d1.scene7.com/is/image/vanns/770045336?$medium_item$ So no plastic things
2010 Oct 18
2
Getting tripped up on NAs in trying to create new variable
Hello R help: I have the following data: a <- c(NA, 2, 2, 3, 2, NA) b <- c(NA, NA, 3, NA, 1, 3) df <- data.frame(a, b) > df a b 1 NA NA 2 2 NA 3 2 3 4 3 NA 5 2 1 6 NA 3 I want to create variable c such that if there is a 3 in either variable a or variable b, variable c is 1(rows 3, 4 & 6 below). If 3 not in a or b and a value appears in a or b, then c is 0(row 2