Learn R Programming

YplantQMC (version 0.6-6)

readp: Reads the data from a .p file.

Description

Reads all data of the plant input file (.p) into a dataframe.

Usage

readp(pfile = NA)

Arguments

pfile
Name of the p file (a character string).

Value

Dataframe. The column names correspond to the labels in the .p file, but duplicates have a numeric subscript;
N
- node number
MN
- mother node
ste
- stem (1) or branch (2)
Lt
- leaf type
Az, Az.1, Az.2
- Azimuth of stem, branch, petiole and leaf.
An, An.1, An.2
- Angle of stem, branch, petiole and leaf.
L, L.1, L.2, L.3
- Length of stem, branch, petiole and leaf.
More detail on the leaf angles:
Az.3
- Leaf azimuth (azimuth angle of the normal to the leaf surface).
Or
- Leaf orientation (azimuth angle of the midrib).
An.3
- Leaf angle (angle between normal to the leaf surface and the z-axis).