// NewRow creates an empty row with the columns as given and the data all set
// to the IsNA values
NewRow creates an empty row with the columns as given and the data all set
to the IsNA values
// NewRow creates an empty row with the columns as given and the data all set // to the IsNA values
func NewRow(cis ...ColInfo) (*Row, error) {
	mci, err := NewMultiColInfo(cis...)
	if err != nil {
		return nil, err
	}
	r := &Row{
		mci: *mci,
	}
	for _, ci := range mci.info {
		switch ci.colType {
		case ColTypeBool:
			r.rd.boolVals = append(r.rd.boolVals, BoolVal{IsNA: true})
		case ColTypeInt:
			r.rd.intVals = append(r.rd.intVals, IntVal{IsNA: true})
		case ColTypeFloat:
			r.rd.floatVals = append(r.rd.floatVals, FloatVal{IsNA: true})
		case ColTypeString:
			r.rd.stringVals = append(r.rd.stringVals, StringVal{IsNA: true})
		}
	}
	return r, nil
}
func NewRow ( cis ... ColInfo ) ( * Row , error ) { mci , err := NewMultiColInfo ( cis ... ) if err != nil { return nil , err } r := & Row { mci : * mci , } for _ , ci := range mci . info { switch ci . colType { case ColTypeBool : r . rd . boolVals = append ( r . rd . boolVals , BoolVal { IsNA : true } ) case ColTypeInt : r . rd . intVals = append ( r . rd . intVals , IntVal { IsNA : true } ) case ColTypeFloat : r . rd . floatVals = append ( r . rd . floatVals , FloatVal { IsNA : true } ) case ColTypeString : r . rd . stringVals = append ( r . rd . stringVals , StringVal { IsNA : true } ) } } return r , nil }
NewRow creates an empty row with the columns as given and the data all set
to the IsNA values
NewRow creates an empty row with the columns as given and the data all set to the IsNA values