similar to: Choosing a column for analysis in a function

Displaying 20 results from an estimated 800 matches similar to: "Choosing a column for analysis in a function"

2007 Jun 18
1
Problem with binding data-frames
Hello, I'm having a problem concerning r-binding datasets. I have six datasets, from six different plates, and two different days. I want to combine these datasets together for analysis. Datasets from day 2, have all the same columns than datasets from day 1. However in addition, there are few columns more in day 2. Thus, using rbind for this, results a error, because the objects are not the
2011 Dec 30
2
Applyiing mode() or class() to each column of a data.frame XXXX
Hi everyone, I am attempting to use the apply() function to obtain the mode and class of each column in a data frame, however, I am encountering unexpected results. I have the following example data: v13<-1:6 v14<-c(1,2,3,3,NA,1) v15<-c("Good","Bad",NA,"Good","Bad","Bad")
2012 Aug 08
1
dimnames in array
Hello, I'm working with an array; I'm trying to make it so that an array of dim(42,2,2) has names whose length corresponds to that of the array, and am hoping someone with experience with this can see what I'm not doing correctly: data11 = array(0,c(41,2,2)) y = lsoda(x0,times,fhn$fn.ode,pars)#This is make.fhn() from colloc infer package# y = y[,2:3]
2010 Dec 29
1
Counting number of datasets and appending them
Hi there, I have a question on how to read a bunch of dataset, assign each of the dataset to a matrix in the memory, and append them. Suppose I have 20 dataset saved to different .rda files named gradeFileData1, gradeFileData2,...., gradeFileData20. And I would like to read them each into a dataset in the memory, then combine them. I wrote something like: e1<-new.env(parent=.GlobalEnv)
2006 Jun 21
1
eliminating a do loop
Using a "by() statement, I am preparing ANOVA's for multiple experiments, and using simint() to generate confidence intervals. This works fine. simint.by.fit <- by(analytes.dfr, list(Assay = analytes.dfr$analyte ), function(data) (simint(value ~ tx, data = data,type='Tukey' ) ) ) I can separately prepare plots of the confidence intervals, and I can prepare separate plots
2006 Sep 13
2
recursive methods for concatenating sets of files
Hello, I would like to read sets of files within a folder, perhaps using recursive methods. Right now, I rename the files before import. It would be even better to do this without renaming files, without providing explicit filenames, perhaps by importing files based on chronology, and translating each filename into a header? Please excuse my ignorance, and help cure my clunky programming
2004 Aug 06
3
Multiple Ogg Streams
Hello I've been playing around with Icecast, Oddcast DSP v2 and streamTranscoder, trying to get multiple streams with different bitrates in ogg format running. The source I am streaming is from Winamp 2.80 Oddcast DSP v2 serving to a linux compilation (got it from CVS just yesterday) of Icecast 2. I also compiled streamTranscoder 1.1 and after much trial got a not really stable second
2011 Jul 14
1
Repating a loop of lm function with different columns of database
Hi, First let me thank you for the incredible help and resource that this forum is. I am trying to compare the repeated measurement of more than 100 analytes that have been take in 70 subjects at 2 time points adjusted for the time difference of sample times(TimeDifferenceDays), therefore I wanted to do it with a function that allows me to do all at once. (131 is the column difference that
2006 Jul 20
11
3 columns
Hi all, Not really sure what to put in the title so hope people still open this! What I want to do is produce something like this Col1 Col2 Col3 data1 data2 data3 data4 data5 data6 data7 data8 data9 data.. data.. data.. data.. data.. data.. data-n data-n+1 data-n+2 I can get the data back from my db
2002 Jun 27
2
openssh-3.4p1-1.src.rpm & RH 6.2
When trying to compile openssh3.4 to Redhat 6.2 I get following error: #rpm --rebuild openssh-3.4p1-1.src.rpm Installing openssh-3.4p1-1.src.rpm error: failed build dependencies: db1-devel is needed by openssh-3.4p1-1 Please advice about the recommend way to proceed. There is no (official) db1 rpm package for RH6.2. I did not have any db1 dependency problems with previous versions of
2003 Oct 20
1
v2.5.6 on AIX and large files
Abstract: Looking for technical assistance with rsync version 2.5.6 protocol 26 on AIX. Trying to use rsync (version 2.5.6) to sync two AIX-based systems the other day, and a couple of the filesystems (7 out of 18 in total) gave the following error message: rsync: writefd_unbuffered failed to write 32768 bytes: phase "unknown": Broken pipe rsync error: error in rsync
2013 Oct 30
1
unique(1:3,nmax=1) freezes R
Dear all, I was playing around with factor contrasts, and found the argument nmax on function factor. When using nmax=1, R froze completely, and I had to close it from task manager. After some debugging, I found that the problem is actually in unique-function, where the internal unique function is called: .Internal(unique(x, incomparables, fromLast, nmax)) More generally, it looks like
2005 May 01
2
eigen() may fail for some symmetric matrices, affects mvrnorm()
Hi all, Recently our statistics students noticed that their Gibbs samplers were crashing due to some NaNs in some parameters. The NaNs came from mvrnorm (Ripley & Venables' MASS package multivariate normal sampling function) and with some more investigation it turned out that they were generated by function eigen, the eigenvalue computing function. The problem did not seem to happen
2012 Apr 30
2
The constant part of the log-likelihood in StructTS
Dear all, I'd like to discuss about a possible bug in function StructTS of stats package. It seems that the function returns wrong value of the log-likelihood, as the added constant to the relevant part of the log-likelihood is misspecified. Here is an simple example: > data(Nile) > fit <- StructTS(Nile, type = "level") > fit$loglik [1] -367.5194 When computing the
2007 Aug 20
1
rv package, rvnorm function
In an attempt to learn to use the rv package, I have been working through the examples in Jouni Kerman and Andrew Gelman's "Using Random Variables to Manipulate and Summarize Simulations in R" (July 4, 2007). I am using a Dell Precision 380n computer running Gentoo Linux and R 2.2.1 (the latest available through Gentoo's portage/emerge system). Everything worked well until I
2007 Feb 15
1
Problem in summaryBy
The R script below gives values of 1 for all minimum values when I use a custom function in summaryBy. I get the correct values when I use FUN=min directly. Any help is much appreciated. The continuous information provided in this forum is fabulous as are the different R packages available. Rene # Simulated simplified data Subj <- rep(1:4, each=6) Analyte <-
2010 Feb 09
9
VERY HIGH LOAD AVERAGE: top - 10:27:57 up 199 days, 5:18, 2 users, load average: 67.75, 62.55, 55.75
Hi Team Can someone advice me on how i can lower the load average on my asterisk server? dahdi-linux-2.1.0.4 dahdi-tools-2.1.0.2 libpri-1.4.10.1 asterisk-1.4.25.1 2 X TE412P Digium cards on ISDN PRI Im using the system as an IVR without any transcoding or bridging ************************************** top - 10:27:57 up 199 days, 5:18, 2 users, load average: 67.75, 62.55, 55.75 Tasks: 149
2009 Sep 28
4
Running an ANOVA with a BY
I have a simple 1 way anova coded like summary(ANOVA1way <- aov(Value ~ WellID, data = welldata)) How can I use the BY function to do this ANOVA for each group using another variable in the dataset?? I tried coding it like this, but it doesn't seem to work. summary(ANOVA1way <- by(welldata, Analyte, function(x) aov(Value ~ WellID, data = welldata))) In SAS I would code it like this:
2004 Aug 06
0
Multiple Ogg Streams
On Fri, 2003-11-21 at 13:02, Lukas Österreicher wrote: > Hello > > I've been playing around with Icecast, Oddcast DSP v2 and streamTranscoder, > trying to get multiple streams with different bitrates in ogg format running. > > The source I am streaming is from Winamp 2.80 Oddcast DSP v2 serving > to a linux compilation (got it from CVS just yesterday) of Icecast 2. >
2002 Dec 06
2
Mutiple page trellis plots with relation = "free" or "sliced"
Hello, Has anyone out there encountered a problem like this: xyplot(Plasma ~ Serum | Analyte, data = sp.df, aspect = 1, layout = c(1, 1, 200), scales = list(relation = "free") ) Gives the error: Error in pretty(x[is.finite(x)], ...) : x must be numeric On the other hand, this works (but I don't want the default of having everything on the same