similar to: Pausing script to allow user input from keyboard.

Displaying 6 results from an estimated 6 matches similar to: "Pausing script to allow user input from keyboard."

2011 Sep 01
2
R Help finding Mean
bob<-read.csv('shi.csv', header=T) newmean<-matrix(0, test, dim(bob)[2]-6);a<-0; for (i in c(4,8:(dim(bob)[2]))) {a<-a+1;newmean[,a]<-tapply(bob[,i], bob$Exam, mean)} colnames(newmean)<-colnames(bob)[c(4,8:(dim(bob)[2]))] Could anyone please help me what does the above code does ... I want to find mean ... but would like to know what exactly is the above code doing.
2007 Mar 12
1
How to avoid a for-loop?
Hi all, as I am trying to move slowly from just "working" to "good" code, I'd like to ask if there's a smarter way than using a for-loop in tasks like the example below. I need to obtain the extrema of the cumulated sum of a detrended time series. The following code is currently used, please have a look at the comments for my questions and remarks: system.time({ X
2010 Aug 18
1
Problem using 'get'
Hi all, I have loaded a table called 'data' and used the split command to create a new table called 'datasplit' based on the variable 'a.ImageNumber' in 'data'. a.ImageNumber just specifies the image number that certain measurements are associated with (so there could be 330 measurements from image 1 and 297 measurements from image 2 etc). I would now like to
2010 Aug 27
1
Grouping sets of data, performing function and re-assigning values
Hi there, I hope you have time to read this question and offer a suggestion or two. My basic question is this: I have data in sets of three. I would like to combine the data from each set, perform a function (probably just taking the median and MAD), then re-assign these values to each of the original sets of data. As a bit of background, I have performed a microscopy screen and analyzed
2007 Mar 14
0
Wald test and frailty models in coxph
Dear R members, I am new in using frailty models in survival analyses and am getting some contrasting results when I compare the Wald and likelihood ratio tests provided by the r output. I am testing the survivorship of different sunflower interspecific crosses using cytoplasm (Cyt), Pollen and the interaction Cyt*Pollen as fixed effects, and sub-block as a random effect. I stratified
2012 Jun 20
2
Using object as literal value in list vector
Hello all , This is a pretty simple question I think but cannot find an answer on the list or in my brain. I would like to iterate through a loop and use a vector of strings to name a number of list elements. For instance #Create vector of strings Et<- c("ACC","RTL","WHL") MeanValues_ <- list("ACC" = 1000, "RTL" = 2000,