New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column name "sep" #115

Closed
move bot opened this Issue May 24, 2018 · 2 comments

Comments

Projects
0 participants
@move

move bot commented May 24, 2018

@lwiklendt commented on Mar 5, 2018, 2:38 AM UTC:

Problem with using "sep" as a column name.

> tibble(a=1:3, Sep=1:3)  # upper-case "Sep" works fine
# A tibble: 3 x 2
      a   Sep
  <int> <int>
1     1     1
2     2     2
3     3     3
> tibble(a=1:3, sep=1:3)  # problem with lower-case "sep".
# A tibble: 3 x 2
   sep    a
   sep<int>
1    1    1
2    1    2
3    1    3

This issue was moved by krlmlr from tidyverse/tibble/issues/390.

@move

This comment has been minimized.

move bot commented May 24, 2018

@jennybc commented on Mar 5, 2018, 4:57 PM UTC:

The problem appears to be in the printing, not defining the object.

library(tibble)

df <- tibble(a = 1:3, sep = 4:6)
df
#> # A tibble: 3 x 2
#>    sep    a
#>    sep<int>
#> 1    4    1
#> 2    4    2
#> 3    4    3
glimpse(df)
#> Observations: 3
#> Variables: 2
#> $ a   <int> 1, 2, 3
#> $ sep <int> 4, 5, 6
df[[1]]
#> [1] 1 2 3
df[[2]]
#> [1] 4 5 6
df$a
#> [1] 1 2 3
df$sep
#> [1] 4 5 6

Created on 2018-03-05 by the reprex package (v0.2.0).

@move

This comment has been minimized.

move bot commented May 24, 2018

@krlmlr commented on Mar 19, 2018, 12:45 AM UTC:

Indeed:

pillar::colonnade(list(a = 1, sep = 3))
#>    sep    a
#>    sep<dbl>
#> 1   3\.   1.

Created on 2018-03-19 by the reprex package (v0.2.0).

@move move bot referenced this issue May 24, 2018

Closed

Column name "sep" #390

@krlmlr krlmlr added this to To Do in krlmlr May 24, 2018

@krlmlr krlmlr closed this in 645d50c May 24, 2018

krlmlr automation moved this from To Do to Done May 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment