Once you lot accept read information into R using table.read() equally described here, you lot tin too access each of the cells inward the ix chemical ingredient grid of the iii columns X iii rows yesteryear providing row in addition to column numbers.
You defined the tabular array equally shown here:
You tin access row1, column i using this code:
-----------
> df[1, "Col1"]
[1] A
-----------
Using code like to the higher upward you lot tin access each chemical ingredient providing row pose out in addition to column pose out equally shown.
df[1, Col1] df[1, "Col2"] df[1, "Col3"]
df[2, Col1] df[2, "Col2"] df[2, "Col3"]
df[3, Col1] df[3, "Col2"] df[3, "Col3"]
You defined the tabular array equally shown here:
You tin access row1, column i using this code:
-----------
> df[1, "Col1"]
[1] A
-----------
Using code like to the higher upward you lot tin access each chemical ingredient providing row pose out in addition to column pose out equally shown.
df[1, Col1] df[1, "Col2"] df[1, "Col3"]
df[2, Col1] df[2, "Col2"] df[2, "Col3"]
df[3, Col1] df[3, "Col2"] df[3, "Col3"]
Komentar
Posting Komentar