search for: measurment_num

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

2010 Sep 15
1
approxfun returning value higher than I would expect
Below is the code that I am using in a much 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.na...
2010 Jul 18
2
NA preserved in logical call - I don't understand this behavior because NA is not equal to 0
...havior of the below piece of code. The NAs are making it past the 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...
2009 Dec 15
1
for loop for automatic pdf generation
...the [i] with a number. Thanks for all of your help in advance. #loop to spit out PDFs list.names <- as.character(unique(braggxsec[,"Creek"])) for(i in 1:length(list.names)){ pdf(paste("~/Desktop/base_pdf_xsec/", list.names[i], ".pdf", sep="")) qplot(measurment_num, value , data=subset(braggxsec.melt, Creek==list.names[i]), colour=variable, geom="line", xlab="meters across the channel", ylab="meters from bankfull", col="black", linetype=variable, main=list.names[i])+facet_grid(station~Creek)+scale_y_reverse(breaks=break...
2010 Feb 04
1
for loop with if statment problem
....06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.09, 0.18, 0.18, 0.18), measurment_num = c(1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L, 11L, 12L, 13L, 14L, 15L, 16L, 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,...