similar to: If then test

Displaying 20 results from an estimated 1300 matches similar to: "If then test"

2011 Nov 18
3
Apply functions along "layers" of a data matrix
Hello How can I apply functions along "layers" of a data matrix? Example: daf <- data.frame( 'id' = rep(1:5, 3), matrix(1:60, nrow=15, dimnames=list( NULL, paste('v', 1:4, sep='') )), rep = rep(1:3, each=5) ) The data frame "daf" contains 3 repetitions/layers (rep) of 4 variables of 5 persons (id). For some reason, I want to calculate
2002 Jul 23
3
Aggregate: assembling the "by" part on the fly
Dear R users, I'm having trouble using aggregate() and would greatly appreciate your advice. I am using R 1.5.1 on Windows 2000. I want to call my function in the following way extract.data(x=dat[, "Age", "Year"]) where extract.data() uses aggregate() to count the number of cases for each combination of "Age" and "Year". I've defined
2006 Mar 29
2
aggregate function....
Dear R users, I have some trouble with the aggregate function. Here are my data > daf S_id AF_Class count... R_gc_percent S_length 5 8264497 1 30 0.48 35678 6 8264497 3 7 0.48 35678 8 8264554 1 31 0.51 38894 9 8264554 2 11 0.51 38894 10 8264554 3 1 0.51 38894
2002 Mar 01
3
Split plot in colors/pch??
Hi all This seems like a very easy question, but I have not found a simple answer to it: If you have a dataframe, how to you plot two of then in different colors depending on a third variable? All help appreciated! /Fredrik -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send
2017 Sep 08
1
Optimize code to read text-file with digits
On 8 September 2017 at 11:25, PIKAL Petr <petr.pikal at precheza.cz> wrote: > > Moller Skarbiniks Pedersen > My program which is slow looks like this: > > > > filename <- "digits.txt" > > lines <- readLines(filename) > > why you do not read a file as a whole e.g. by > > lines<-read.table("digits.txt") > Good idea.
2005 Oct 21
1
Could not get RealPath CORDAF/*
Hi, I have a strange problem : some users cannot acces to diretcory, the message is "access denied". The ACL is correct # file: rsrv/vol2/data1/groupes/CORDAF # owner: root # group: Utilisateurs user::rwx user:mro:r-x user:sad:r-x group::--- group:administrateurs:rwx group:daf:rwx mask::rwx other::--- default:user::rwx default:user:mro:r-x default:user:sad:r-x default:group::---
2012 Aug 14
4
pass by reference
Hi all, I want to do the following: data<-data.frame(col1=c(1,2,3,4,5)) getcol2<-function(data){ data$col2[data$col1<=2]="L" } getcol2(data) Unfortunately in the above col2 does not appear in the final data. So how would you pass this by reference such that you would get it back? Thanks, Sachin [[alternative HTML version deleted]]
2007 Oct 24
28
random cpu spikes, EBADF errors
In May I had problem with mongrels suddenly consuming huge cpu resources for a minute or two and then returning to normal (load average spikes up to 3.8and then back down to a regular 0.2 over the course of 5 minutes, then again 1/2 hour later. or 4 hours later, no predictable rhythm). I posted to Litespeed forums because I thought the problem was there but didn''t get far. And a week
2002 May 22
1
3 OS/2 Server, 120 user, we waited to avoid W*-Server, is now the time? How?
Hallo, das Subject sagt schon fast alles. Zum besseren Verst?ndnis der Hintergrund. nachdem ich vor vielen jahren Pathworks-Server durch ein OS/2-Serversystem abgel?st habe,haben wir es auch noch geschafft, die n?chste Evolutionsstufe bis jetzt herauszuziehen. Wir nutzen File- und Printservices. Das ist alles. Die Anzahl der User tendiert gegen 150. Wir sind an zwei Standorten, aber ?ber VPN
2003 Nov 10
2
Samba Translation Dok to German, first file, deutsche Übersetzung Der Samba Doku erste Datei
Hi @ll , the first file is now translated to German find it here http://www.robowarp.de/smb/trans/net.8.html thx for his work to Mr Stefan G. Weichinger mailto robowarp@gmx.de if you want to be a part of the Translation Team you can view other files translation progress and the readme beyond http://www.robowarp.de/smb/trans/ Best Regards Robert R?gner Hallo, die erste Datei der Samba Doku wurde
1999 Jan 13
6
Neuling
Hallo Liste Derzeit mache ich meine ersten Gehversuche mit Linux (SuSE). Bis jetzt habe ich in einem kleinen Netzwerk f?r meine Tauchschule vier Rechner betreut. Einer davon war WinNT-4.0 Server und Arbeitsplatz zugleich. Nachdem ich nicht mehr bereit bin, mich mit dem w?chentlichen "blue screen" und dem monatlichen Neuinstallieren von NT abzufinden, bin ich derzeit beim Umsteigen auf
2004 Jun 28
3
Help!!!
Hi! I heard many things over ogg, but all what i can see is shit. O.K. The oggdrop.exe play with me, have this tool a version number? I can't see it. Every other tool don't run under my system (Win98; Athlon1,5GHz; 768MB RAM). For example every version of oggenc produce the error: "OGGENC.EXE kann nicht ausgef?hrt werden"! There are a german mailing list? An how can i register
2010 Mar 09
3
Shade area under curve
I want to shade the area under the curve of the standard normal density. Specifically color to the left of -2 and on. How might i go about doing this? Thanks -- View this message in context: http://n4.nabble.com/Shade-area-under-curve-tp1586439p1586439.html Sent from the R help mailing list archive at Nabble.com.
2010 Feb 26
2
Loop overwrite and data output problems
Hello R users, I have been using R for a while now for basic stats but I'm now trying to get my head around looping scripts and in some places I am failing! I have a data set with c. 1200 data points on 98 individual animals with data on each row representing a daily measure and I am asking the question "what variables affect the animal's behaviour?" the dataset includes
2010 Feb 10
1
Optimization of call from server 1 to 2 and then back to 1
Hi All, suppose this call flow: there are two Asterisk servers, they are connected through a IAX2 trunk. The users use SIP. The user A on the Asterisk server 1 calls the user B on the Asterisk server 2. They talk for a while and then the user B does an attendant transfer to the user C on the Asterisk server 1. Question: is it possible to optimize the voice flow or the music on hold flow so
2009 Jun 12
2
Creating this vector, any suggetions?
Suppose I have the first vector: c(1, 6, 8, 9) I will like to create a second vector of size 10 composed of 0 and 1's. The second vector will be composed of four 1's and six 0's. The position of the 1's will be specificed by the first vector. So essentially, I want a second vector in the form: c(1, 0, 0, 0, 0, 1, 0, 1, 1, 0) Any help is greatly appreciated! -- View this message
2006 Jan 12
1
I think not so hard question
I'm sorry to bother this list so much But I haven't programmed in A while and I'm struggling. I have a vector in R of 1's and -1's And I want to use a streak of size Y To predict that the same value will Be next. So, suppose Y = 3. Then, if there is a streak of three ones in a row, then I will predict that the next value is a 1. But, if there is a streak of 3 -1's in
2008 Apr 19
1
resampling from distributions
Hello All, Once again thanks for all of the help to date. I am climbing my R learning curve. I've got a few more questions that I hope I can get some guidance on though. I am not sure whether the etiquette is to break up multiple questions or not but I'll keep them together here for now as it may help put the questions in context despite the fact that the post may get a little long.
2006 Nov 10
4
Selective subsetting
Hi all, Here's an interesting (for me, at least!) problem I came across: I have a correlation matrix, let's say with 6 variables, A to F, as column headings and the same 6 as row headings. The matrix is filled with correlation coefficients. Therefore, the diagonal is all 1's, and each of the two triangles formed by the diagonal has the same 15 correlation coefficients. I need to
2001 Nov 07
3
samba PDC with NIS, or other solution?
We have a network with Windows NT/2000, SGI's, Linux, Macintosh, AIX. Our user account/passwords for all our machines is handled by NIS on an AIX machine. Our unix machines autheticate through NIS. Our windows machines authenticate by loging on to an NT server acting as the PDC, and that PDC has a service installed on it called "WinDD NIS" (made by Tektronix I think) which contacts