I have a data frame with 30 rows and 100 columns (X).
I would like to create a new data frame (Y) with specific rows from a larger data frame.
For example, I would like the data frame (Y) to contain rows 1 through 5, from 10 to 14 and 20.
I know I can use the code:
Y<-X[1:5,]
and get the first five lines, but I can't develop similar code to get lines 1: 5, 10:14 and 20.
Steve weitz
source share