Skip to content

data_frame does not recycle when the argument to recycle is the first argument. #680

@jimhester

Description

@jimhester

I would expect the following to be a data frame with 10 rows, and two columns, however data_frame returns only one row.

data_frame(x = 'hi', x = runif(10))

However this works correctly if the recycled column is not the first

data_frame(x = runif(10), y = 'hi')

looking at dataframe.R#L67-L77 it looks like it should be working regardless of the order. I will try and figure out what is going on.

Metadata

Metadata

Assignees

Labels

featurea feature request or enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions