search for: bankfull_depths_m

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

2010 Sep 15
1
approxfun returning value higher than I would expect
...ch larger function. I would expect a bankfull measure at zero to be between 0.6 and 0.8 approxfun is returning 0.8136986. I am sure that I am missing something. measure_bkf <- (structure(list(measurment_num = c(0, 0.2, 0.4, 0.6, 0.8, 1, 1.2, 1.4, 1.6, 1.8, 2, 2.2, 2.4, 2.6, 2.8, 3, 3.2, 3.4), bankfull_depths_m = c(-0.48, -0.48, -0.42, -0.26, 0.58, 0.48, 0.47, 0.54, 0.5, 0.52, 0.52, 0.56, 0.58, 0.61, 0.68, 0.62, 0.67, 0.66)), .Names = c("measurment_num", "bankfull_depths_m"), row.names = c("6124", "612", "613", "614", "615", "616&q...
2010 Jul 18
2
NA preserved in logical call - I don't understand this behavior because NA is not equal to 0
...he logical call ==0. I am sure that I am missing something. I just don't understand this behavior. Thanks for your help in advance. ########code####################################################### left <- (structure(list(measurment_num = c(2, 2.2, 2.4, 2.6, 2.8, 2.82, 3, NA, NA, NA), bankfull_depths_m = c(1.29, 1.28, 1.23, 0.18, -0.05, 0, -0.09, NA, NA, NA)), .Names = c("measurment_num", "bankfull_depths_m" ), row.names = c(10L, 11L, 12L, 13L, 14L, 20L, 15L, 16L, 17L, 18L), class = "data.frame")) if(sum(left[,"bankfull_depths_m"]==0, na.rm=TRUE) == 1){ le...
2010 Feb 03
1
Additional field data collection
This is a subset of a much larger dataframe. I would like to be able to automate finding the pair of x, y coordinates where the line crosses zero agian x <- (structure(list(bankfull_depths_m = c(0, 0.17, 0.38, 0.37, 0.36, 0.39, 0.47, 0.48, 0.19, 0.05, -0.05, -0.09), measurment_num_m = c(0.2, 0.4, 0.6, 0.8, 1, 1.2, 1.4, 1.6, 1.8, 2, 2.2, 2.4)), .Names = c("bankfull_depths_m", "measurment_num_m"), class = "data.frame", row.names = 97:108)) qplot(measurment_...
2010 Feb 04
1
for loop with if statment problem
...17L, 18L, 19L, 20L, 21L, 1L, 20L, 19L, 18L, 17L, 16L, 15L, 14L, 13L, 12L, 11L, 10L, 9L, 8L, 7L, 6L, 5L, 4L, 3L, 2L, 1L, 11L, 10L, 9L, 8L, 7L, 6L, 5L, 4L, 3L, 2L, 1L, 15L, 14L, 13L, 12L, 11L, 10L, 9L, 8L, 7L, 6L, 5L, 4L, 3L, 2L, 1L, 12L, 11L, 10L, 9L, 8L, 7L, 6L, 5L, 4L, 3L, 2L, 1L, 21L, 20L, 19L), bankfull_depths_m = c(0, 0.02, 0.1, 0.52, 0.56, 0.61, 0.63, 0.67, 0.68, 0.72, 0.74, 0.73, 0.74, 0.7, 0.7, 0.63, 0.22, 0.13, 0.09, 0.02, -0.1, -0.19, 0, -0.01, 0.08, 0.24, 0.97, 1, 1.04, 1.11, 1.12, 1.14, 1.14, 1.14, 1.09, 1.11, 1.08, 1.04, 0.44, 0.28, 0.07, -0.06, -0.17, -0.13, -0.04, 0.76, 0.78, 0.79, 0.83, 0.83, 0...