4 rows and 15 columns -> 12 rows and 5 columns. BUT IT IS NOT A SIMPLE TRANSPOSE.
I have tried the t(), transpose function. But that is not what I need.
DF1 <- as.data.frame( t( DF0))
Input:
> DF1
V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 V14 V15
1 a01 b01 c01 d01 e01 f01 g01 h01 i01 j01 k01 l01 m01 n01 o01
2 a02 b02 c02 d02 e02 f02 g02 h02 i02 j02 k02 l02 m02 n02 o02
3 a03 b03 c03 d03 e03 f03 g03 h03 i03 j03 k03 l03 m03 n03 o03
4 a04 b04 c04 d04 e04 f04 g04 h04 i04 j04 k04 l04 m04 n04 o04
Expected:
> DF1
V1 V2 V3 V4 V5
1 a01 b01 c01 d01 e01
2 a02 b02 c02 d02 e02
3 a03 b03 c03 d03 e03
4 a04 b04 c04 d04 e04
5 f01 g01 h01 i01 j01
6 f02 g02 h02 i02 j02
7 f03 g03 h03 i03 j03
8 f04 g04 h04 i04 j04
9 k01 l01 m01 n01 o01
10 k02 l02 m02 n02 o02
11 k03 l03 m03 n03 o03
12 k04 l04 m04 n04 o04
Actual:
> DF1
V1 V2 V3 V4
V1 a01 a02 a03 a04
V2 b01 b02 b03 b04
V3 c01 c02 c03 c04
V4 d01 d02 d03 d04
V5 e01 e02 e03 e04
V6 f01 f02 f03 f04
V7 g01 g02 g03 g04
V8 h01 h02 h03 h04
V9 i01 i02 i03 i04
V10 j01 j02 j03 j04
V11 k01 k02 k03 k04
V12 l01 l02 l03 l04
V13 m01 m02 m03 m04
V14 n01 n02 n03 n04
V15 o01 o02 o03 o04