search for: dive_id

Displaying 4 results from an estimated 4 matches for "dive_id".

2012 Jul 16
4
Error in as.xts
Hi I got the following error using as.xts Error in xts(x, order.by = order.by, frequency = frequency, ...) : NROW(x) must match length(order.by) Here is how the data looks like > d1 <- read.csv(file.path(dataDir,"AppendixA-FishCountsTable-2009.csv"), as.is=T) > d1[1:3,] dive_id date time species count size site depth level TRANSECT VIS_M 1 62 10/12/2009 12:44 E. lateralis 2 15 Hopkins 15 B 1 4 2 62 10/12/2009 12:44 E. lateralis 1 22 Hopkins 15 B 1 4 3 62 10/12/2009 12:44 E. lateralis 1 25 Hopkins...
2012 Jul 18
2
loop searching the id corresponding to the given index (timestamp)
Hello, I have the following loop for two data sets: diveData_2008 and diveData_2009. It uses two other data: diveCond_all and fishTable. The problem is at the point to identify the dive_id for the given index (index is timestamp). It keeps on saying for the1st loop Error in fishReport$dive_id[i] <- dive_id : replacement has length zero for the 2nd loop Error in fishReport$dive_id[i + j] <- dive_id : replacement has length zero That is where the only problem resides. Here is...
2012 Aug 03
5
replacement has length zero. In addition: Warning message: In max(i) : no non-missing arguments to max; returning -Inf
..."PRES", "ATMP", "WTMP", "DEWP", "VIS", "TIDE"))) I tried to copy some fields from this data to another data. I got error. Could you please help? Thanks. diveCond <- data.frame(matrix(0, nrow=97, ncol=17)) names(diveCond) <- c("dive_id", "timestamp", "visability", "r_wvht", "r_dpd", "r_apt", "r_mwd", "r_wtmp", "l_salinity", "l_o2", "l_hs", "l_tp", "l_wdir", "l_along", "l_cross", "l_...
2012 Jul 29
1
readRDS, In as.double.xts(fishReport$count) : NAs introduced by coercion
...following. I would like to convert a character to numeric after reading a file with RDS extension. After using as.numeric, I checked if it is numeric. It was not converted. Please help. Here is my code >Report <- readRDS(file="RDS/Report.RDS") > Report[1:2,] dive_id date time species count size 2008-08-06 08:49:00 " 1" "08/06/2008" "8:49:00" "S. OYT" "15" "6" 2008-08-06 08:49:00 " 1" "08/06/2008" "8:49:00" "S. atrovirens" "...