combine_observations {Xcertainty} | R Documentation |
Combine parsed observations into a single parsed object
Description
Combine parsed observations, such as calibration and observation (whale) data into a single parsed object. This combined, single parsed object can then be used as the data input for one of the samplers.
Usage
combine_observations(...)
Arguments
... |
Parsed datasets to combine (i.e., outputs from
|
Value
outputs a list with four elements:
- pixel_counts
a tibble containing the measurements in pixels linked with Subject, Measurement description, Image, and the Timepoint
- training_objects
a tibble containing the Subject, Measurement, Length, and Timepoint. NULL if no training objects were included
- prediction_objects
a tibble containing the Subject, Measurement, and Timepoint. NULL if no prediction data included
- image_info
a tibble containing the Image, Barometer, Laser, FocalLength, ImageWidth, SensorWidth, and UAS
Examples
# load example wide-format data
data("calibration")
data("whales")
# parse calibration study
calibration_data = parse_observations(
x = calibration,
subject_col = 'CO.ID',
meas_col = 'Lpix',
tlen_col = 'CO.L',
image_col = 'image',
barometer_col = 'Baro_Alt',
laser_col = 'Laser_Alt',
flen_col = 'Focal_Length',
iwidth_col = 'Iw',
swidth_col = 'Sw',
uas_col = 'uas'
)
# parse field study
whale_data = parse_observations(
x = whales,
subject_col = 'whale_ID',
meas_col = 'TL.pix',
image_col = 'Image',
barometer_col = 'AltitudeBarometer',
laser_col = 'AltitudeLaser',
flen_col = 'FocalLength',
iwidth_col = 'ImageWidth',
swidth_col = 'SensorWidth',
uas_col = 'UAS',
timepoint_col = 'year'
)
# combine parsed calibration and observation (whale) data
combined_data = combine_observations(calibration_data, whale_data)
[Package Xcertainty version 1.0.1 Index]