search for: lithclass

Displaying 2 results from an estimated 2 matches for "lithclass".

2011 Jan 18
3
tips for looping over a category for beginner
...amples in each lithology class. this is how i'm doing it now: > tc = read.table(....) > attach(tc) > names(tc) tc = [1] "Well" "Depth" "Latitude" "Longitude" [5] "Formation" "Lithology" "LithClass" "CondUncert" [9] "sample.ID" "Conductivity" "Density" "Porosity" > plot(Depth[LithClass=='sand'], Conductivity[LithClass=='sand']) (ad nauseum... how can I loop through them all?) and ... > boxplot(Co...
2011 Jan 19
1
Using subset to filter data table
I am having difficulty understanding how I would constrain a data set by filtering out 'records' based on certain criteria. Using SQL I could query using 'select * from my.data where LithClass in ('sand', 'clay')' or some such. Using subset, there seem to be ghosts left behind (that is, all of the LithClass *.Labels* remain after subset) > dput(tcc) structure(list(Density = c(1.84, 1.91, 2, NA, 1.95, 2.04, 2.11, 1.85, 1.97, 2, 2.27, NA, NA, 2.18, NA, NA, 1.9, 2....