search for: rish

Displaying 7 results from an estimated 7 matches for "rish".

Did you mean: rich
2008 Oct 29
2
Functional pattern-matching in R
...V) % MATLAB! Ideally I'd be able to say, <<x,y>> <- dim(V) -- where <<.,.>> is some magic needed. Similarly, to break lists, we'd need, in a MLish notation, match L with | head::tail => ... | () => ; What can be done in R now to simulate it, and/or how Rish is it to add something like that? Cheers, Alexy
2012 May 30
5
problem with ifelse
Dear all, ?The code below is used to generate interval censored data but unfortunately there is an error with the ifelse which i am not able to rectify. ?Can somebody help correct it for me. Thank you t<-rexp(20,0.2)? v<-c(0,m,999)? y<-function(t,v){ ? z<-numeric(length(t (( ? ? s<-numeric(length(t (( ? ? ? for(i in 1:length(t)){ ? ? ? ? for(j in 1:length(v-1))? ? ? ? ? { ifelse
2007 Mar 17
1
Monitoring reponses
Hi, Using Rails and Mongrel. While serving downloads, conditioned on verification of a key done in Rails, I would like to register when the response has been in its entirety to the client, as well as when the transfer was interrupted due to a client closing the connection. How can I achieve this? Christian
2011 Apr 28
2
for loop with global variables
Hi, is there a possibility to use global variables in a for loop. More specifically, I want to do the following: output.1<-rbind("a","b") output.2<-rbind("c","d") output.3<-rbind("e","f") . . . output.n<-rbind(...,...) next I want to create a data frame with two columns: Outputs Values output.1 "a","b"
2010 Oct 13
4
Change global env variables from within a function
Hi, I've looked all over for a solution to this, but haven't had much look in specifying what I want to do with appropriate search terms. Thus I'm turning to R-help. In the process of trying to write a simple function to rename individual column names in a data frame, I ran into the following problem: When I rename the columns within my function, I can't seem to get it to
2011 Nov 19
3
Data analysis: normal approximation for binomial
Dear R experts, I am trying to analyze data from an article, the data looks like this Patient Age Sex Aura preCSM preFreq preIntensity postFreq postIntensity postOutcome 1 47 F A 4 6 9 2 8 SD 2 40 F A/N 5 8 9 0 0 E 3 49 M N 5 8 9 2 6 SD 4 40 F A 5 3 10 0 0 E 5 42 F N 5 4 9 0 0 E 6 35 F N 5 8 9 12 7 NR 7 38 F A 5 NA 10 2 9 SD 8 44 M A 4 4 10 0 0 E 9 47 M A 4 5 8 2 7 SD 10 53 F A 5 3 10 0 0 E 11
2010 Oct 15
0
nomianl response model
...68B5BC7EBC7DA14CC633E8152F2 at LP-EXMBVS10.CO.IHC.COM> Content-Type: text/plain; charset="us-ascii" R is primarily a function language not a macro language and what you are trying to do matches more with macro programming. The best approach is to think functionally and learn the more Rish ways of doing things (have the function return the changed data and the caller does the replacement, like has been shown in other responses). If you really want the macro behavior (and are willing to live with the consequences (don't complain that you were not warned)), then look at the defmac...