Learn R Programming

geoelectrics (version 0.2.2)

adjustHeight: Adjust Profile Height

Description

Adjusts the height of a single profile (adds a delta value to ALL data points). This is necessary if GPS measurement heights of two profiles differ systematically.

Usage

adjustHeight(object, delta)

# S4 method for Profile adjustHeight(object, delta)

Value

adjusted profile

Arguments

object

a single Profile.

delta

positive or negative value.

See Also

GpsCoordinates-class, Profile-class

Examples

Run this code
p3 <- new(
  "Profile",
  title = "Profile 3",
  processedData =
    new("ProcessedData",
        address = system.file("extdata/processed/p3_DipolDipol_S-N.xyz",
                  package='geoelectrics')),
  rawData =
    new("RawData",
        address = system.file("extdata/raw/p3_DipolDipol_S-N.dat",
                  package='geoelectrics')),
  measurementType = "DipolDipol",
  gpsCoordinates =
    new("GpsCoordinates",
        address = system.file("extdata/gps/p3.txt",
                  package='geoelectrics'))
)

p3 <- adjustHeight(p3, -10)

Run the code above in your browser using DataLab