Displaying 3 results from an estimated 3 matches for "r_mwd".
Did you mean:
r2wd
2012 Aug 03
5
replacement has length zero. In addition: Warning message: In max(i) : no non-missing arguments to max; returning -Inf
...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_mab", "l_depth")
dive_id <- 0
for(i in 1:dim(diveCond)[1]){
thisStamp <- as.POSIXct(strptime(diveCond...
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
2012 Jul 18
2
loop searching the id corresponding to the given index (timestamp)
....02, 0.76, 0.78, 0.78, 1.35, 1.35, 1.57,
1.57, 1.53, 1.53, 1.51, 1.53, 1.69), r_dpd = c(14.29, 4.35,
4.35, 13.33, 13.33, 8.33, 8.33, 8.33, 8.33, 8.33, 8.33, 8.33,
9.09, 9.09, 8.33), r_apt = c(4.59, 4.45, 4.26, 5.87, 6.27,
6.58, 6.7, 6.7, 6.67, 6.67, 6.66, 6.5, 6.99, 6.95, 7.19),
r_mwd = c(229, 291, 297, 226, 228, 260, 287, 287, 291, 291,
290, 290, 294, 292, 298), r_wtmp = c(12.6, 12.6, 12.5, 12.7,
12.6, 12.6, 12.8, 12.8, 12.7, 12.7, 12.7, 12.7, 13.4, 13.4,
13.5), l_salinity = c("33.513", "33.513", "33.513", "33.513",
"...