Estimado Francisco

Hay una forma as.vector, por ejemplo (luego puedes usar como ya le suguieren):

> x <-c(1,2,3,4)
> y <-c(8,9,9,7)
> z <- data.frame(x,y)
> z
  x y
1 1 8
2 2 9
3 3 9
4 4 7
> as.vector(z)
  x y
1 1 8
2 2 9
3 3 9
4 4 7
> w <- as.vector(z)
> w[1]
  x
1 1
2 2
3 3
4 4
>

Javier Rubén Marcuzzi

De: Carlos Ortega
        [[alternative HTML version deleted]]

_______________________________________________
R-help-es mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-help-es

Responder a