decisionpatterns / sticky

Persist attributes through data manipulations
Other
21 stars 2 forks source link

Subsetting broken on sticky data.frames #5

Open ezwelty opened 7 years ago

ezwelty commented 7 years ago

Thanks for this package. I'm playing around with it in http://github.com/ezwelty/dpkg, but ran into this issue.

Here's a simple example:

df <- data.frame(x = 1:2, y = 1:2)
df <- sticky::sticky(df)
df[1, ]

sticky: data.frame x y 1 1 1 2 Warning message: In format.data.frame(x, digits = digits, na.encode = FALSE) : corrupt data frame: columns will be truncated or padded with NAs

FYI:

R.version _
platform x86_64-apple-darwin15.6.0
arch x86_64
os darwin15.6.0
system x86_64, darwin15.6.0
status
major 3
minor 3.3
year 2017
month 03
day 06
svn rev 72310
language R
version.string R version 3.3.3 (2017-03-06) nickname Another Canoe