similar to: ifelse question

Displaying 20 results from an estimated 10000 matches similar to: "ifelse question"

2017 Oct 22
1
ggplot2 and tikzDevice : problems with accents
Hi all, I can't fathom why the accented "?" in the following ggplot2 graph makes R hangs when using tikzdevice,? whereas it works using simple pdf device. ###### library(tikzDevice) library(ggplot2) options(tikzDefaultEngine = "luatex") tikzLualatexPackages =c( ? "\\usepackage{tikz}\n", ? "\\usepackage[active, tightpage,psfixbb]{preview}\n", ?
2005 Jul 21
3
vectorising ifelse()
Hi All, is there any chance of vectorising the two ifelse() statements in the following code: for(i in gp){ new[i,1] = ifelse(srow[i]>0, new[srow[i],zippo[i]], sample(1:100, 1, prob =Y1, rep = T)) new[i,2] = ifelse(drow[i]>0, new[drow[i]>0,zappo[i]], sample(1:100, 1, prob =Y1, rep = T)) } Where I am forced to check if the value of drow and srow are >0 for each line... in
2004 Mar 15
11
creating a ps. file
Dear all I wrote a routine. At the end of each cycle of the loop I would like to save the result (plot) in a postcriptfile. Of course if I just use dev.print in the following way: dev.print(device=postcript, 'c:/Rfigures/plot_1.ps") I overwrite my results with the second cycle of the loop. I suppose there is a way to define the file name so that several plots are
2004 Mar 24
7
binding vectors or matrix using their names
Hello list, I have two vectors x and x2: x=runif(10) x2=runif(10) and one vectors with their names : my.names=c("x","x2") I would like to cbind these two vectors using their names contained in the vector my.names. I can create a string with comma ncomma=paste(my.names,collapse=",") and now, I just need a function to transform this string into a adequate
2002 Apr 12
3
Chrooted sftp, did you getting it working?
Le Jeudi 11 Avril 2002 21:09, m.ibarra at cdcixis-na.com a ?crit : > I was curious to know if you had any luck in getting openssh's sftp > server properly configured to allow chrooted sftp logins? I have had > no success and need something quickly. Dear Mike, Unfortunately, I did not succeed to have it work. I got in contact with James Dennis <jdennis at law.harvard.edu>, who
2005 Oct 27
2
F tests for random effect models
Dear R-users, My question is how to get right F tests for random effects in random effect models (I hope this question has not been answered too many times yet - I didn't find an answer in rhelp archives). My data are in mca2 (enc.) : names(mca2) [1] "Lignee" "Pollinisateur" "Rendement" dim(mca2) [1] 100 3 replications(Rendement ~ Lignee *
2005 Oct 28
2
Random effect models
Dear R-users, Sorry for reposting. I put it in another way : I want to test random effects in this random effect model : Rendement ~ Pollinisateur (random) + Lignee (random) + Pollinisateur:Lignee (random) Of course : summary(aov(Rendement ~ Pollinisateur * Lignee, data = mca2)) gives wrong tests for random effects. But : summary(aov1 <- aov(Rendement ~ Error(Pollinisateur * Lignee), data =
2012 Aug 25
2
Standard deviation from MANOVA??
Hi, I have problem getting the standard deviation from the manova output. I have used the manova function: myfit <- manova(cbind(y1, y2) ~ x1 + x2 + x3, data=mydata) . I tried to get the predicted values and their standard deviation by using: predict(myfit, type="response", se.fit=TRUE) But the problem is that I don't get the standard deviation values, I only
2020 Mar 23
3
Attempting to get BLF working with linphone
On 23/03/2020 18:51, Joshua C. Colp wrote: > On Mon, Mar 23, 2020 at 2:45 PM John Hughes <john at calva.com > <mailto:john at calva.com>> wrote: > > > > Why is asterisk giving an error 500? I can find no reason, there > is nothing in any log. > > > The sequence number is from the past. The first SUBSCRIBE is sequence > number 22 (check the
2004 Dec 07
3
Increase size of ext3 filesystem WHILE MOUNTED
Hi, We will have to go and use SuSE (30 servers) just because ext3 filesystem cannot be increase while the filesystem is mounted. I Don't understand why RedHat do not support filesystems that can do thing that ext3 cannot do. When is RedHat going to understand that in a production environnement (30 servers that is seems will be SuSE) we need extend filesystem online. IBM JS,
2003 Sep 16
9
OpenSSH heads-up
OK, an official OpenSSH advisory was released, see here: <URL: http://www.mindrot.org/pipermail/openssh-unix-announce/2003-September/000063.html > The fix is currently in FreeBSD -CURRENT and -STABLE. It will be applied to the security branches as well today. Attached are patches: buffer46.patch -- For FreeBSD 4.6-RELEASE and later buffer45.patch -- For FreeBSD 4.5-RELEASE and
2013 Mar 21
1
[LLVMdev] Unsubscribe attempt
Hello, My former E-Mail is no longer accessible to me, hence I can't receive your messages. Can you change my address from jacques.menu at unige.ch to jacques.menu at tvtmail.ch, or unsubscribe for me directly? Thanks! Regards, -- Jacques Menu Ch. de la Pierre 12 1023 Crissier mailto:Jacques.Menu at tvtmail.ch -------------- next part -------------- An HTML attachment was scrubbed...
2004 Nov 12
1
Enlarge ext3 Logical Volume (Filesystem) in a volume group (LVM)
Anybody know a way to enlarge a filesystem ext3 without having to unmounted it, when they are still space left in the volume group (when using LVM) ? I will be running large production linux system running Oracle. I can't stop the database everytime I have to enlarge a filesystem. We can do it with all others filesystems (JFS, REISERSFS and XFS) when they are created in a volume group. Why
2004 Nov 16
5
Difference between two correlation matrices
Hi Now a more theoretical question. I have two correlation matrices - one of a set of variables under a particular condition, the other of the same set of variables under a different condition. Is there a statistical test I can use to see if these correlation matrices are "different"? Thanks Mick
2012 Jul 26
2
Passing arguments to SQL Query in R
Hello all, I am a newbie at R, with some experience in PERL. I have a database table that contains the following data: Name | Score ======= | ===== Sachin T | 25 Sachin T | 53 Sachin T | 57 Sachin T | 34 Rahul D | 38 Rahul D | 31 Rahul D | 53 Ricky P | 7 Ricky P | 45 Ricky P | 27 Ricky P | 17 Ricky P | 86 Ricky P | 48 Jacques K | 23 Jacques K | 86 Jacques K | 32 I
2005 Jan 26
3
Still avoiding loops
Dear all, I have a matrix X with 47 lines and say 500 columns - values are in {0,1}. I'd like to compare lines. For that, I first did: for (i in 1:(dim(X)[1]-1)) for (j in (i+1):dim(X)[1]) { Y <- X[i,]+Y[j,] etc. but, since it takes a long time, I would prefer avoding loops; for that, my first idea was to add this matrix: X1=X[,rep(1:46,46:1)] to this one: res=NULL for (i in
2004 Sep 20
4
Multiple operations on list
Hello, suppose I have a list with matrices: a=list(x1=matrix(rnorm(10),5,2),x2=matrix(rnorm(10),5,2),x3=matrix(rnorm(10),5,2)) I want to compute for all combination of xi and xj (x1,x2 x1,x3 and x2,x3) a value. This value is given for the pair x1,x2 by trace(x1%*%t(x1)%*%x2%*%t(x2)) / trace(x1%*%t(x1))*trace(x2%*%t(x2)) I know that product matrices t(xi)%*%xi can be obtained by:
2016 Feb 09
2
[RFC] Lanai backend
Do you MC support? Cheers, Rafael On Feb 9, 2016 1:12 PM, "Jacques Pienaar via llvm-dev" < llvm-dev at lists.llvm.org> wrote: > > > On Tue, Feb 9, 2016 at 10:05 AM, Chandler Carruth <chandlerc at google.com> > wrote: > >> On Tue, Feb 9, 2016 at 9:58 AM Hal Finkel via llvm-dev < >> llvm-dev at lists.llvm.org> wrote: >> >>>
2004 Feb 25
2
writing polygons/segments to shapefiles (.shp) or other ArCGIS compatible file
I am not sure a previous e-mail reached the list (no mail aknowledgement from R-boundle etc.). The question was how to write polygon or segment coordinates into a shapefile set or any other ArcGIS supported format. The library shapefiles seems to do something but the documentation is a bit beyond of my mind.... and I cannot get the meaning of the functions write**** and its application to the case
2020 Mar 23
2
Attempting to get BLF working with linphone
So I've got a bit further with my  project to get BLF working between asterisk and linphone. Initially asterisk was rejecting linphone's SUBSCRIBE messages because they didn't have an Accept: header. I've fixed that and now the initial SUBSCRIBE messages work and I see all my online contacts in green. But after a few minutes linphone attempts to renew the subscriptions and