I'm trying to import some data into R and not having much luck grouping together rows of related data.
Example: There a set of problems such as {A, B, C, D}. Each problem has two variables of interest which are being measured: "x" and "y". Each variable is analysed in terms of some simple statistics: min, max, mean, stddev.
So, my input data has the form:
Min Max Mean StdDev
A
x 3 10 6.6 2.1
y 2 5 3.2 1.7
B
x 3 10 6.6 2.1
y 2 5 3.2 1.7
C
x 3 10 6.6 2.1
y 2 5 3.2 1.7
D
x 3 10 6.6 2.1
y 2 5 3.2 1.7
Is there any way to preserve the structure of this data in R? A similar problem is creating groups of columns (flip the table by 90 degrees to the right for example).