search for: rrcomrtmpsaved

Displaying 2 results from an estimated 2 matches for "rrcomrtmpsaved".

2004 Feb 22
2
nested loop
Hi all, Does anybody know whether one can nest an 'if' statement in a 'for' loop. According to the results of my code, the for loop is performed first, but I'm not sure I got something else wrong with my code. I'm trying to perform the if statement for each step of the for loop. Thanks in advance. Best regards, Sebastian
2004 Feb 21
3
saving variables created by functions in the workspace
Hello , just a simple question from a beginner: I write the function: plotsinx <- function() { x<-seq(0,2*pi,0.01) sinx<-sin(x) plot(sinx) } I recall it: plotsinx() and the plot works properly. but then in the workspace if I want to look at the values of sinx the following error is displayed: Error: Object "sinx" not found. How to save the variables created by the function on