From iad at columbia.edu  Sun Mar 13 01:43:03 2005
From: iad at columbia.edu (iad@columbia.edu)
Date: Sun Mar 13 01:43:17 2005
Subject: [Rd] Incorrect calculation of loop in R.2.0.1 (PR#7724)
Message-ID: <20050313004303.6ACBBC047@slim.kubism.ku.dk>

Full_Name: Ms. Drakes
Version: 2.01
OS: Windows XP
Submission from: (NULL) (4.237.32.239)


file="C:/glob.csv"
glob=read.csv(file,header=T)

y=glob$Temperature


z=max(y[1:40])
#  this has a probability of exceedance of 1/41 
# now you can check how this does in the 2nd sample - 
sum=0
for i = 41:100 if (z>y[i]sum=sum+1
sum
sum=sum/60
	sum


error: the loop i=41:100 does not work correctly, only if information after "if"
is enclosed in parentheses


[Rd] Incorrect calculation of loop in R.2.0.1 (PR#7724)
iad@columbia.edu