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

From: Petr Pikal <petr.pikal_at_precheza.cz>
Date: Fri 15 Apr 2005 - 18:12:02 EST

   Hi

   The question is a bit messy.

   On 14 Apr 2005 at 23:11, Cuichang Zhao wrote:

> hello,

> 1. when i get a column data from a table, it always follows with the

   By table you mean table or data frame?

> 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,

   so v1 is a factor or not?

> 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,

   what 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?

   if v1 is a factor as.numeric(as.character(v1)) will make it numeric

>

> 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?

   what file?

   see read.*, write.*, source, sink, RODBC and other possible file    manipulation functions.

   and

> PLEASE do read the posting guide!

> http://www.R-project.org/posting-guide.html

   Cheers

   Petr

>

>

> Thank you very much.

>

> C-Ming

>

> 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

   Petr Pikal

   petr.pikal@precheza.cz



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 Fri Apr 15 18:20:32 2005

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