I have a corpus which has 2000 files and in that 1-1000 is of class1 and 1001-2000 is of class-2. i am doing a classification program using ‘R’.but iam struck up after creating doc term matrix and data frame .iam unable to write a code to specify that 1-1000 goes to class1 and 1001-2000 goes to class-2.pls help me.