Skip to content

vcat with different AbstractVectors #2326

Open
@tshort

Description

@tshort

Currently, vcat on AbstractArrays uses the first argument to determine the type of AbstractArray to use for the result. A nice feature would be to have some sort of promotion that determines the result. In the example below, it would be nice to have a way to define that both of them return a DataArray (from the DataFrames package).

julia> [DataVector[1,3], [1,2]]
4-element Int64 DataArray:
 1
 3
 1
 2

julia> [[1,2],DataVector[1,3]]
4-element Int64 Array:
 1
 2
 1
 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions