the error message means (most likely) that srOne[row, "timestamp"] has NA as a
value. Put
options(error = recover)
in your script so that you get control at the point of the error and can then
use 'browser' (?browser) to examine the values.
It is a problem with your data and probably the resu
On 10-03-2013, at 22:32, Louis wrote:
> I am having trouble with this code:
>
> trOne <- read.csv("*.csv", header=TRUE)
> srOne <- read.csv("*/SRdivision1.csv", header=TRUE)
> row = 1
>
> for (g in 1:162) {
> e = trOne[g, "END_TIME"]
> s = trOne[g, "START_TIME"]
> q = trOne[g, "OCC_TIME"]
> r
I am having trouble with this code:
trOne <- read.csv("*.csv", header=TRUE)
srOne <- read.csv("*/SRdivision1.csv", header=TRUE)
row = 1
for (g in 1:162) {
e = trOne[g, "END_TIME"]
s = trOne[g, "START_TIME"]
q = trOne[g, "OCC_TIME"]
r = trOne[g, "R_TIME"]
gazeSum = 0
n = 0
print(g)
while (s <= e)
3 matches
Mail list logo