createRMolecule: createRMolecule

Description Usage Arguments Value Author(s) Examples

View source: R/utility.R

Description

Creates an \"Rmolecule\" from an atom-vector and a bond-matrix

Usage

1
  createRMolecule(atoms, bonds)

Arguments

atoms

A vector containing the symbol names of all atoms in the molecule

bonds

A matrix with the same number of rows and columns as the atoms-vector containing the type of bonds between the atoms

Value

an instance of "molecule"

Author(s)

Michael Mahr <rchemcpp@bioinf.jku.at>

Examples

1
m <- createRMolecule(c("C","C"),matrix(c(0,3,3,0),nrow=2))

Rchemcpp documentation built on May 6, 2019, 4:58 a.m.