[R] column to row
Neuro LeSuperHéros
neuro3000 at hotmail.com
Mon Aug 14 14:10:34 CEST 2006
>input <- matrix(1:10,5,2)
>input
[,1] [,2]
[1,] 1 6
[2,] 2 7
[3,] 3 8
[4,] 4 9
[5,] 5 10
>as.vector(input)
[1] 1 2 3 4 5 6 7 8 9 10
Neuro
>From: "yohannes alazar" <hannesalazar at gmail.com>
>To: r-help <r-help at stat.math.ethz.ch>
>Subject: [R] column to row
>Date: Mon, 14 Aug 2006 12:47:25 +0100
>
>Dear mailing list
>I have a data in two columns and how can i convert it to one row . thank
>you
>in advance
>
>inpute
>
>1 2
>3 4
>5 6
>7 8
>9 1
>
>
>out put
>
>1 2 3 4 5 6 7 8 9 1
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>R-help at 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
>and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list