transform_xifti: Apply a univariate transformation to a '"xifti"' or pair of...

Description Usage Arguments Details Value See Also

View source: R/transform_xifti.R

Description

Apply a univariate transformation to each value in a "xifti" or pair of "xifti"s. If a pair, they must share the same dimensions (brainstructures) and number of measurements.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
transform_xifti(xifti, FUN, xifti2 = NULL, ...)

## S3 method for class 'xifti'
xifti + xifti2

## S3 method for class 'xifti'
xifti - xifti2

## S3 method for class 'xifti'
xifti * xifti2

## S3 method for class 'xifti'
xifti ^ xifti2

## S3 method for class 'xifti'
xifti %% xifti2

## S3 method for class 'xifti'
xifti %/% xifti2

## S3 method for class 'xifti'
xifti / xifti2

## S3 method for class 'xifti'
abs(x)

## S3 method for class 'xifti'
sign(x)

## S3 method for class 'xifti'
sqrt(x)

## S3 method for class 'xifti'
floor(x)

## S3 method for class 'xifti'
ceiling(x)

## S3 method for class 'xifti'
round(x, digits = 0)

## S3 method for class 'xifti'
exp(x)

## S3 method for class 'xifti'
log(x, base = exp(1))

Arguments

xifti

The xifti

FUN

The function. If xifti2 is not provided, it should be a univariate function like log or sqrt. If xifti2 is provided, it should take in two arguments, like `+` or pmax.

xifti2

The second xifti, if applicable. Otherwise, NULL (default)

...

Additional arguments to FUN

x

The "xifti"

digits

The number of digits to round by

base

The log base

Details

If the "xifti" had the dlabel intent, and the transformation creates any value that is not a label value (e.g. a non-integer), then it is converted to a dscalar.

Value

A "xifti" storing the result of applying FUN to the input(s). The data dimensions will be the same. The metadata of xifti will be retained, and the metadata of xifti2 will be discarded (if provided).

See Also

Other functions for manipulating 'xifti' objects: add_surf(), apply_xifti(), combine_xifti(), convert_to_dlabel(), merge_xifti(), newdata_xifti(), remove_xifti(), select_xifti()


neuroconductor/ciftiTools documentation built on Dec. 22, 2021, 1:09 a.m.