HI,
I have this code:
BAGA <- c(10,20,20,30,30,30,30,40,
40,40,40,50,50,50,50,50,
60,60,60,60,60,70,70,70,
70,80,80,80,90,90,100)
BAGB <- c(10,10,10,10,10,20,20,20,
20,30,30,30,40,40,50,60,
70,70,80,80,80,90,90,90,
90,100,100,100,100,100)
A <- sample(c(1,2),1)
if (A==1) {
B <- BAGA[sample(length(BAGA),1)]
} else {
B <- BAGB[sample(length(BAGB),1)]
}
cat("X = ", B)
In R-studio, when I source the code with Shift-Command-S on the mac, I get
this response in the console window:
> source('~/Documents/classes/trunk/math15/resources/TIFiles/todd.R')
X = 90
How can I turn of the source echo to get just:
X = 90
Thanks.
D.
--
View this message in context:
http://r.789695.n4.nabble.com/Turning-of-source-echo-tp4641278.html
Sent from the R help mailing list archive at Nabble.com.