read_text: read_text

View source: R/read_text.R

read_textR Documentation

read_text

Description

Read .txt, .tab, .data (text) file.

Usage

read_text(
  filename,
  delimiter = NULL,
  first_column_names = NULL,
  dtype = "float32"
)

Arguments

filename

Data file, filename or stream.

delimiter

Delimiter that separates data within text file. If NULL, will split at arbitrary number of white spaces, which is different from enforcing splitting at single white space ' '.

first_column_names

Assume the first column stores row names.

dtype

Numpy data type.

Details

Same as read_csv() but with default delimiter NULL.

Examples

## Not run: 
ad <- read_text("matrix.tab")

## End(Not run)

anndata documentation built on March 31, 2023, 10:02 p.m.