search for: data_dump_4

Displaying 1 result from an estimated 1 matches for "data_dump_4".

2007 Apr 08
0
locate nearest value in lookup table
...vector, and used that entry in the lookup table. Hoerver, This does not always produce logical results... here are the steps: # read in the data soil <- read.table("http://169.237.35.250/~dylan/temp/munsell-all.dat", header=T) x <- read.csv('http://169.237.35.250/~dylan/temp/data_dump_4-7-2007.csv', header=FALSE) # extract important variables X,Y,Z c <- data.frame(id=x$V1, X=x$V2, Y=x$V3, Z=x$V4) # convert munsell to XYZ soil$X <- soil$x * (soil$Y/soil$y) soil$Y <- soil$Y soil$Z <- (1 - soil$x - soil$y) * (soil$Y / soil$y) ## init some vars and try to find the...