Hello all,

I have a fairly simple data manipulation question. Say I have a dataframe
like this:

dat <- as.data.frame(runif(7, 3, 5))
dat$cat <- factor(c("1","4","13","1","4","13","13A"))

dat
  runif(7, 3, 5) cat
1       3.880020   1
2       4.062800   4
3       4.828950  13
4       4.761850   1
5       4.716962   4
6       3.868348  13
7       3.420944 13A

Under the dat$cat variable the 13A value is an analytical replicate. For my
purposes I would like to drop all values that are not an integer (i.e. 13A)
from the dataframe. Can anyone recommend a way to drop all rows where the
cat value is a non-integer?

Sorry for the simple question and thanks in advance.

Sam
-- 
*****************************************************
Sam Albers
Geography Program
University of Northern British Columbia
3333 University Way
Prince George, British Columbia
Canada, V2N 4Z9
phone: 250 960-6777
*****************************************************

	[[alternative HTML version deleted]]

