search for: three

Displaying 20 results from an estimated 23694 matches for "three".

2010 Nov 04
3
creating vectors with three variables out of three datasets
Hi there, i´ve got a problem with how to create a vector with three variables out of three seperate ascii files. These three ascii files contain pixel information of the same image but different bands and i need a matrix of vectors, with each vector containing the corresponding pixel values for each band. Up to now i´ve seperately read out the ascii files into t...
2009 Aug 07
1
Proper / Improper scoring Rules
Hi All, I am working on some ordinal logistic regresssions using LRM in the Design package. My response variable has three categories (1,2,3) and after using the creating my model and using a call to predict some values and I wanted to use a simple .5 cut-off to classify my probabilities into the categories. I had two questions: a) first, I am having trouble directly accessing the probabilities which may have mo...
2009 Apr 14
2
matching lists
Dear All,   Here's my problem. I have two lists:   > v [[1]] [1] "five" [[2]] [1] "four" [[3]] [1] "three" [[4]] [1] "two" [[5]] [1] "one" [[6]] [1] "six" [[7]] [1] "five"  "four"  "three" "two"   "one"   "six"  [[8]] [1] "four"  "three" "two"   "one"   "six"...
2009 Dec 20
2
how to create three new variables? Thanks a lot!
Dear R experts: I have following data structure: student id, exam time and score. I want to create three new columes: 1 st before, 2nd before and 3rd before. For example, for student 1's 4th exam score is assumed to be influenced by his previous three cloest scores, which are 6, 9, and 10 in that order. For student 2's 5th exam score is assumed to be inflenced by her previous cloest three sco...
2010 May 05
4
any function in R similar to the "scan" function in SAS?
I am wondering if there is any function in R that is similar to the "scan" function in SAS. I have a data.frame which has two columns as the following: one two 1 2 3 4 5 6 I used the "paste" function to create the third column: three <- paste(one,'-',two,sep="") so the data.frame is like this now: one two three 1 2 1-2 3 4 3-4 5 6 5-6 My question is, is there any function in R that can do the opposite thing to what "paste" does? suppose I only have the third c...
2012 Jan 04
6
Combining characters
Hi all, I'm trying to combine exhaustively several character arrays in R like: x=c("one","two","three") y=c("yellow","blue","green") z=c("apple","cheese") in order to get concatenation of x[1] y[1] z[1] ("one yellow apple") x[1] y[1] z[2] ("one yellow cheese") x[1] y[2] z[1]("one blue apple") ... x[length(x)] y...
2004 Jun 09
2
nominal data
Hi, I am a new user of R. I have 2 series of nominal data (2 series of answers for the same question) and I want to calculate the correlation between these 2 series. I've tried to use the correlation function (corr, ...) but all are for numeric data... Does anyone know what function should I use for the nominal data? Thanks a lot, Bianca
2010 Aug 26
1
No [[<-.factor()
Should there be a [[<-.factor() that either throws an error or acts like [<-.factor() to avoid making an illegal object of class factor? > z <- factor(c("Two","Two","Three"), levels=c("One","Two","Three")) > z [1] Two Two Three Levels: One Two Three > str(z) Factor w/ 3 levels "One","Two","Three": 2 2 3 > z[[2]] <- "One" > str(z) # the .Data part is now charac...
2010 Jul 12
3
Multiple Ploting Colors
...first "ifelse" statement successfully does what I want. However, now I want anything less than -4.5 to be green and the rest black. I want another "col" argument but can only use one. How could I go about getting separate colors for anything above 4.5 and less than -4.5? plot(three, type="h", col=ifelse(three > 4.5, "red", "black"), xlim=c(0,500), ylim=range(three), lwd=2, xlab="Chromosome", ylab="Z-Score", font.lab=2, font=2, main="Upregulated Genes in Patient Sample") Thanks in advance, Patrick The info...
2009 Nov 03
6
one long column of data -> three small columns
say i have a column of data like this... 2 3 4 2 1 6 6 4 7 and i want it in three columns like this 226 314 467 ...so i can make a contour plot. How do i do this? -- View this message in context: http://old.nabble.com/one-long-column-of-data--%3E-three-small-columns-tp26163165p26163165.html Sent from the R help mailing list archive at Nabble.com.
2006 Apr 21
3
Sorting Search results
I tried sorting the search results in Ferret::Index::Index#search and what I found was that the sort is applied not to the whole search but to the returned results. Suppose I have these results: Text - Num foo - 2 bar - 3 far - 4 boo - 1 If I limit the search to the first two and sort by num I get: foo - 2 bar - 3 while I think the natural behaviour would be: boo - 1 foo - 2 Is this
2017 Jan 24
3
CentOS 7 install on one RAID 1
Hi, folks, I'm building a new box, and I want three partitions - /boot, /, and swap, on *one* RAID 1, not three separate partitions. Other than <alt-f2> mdadm..., *is* there any way in the graphical installer to do this? All I see is a way to make three separate partitions. Pointers to links happily accepted. mark, back to googling
2007 Jun 07
2
Multiple USVs (how to identify each one)
Hi everybody, we have three MGE UPS'. I've read all the documents I've found, but I haven't got the information I need. All three of them being attached to the same machine I need a way to identify which is wich (all three use the same driver). They power different systems (two of them running windows so that...
2012 Mar 25
2
string substitution for argument in function
hello, I want to iterate through a list of names and use each element as an argument in a function. For instance: > a = c('one','two','three') > data= c() > for(elem in a){data=cbind(elem = 2,data)} > data elem elem elem [1,] 2 2 2 instead I want 'elem' to be substituted by the string in the list. Doing it by hand would be: > data = cbind('one'=2,data) > data = cbind('two'=2,data...
2018 Sep 19
3
A different error in sample()
....Machine$integer.max." However, again in the console:> set.seed(123) > table(sample(2.001, 10000, replace=TRUE)) ?? 1??? 2??? 3 5052 4941??? 7 So, neither rounding nor truncation is occurring. Next, define a sequence. > x <- seq(2.001, 2.51, length.out=20) Now, grab all of the threes from sample()-ing this sequence. > set.seed(123) > threes <- sapply(x, function(y) table(sample(y, 10000, replace=TRUE))[3]) Check for NAs (I cheated here and found a nice seed).> any(is.na(threes)) [1] FALSE Now, the (to me) disturbing result. > is.unsorted(threes) [1] FALSE o...
2009 Mar 18
2
Three Parameter FRECHET Distribution
Dear R Helpers Which package is available for estimatine the parameters of three parameter FRECHET distribution. Also, how to generate the random numbers for Frechet using these three estimated parameters. Thanking in advance Maithili
2005 May 28
1
7960 / chan_sccp: Less than three lines / more than three speeddials possible?
On Sat, May 28, 2005 at 01:51:56AM +0200, Stefan Gofferje arranged a set of bits into the following: > Hi folks, > > I'm trying the latest mayday chan_sccp and found it difficult to have > more than three speeddials. I have defined only one line but can't get > more than three SDs. On console, * says > > May 28 01:44:12 ERROR[26933]: sccp_actions.c:252 > sccp_handle_line_number: SCCP device SEP000xxxxxxxx requested a line > configuration for unknown line 3 > May 28 01:44:12...
2007 May 22
5
basic problem but can't solve it
Hello, I have a basic problem but i can't figure it out with the table underneath. I would like to compute monthly averages. I would like to have the average measure for month #5 for the first three rows (the same number in the first three lines) and the average measure for month #6 for the last four rows ((the same number in the first three lines) in a separate vesctor (let's call it 'result') I tried to use a "while" statement inside a "for" loop but it doe...
2006 Aug 03
1
Re: [Nemo-devel] nuts status page
Adam: Thanks for putting up this page. But something is wrong. In particular, our Powerware 9135 is a three phase UPS system with THREE 480 volt outputs. So the displayed voltage is not correct -- in fact there should really be THREE voltages displayed, all around 480v. Nut developers: I am copying the NUT mailing list to see if anyone can suggest how to fix this. NUT developers, see the following...
2004 Aug 05
1
cross random effects (more information abuot the data)
...QL(fixed=y~WSf*WSM, random=list(experiment=pdBlocked(list(pdIdent(~randf-1),pdIdent(~randm-1)))), family=binomial, data=sala.data). Where data neame=sala.glmm which contain y is response wsf is fixed effect wsm is fixed effects randf is random effect random is random effect The data contain three experiments at the same time. The previous cod is work but it does not give me accurate result especially for the random effects. For experiment I wrote this code experiment <- factor(c(rep(1,120),rep(2,120),rep(3,120))) because I have three experiments at the same time, but if I change the...