[R] how can get rid of the level in the table

From: Cuichang Zhao <cuiczhao_at_yahoo.com>
Date: Fri 15 Apr 2005 - 16:11:50 EST

1. when i get a column data from a table, it always follows with the level. for exmaple if i have a table = (v1, v2), and table$v1 = (1, 2, 3); and col1 <- table$v1; then there is level assign to the table, with 1 is level1 and 2 is level2 3 is level3 ect. however, when are want to get col1[3], which is 3, by when i add the col1[3] to a list, the is actually appears as 33 instead of because the level for 3 is 3. In fact, the data i want is 3 not 33, so i don't want any levels come with the data each time when read from the column in the table. how can i do that?  

2. how can i read from a file from a specific folder, and how i create a folder and write a file to that folder?    

Thank you very much.  


April 14,2005

        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Apr 17 12:14:48 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:13 EST