Here is my example data which was in a csv and imported in R.
Rowid parcel no crop area Area insured
1 122 cotton 0.9 1.2
2 111 soya 0.8 1.1
3 111 cotton 1.2 1.6
4 23 soya 0.7 1.5
5 45 cotton 0.23 1.3
6 45 soya 1.6 1.0
I would like to arrange it as
parcel no crop area Area insured crop area. Area insured
122 cotton 0.9 1.2
111 soya 0.8 1.1 cotton 1.2 1.6
23 soya 0.7 1.5
45 cotton 0.23 1.3 soya 1.6 .01
I am wandering how can I arrive on above mentioned results. Is there a possible way to do this in R? I have a very bulky data to be arranged in this manner