ref.remove {espadon}R Documentation

Deletion of a frame of reference in T.MAT

Description

The ref.remove function removes the management of a frame of reference in T.MAT.

Usage

ref.remove(ref.name, T.MAT)

Arguments

ref.name

Character string, pseudonym of the frame of reference to delete.

T.MAT

"t.mat" class object in which the ref.name frame of reference is to be deleted.

Value

Returns a "t.mat" class object, which no longer contains transfer matrices from or to the ref.pseudo ref.name.

See Also

ref.add

Examples

# Adding of the reference frame "ref1_60", which is a 60 degree rotation of 
# reference frame "ref1".
orientation <- c (cos (pi / 3), sin (pi / 3), 0, 
                  -sin (pi / 3), cos (pi / 3), 0)

local.Tmat <- ref.add (src.ref = "ref1", orientation = orientation,
                  new.ref.pseudo = "ref1_60")
str(local.Tmat)

# Removal of  "ref1_60"
local.Tmat <- ref.remove (ref.name =  "ref1_60", T.MAT = local.Tmat)
str(local.Tmat)

[Package espadon version 1.2.0 Index]