Hola Eva,

Podrias intentar

levels(df[,1])

Saludos,
Jorge.-


2012/6/11 Eva Prieto Castro <>

> Hola, ¿qué tal?:
>
> Con el fichero In adjunto, realizo lo siguiente:
>
>
> > df <- read.table("In")
> > df
>   V1    V2 V3 V4 V5 V6
> 1  M Woman  5  6  7  8
> 2  H   Man  5  6  7  8
> > df[1]
>   V1
> 1  M
> 2  H
> > miC <- c("M", "H")
>
> La pregunta es: ¿Cómo obtengo miC a partir de df[1]?
>
> Gracias.
> Eva
>
>
> _______________________________________________
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>
>

	[[alternative HTML version deleted]]

