fg_replace_meta {flowGraph} | R Documentation

## Replaces sample meta.

### Description

Replaces sample meta in a given flowGraph object.

### Usage

    fg_replace_meta(fg, meta)

### Arguments

`fg` | flowGraph object.
`meta` | A data frame containing meta data; see details in `flowGraph-class`.

### Value

A flowGraph object with an updated sample meta.

### See Also

`flowGraph-class` `fg_get_meta`

### Examples

     no_cores <- 1
     data(fg_data_pos30)
     fg <- flowGraph(fg_data_pos30$count, class=fg_data_pos30$meta$class,
                     prop=FALSE, specenr=FALSE,
                     no_cores=no_cores)
     head(fg_get_meta(fg))

     new_df <- fg_data_pos30$meta
     new_df$id[1] <- "newID"

     fg <- fg_replace_meta(fg, new_df)
     head(fg_get_meta(fg))

[Package flowGraph version 1.2.0 Index]