tiff_to_mtx: Transformation of multiple-image TIFF files or arrays into a...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/tiff_to_mtx.R

Description

Transforms multiple-image TIFF files or 3D arrays into 2D matrices with a user-specified number of columns

Usage

1
tiff_to_mtx(data, columns)

Arguments

data

A character string indicating the name of a TIFF file or a 3D array

columns

The number of columns of the resulting matrix

Details

Creates a matrix with a user-specified number of columns and a number of rows equal to the total amount of points in 'data' divided by 'columns'.

Value

A matrix

Author(s)

Alejandro Linares

See Also

binMatrix

Examples

1
2
3
4
5
6
7
8
9
### Please navigate to
### (https://github.com/FCSlib/FCSlib/tree/master/Sample%20Data)
### to find this sample data

x <- readFileTiff("Example_file_name.tif")
class(x); dim(x)

x.m <- tiff_to_mtx(data = x, columns = 64)
class(x.m); dim(x.m)

FCSlib documentation built on Nov. 27, 2020, 5:09 p.m.

Related to tiff_to_mtx in FCSlib...