similar to: Inserting Missing Data

Displaying 20 results from an estimated 700 matches similar to: "Inserting Missing Data"

2011 Jan 18
2
substituting level for NA in factor column
Greetings I have a bunch of NAs in a column of categorical variables designating the size classes (e.g., smallest to largest: 1,2,3,4) of cave crickets. I'd like to substitute "U" (for unknown) for the NAs. Can anyone give me an idea how to do this? Thanks in advance. Cheers Kurt *************************************************************** Kurt Lewis Helf, Ph.D. Ecologist
2010 Oct 22
2
Confusing error statement
Greetings Using the following command I've been trying to subset a dataframe of counts of an organism to compute the sizes of groups for use as a predictor: Hs.patches <- as.data.frame(with(Hs.long, table(Cave,Year,Month,Region,Plot,))) I am getting the following error message that I do not understand: ERROR: argument is missing, with no default Can anyone shed light on this
2011 Jan 05
2
OT: Reducing pdf file size
Greetings Does anyone have any suggestions for reducing pdf file size, particularly pdfs containing photos, without sacrificing quality? Thanks for any tips in advance. Cheers Kurt *************************************************************** Kurt Lewis Helf, Ph.D. Ecologist EEO Counselor National Park Service Cumberland Piedmont Network P.O. Box 8 Mammoth Cave, KY 42259 Ph: 270-758-2163
2011 Jan 28
4
Months in alphabetical order rather than chronological order in graph
Greetings Though I have months in chronological order in my data table, the data were sampled every other month (i.e., February, April, June, August, October, December), every time I try to plot them (on the x-axis) they are plotted in alphabetical order. What am I missing? Cheers Kurt *************************************************************** Kurt Lewis Helf, Ph.D. Ecologist EEO
2010 Oct 18
3
remove numbers from string of characters
Greetings I want to remove numbers from a string of characters that identify sites so that I can merge two data frames. For example, a site in one frame is called "001a Frozen Niagara Entrance" whereas the same site in the other data frame is called "Frozen Niagara Entrance". It seems to me the easiest thing to do would be to remove the numbers from the first data
2010 Sep 21
3
R-help Digest, Vol 91, Issue 21
All Is there a script in R equivalent to the "if then" transforms one can perform in Systat? For example, I want to create a "Treatment" column coded either 1 or 2 for twelve field sites in a large data set. Ideally, I'd be able to tell R to code sites a-f as 1 and sites g-l as 2. Cheers Kurt *************************************************************** Kurt Lewis
2010 Jun 12
1
generating ordered, random decimal fractions
Greetings How do I do this in R? Checking the Cran site produces a bewildering array of packages that I can't seem to find to load. Surely the main program has this function? Cheers Kurt *************************************************************** Kurt Lewis Helf, Ph.D. Invertebrate Ecologist National Park Service Cumberland Piedmont Network P.O. Box 8 Mammoth Cave, KY 42259 Ph:
2012 Feb 13
0
Singling out observations
Greetings I am attempting to plot observations of a cave aquatic invertebrate dating from 1901-2004. I can come up with a nice lattice plot of the eight sites from which I have data easily enough. However, I'd like to be able to highlight the 0 observations on the plots, i.e., attempts to find it at the site were unsuccessful. I'd like to be able to highlight these observations
2010 Oct 13
1
strip month and year from MM/DD/YYYY format
Greetings I'm having difficulty witht the strptime function. I can't seem to figure a way to strip month (name) and year and create separate columns from a column with MM/DD/YYYY formatted dates. Can anyone help? Cheers Kurt *************************************************************** Kurt Lewis Helf, Ph.D. Ecologist EEO Counselor National Park Service Cumberland Piedmont Network
2002 Mar 21
1
Underdispersion with anova testing methods
Using anova of a glm with test = "Chisq", I get this: Analysis of Deviance Table Model: poisson, link: log Response: Days Terms added sequentially (first to last) Df Deviance Resid. Df Resid. Dev P(>|Chi|) NULL 373 370.56 Block 3 71.05 370 299.51 2.543e-15 Variety 1 94.04 369
2004 May 10
3
sqlSave with underscores in table fieldname
Hi group, I try to write a frame to a table (RODBC). I use colnames(temp6) <- c("ind_id","ser_id","period_id","year","calc","mean") sqlSave(channel, temp6, tablename = "series_indices_test",append= TRUE, rownames=FALSE, verbose = FALSE, test = FALSE, nastring = -999999, fast = FALSE) This is giving me an error: Error in
2010 May 02
2
Calculation error
Dear Rxperts, Running the following code: ======================================================= twlo=10; twhi=20; wt=154; vd=0.5; cl=0.046; tau=6; t=3; F=1; wtkg <- wt/2.2 # convert lbs to kg vd.pt <- wtkg * vd # compute weight-based vd (L) cl.pt <- wtkg * cl # compute CL (L/hr) k <- cl.pt/vd.pt # compute k (hr^-1) cave <-
2010 Jan 07
1
LD50 and SE in GLMM (lmer)
Hi All! I am desperately needing some help figuring out how to calculate LD50 with a GLMM (probit link) or, more importantly, the standard error of the LD50. I conducted a cold temperature experiment and am trying to assess after how long 50% of the insects had died (I had 3 different instars (non significant fixed effect) and several different blocks (I did 4 replicates at a time)=
2011 Sep 25
2
help about R basic
This is my first time to ask for help in the R mailing list, so sorry for my misbehavior. The question is actually an example of the apply function embedded in R. Code is here: > x <- cbind(x1 = 3, x2 = c(4:1, 2:5)) > dimnames(x)[[1]] <- letters[1:8] > x x1 x2 a 3 4 b 3 3 c 3 2 d 3 1 e 3 2 f 3 3 g 3 4 h 3 5 > cave <- function(x, c1, c2) c(mean(x[c1]),
2010 Apr 26
1
Error in pf(q, df1, df2, lower.tail, log.p) : Non-numeric argument to mathematical function
inputfille snpid indid genotype gvariable probeid gene geneexpression rs1040480 CHB_NA18524 C/T 2 GI_19743926-I PTPRT 5.850586 rs1040480 CHB_NA18526 C/C 1 GI_19743926-I PTPRT 6.028641 rs1040480 CHB_NA18529 C/C 3 GI_19743926-I PTPRT 5.944392 rs1040481 CHB_NA18532 C/C 1 GI_19743926-I PTPRT 5.938578 rs1040481 CHB_NA18537 C/C 2 GI_19743926-I PTPRT 5.874439 rs1040481 CHB_NA18540 C/C 3 GI_19743926-I
2002 May 17
5
Port 32230 anyone?
Greetings, Yet another strange pattern of traffic is being halted at the shorewall firewall, but I have no idea what this is. IANA shows the ports unassigned, and a net search yields only some of the same questions - what is this port? There are two machines as SOURCE, on the same class C network, adjacent, even, sending one connect attempt to TCP port 32230 every five minutes. I''m
1999 Mar 24
2
Change of parsing parameters to functions between 0.63.1 and 0.63.3 ?
Hi, I wonder whether the mechanism of parsing parameters to functions has changed between 0.63.1 and 0.63.3? The following code yeils different results in R 0.63.1 (Version 0.63.1 (Dec 5, 1998)) and R 0.63.3. cave<-function(x,a,b) { return(c(mean(x[a],na.rm=T),mean(x[b],na.rm=T))) } datx <- data.frame(rbind(c(1,2,3,4),c(4,5,6,7)))
1999 Mar 24
2
Change of parsing parameters to functions between 0.63.1 and 0.63.3 ?
Hi, I wonder whether the mechanism of parsing parameters to functions has changed between 0.63.1 and 0.63.3? The following code yeils different results in R 0.63.1 (Version 0.63.1 (Dec 5, 1998)) and R 0.63.3. cave<-function(x,a,b) { return(c(mean(x[a],na.rm=T),mean(x[b],na.rm=T))) } datx <- data.frame(rbind(c(1,2,3,4),c(4,5,6,7)))
2009 Dec 16
2
Porting CELt to the C5505
Hi, I am an applications engineer for Texas Instruments in the UK. I am trying to port the CELT codec to the C5505, this has HW accelerated FFT engine (http://focus.ti.com/docs/prod/folders/print/tms320vc5505.html). I am having problems with the stack allocation. Do you have any reference code that compiles for the C55x under CCS (code composer studio)? *******************************
2012 Oct 31
41
[Bug 56615] New: Unable to start X on ThinkPad T420s laptop
https://bugs.freedesktop.org/show_bug.cgi?id=56615 Priority: medium Bug ID: 56615 Assignee: nouveau at lists.freedesktop.org Summary: Unable to start X on ThinkPad T420s laptop QA Contact: xorg-team at lists.x.org Severity: normal Classification: Unclassified OS: Linux (All) Reporter: mark.cave-ayland at