Hi all, I have some time trying to find a way to stop a loop for( ) until the
user presses the enter key or any other one and the loop can continue.
This could
be an example:
library(MASS)
data <- data.frame(mvrnorm(1000,rep(0,5),Sigma=diag(1,5)))
for(i in 1:dim(data)[2]){
plot(density(data[,i]), main=paste('histogram',i))
#here something like waituntil command
}
Thank's in advance
Juan A. Hernandez
Spain.
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.