Displaying 1 result from an estimated 1 matches for "xkeep".
Did you mean:
keep
2004 Jul 30
1
Subsetting dataframe
Dear R-help,
I have a question on subsetting a dataframe and I searched all of R-help to no avail. Please view the following example dataframe:
# Example
> x <- factor(rep(c(1,2,3,4),2))
> y <- c(1,4,3,2,1,2,5,1,2)
> z <- c(10,12,18,21,24,32,34,12,23)
> test <- data.frame(x, y, z)
> test
x y z
1 1 1 10
2 2 4 12
3 3 3 18
4 4 2 21
5 1 1 24
6 2 2 32
7 3 5 34
8