Expand description
Borrowed rows β R data.frame: IntoDataFrame for &[Row] and &Vec<Row>.
#[derive(DataFrameRow)] implements DataFrameRowBorrow on the row type
next to DataFrameRowConvert. The generated
fill walks the borrowed rows once into locals that have the companionβs own
column types, then runs the same column assembly code as the owned
conversion, so both produce the same frame. String and Option<String>
columns are written from &str (no String is cloned); every other value
is cloned once into its column.
Re-exportsΒ§
use super::BuiltDataFrame;πuse super::DataFrame;πuse super::DataFrameError;πuse super::IntoDataFrame;πuse crate::SexpExt as _;πuse crate::list::List;π
TraitsΒ§
- Data
Frame π»RowBorrow - Borrowed rows β
data.framecolumn list, emitted by#[derive(DataFrameRow)]on the row type. - String
Column π» - A
Stringcolumn the borrowed fill writes from&str.
FunctionsΒ§
- adopt_
column_ πlist - Root a freshly assembled column list as a
BuiltDataFrame, refusing the unclassed list the column engine returns for unnamed columns.