Macro extendr_api::data_frame

source ยท
macro_rules! data_frame {
    () => { ... };
    ($($rest: tt)*) => { ... };
}
Expand description

Create a dataframe.

Example:

use extendr_api::prelude::*;
test! {
    let mydata = data_frame!(x=1, y=2);
    assert_eq!(mydata.inherits("data.frame"), true);
    //assert_eq!(mydata, r!(List::from_pairs(vec![("x", r!(1)), ("y", r!(2))])).set_class(&["data.frame"])?);
}

Panics on error.