df.create {ANTs} R Documentation

## Creates an empty data frame or a list of empty data frames

### Description

Creates an empty data frame with as many columns as in the corresponding matrix.

### Usage

df.create(M, names = TRUE)


### Arguments

 M a square adjacency matrix or a list of square adjacency matrices. names a boolean, if true then a column is added in the data frame with the names of the matrix columns.

### Value

• if argument M is a matrix, then it creates a single empty data frame with as many rows as columns of the corresponding matrix.

• if the argument M is a list of matrices, it creates a list of empty data frames with as many rows as columns of the corresponding matrix in the list.

### Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez.

### Examples

sim.m
df.create(sim.m)


[Package ANTs version 0.0.16 Index]