to_cplx {fftab} | R Documentation |
Convert a fftab
Object Between Representations
Description
These functions convert a fftab
object to a specified representation:
-
to_cplx()
: Converts to complex representation (fx
). -
to_rect()
: Converts to rectangular representation (re
,im
). -
to_polr()
: Converts to polar representation (mod
,arg
).
Usage
to_cplx(x, .keep = "unused")
to_rect(x, .keep = "unused")
to_polr(x, .keep = "unused")
Arguments
x |
A |
.keep |
Specifies which columns to retain. See |
Details
-
to_cplx()
: Converts from rectangular (re
,im
) or polar (mod
,arg
) components to complex form. -
to_rect()
: Converts from complex (fx
) or polar components to rectangular form. -
to_polr()
: Converts from complex (fx
) or rectangular components to polar form.
Value
A modified fftab
object containing the specified representation:
-
to_cplx()
: Adds thefx
column for complex values. -
to_rect()
: Adds there
andim
columns for rectangular components. -
to_polr()
: Adds themod
andarg
columns for polar components.
See Also
Examples
fftab(c(1, 0, -1, 0)) |> to_cplx()
fftab(c(1, 0, -1, 0)) |> to_rect()
fftab(c(1, 0, -1, 0)) |> to_polr()