bondblock {ChemmineR} | R Documentation

## Return bond block

### Description

Returns bond block(s) from an object of class SDF or SDFset.

### Usage

    bondblock(x)

### Arguments

`x` | object of class `SDF` or `SDFset`

### Details

...

### Value

`matrix` if `SDF` is provided or `list` of matrices if `SDFset` is provided

### Author(s)

Thomas Girke

### References

...

### See Also

`header`, `atomcount`, `atomblock`, `datablock`, `cid`, `sdfid`

### Examples

    ## SDF/SDFset instances
    data(sdfsample)
    sdfset <- sdfsample
    sdf <- sdfset[[1]]

    ## Extract bond block
    bondblock(sdf)
    bondblock(sdfset[1:4])

    ## Replacement methods
    sdfset[[1]][[3]][1,1] <- 999
    sdfset[[1]]
    bondblock(sdfset)[1:2] <- bondblock(sdfset)[3:4]
    bondblock(sdfset[[1]]) == bondblock(sdfset[[3]])
    view(sdfset[1:2])

[Package ChemmineR version 3.40.0 Index]