-
Notifications
You must be signed in to change notification settings - Fork 37
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
Truncate additional variables after fixed number of lines #263
Comments
I think it would be useful to have a # A tibble: 3 x 91
user_id status_id created_at screen_name text source display_text_wi…
<chr> <chr> <dttm> <chr> <chr> <chr> <dbl>
1 14465607 567053242… 2015-02-15 20:10:02 AHMalcolm For every r… Twuffer 127
2 813286 266031293… 2012-11-07 04:16:18 BarackObama Four more y… Twitte… 37
3 15846407 440322224… 2014-03-03 03:06:13 TheEllenSh… If only Bra… Twitte… 81
# … with 84 more variables: reply_to_status_id <lgl>, reply_to_user_id <lgl>,
# reply_to_screen_name <lgl>, is_quote <lgl>, is_retweet <lgl>, favorite_count <int>,
# retweet_count <int>, quote_count <int>, reply_count <int>, hashtags <list>,
# symbols <list>, urls_url <list>, urls_t.co <list>, urls_expanded_url <list>,
# media_url <list>, media_t.co <list>, media_expanded_url <list>, media_type <list>, ... OTOH it's possible that this should actually be resolved in rtweet, which I'm exploring in ropensci-archive/rtweet#558. |
We should also resolve this here. |
Reprex: data <- tibble::tribble(
~A, ~B, ~C, ~D, ~E, ~F, ~G, ~H, ~I, ~J, ~K, ~L, ~M, ~N, ~O, ~P, ~Q, ~R, ~S, ~T, ~U, ~V, ~W, ~X, ~Y, ~Z, ~AA, ~AB, ~AC, ~AD, ~AE, ~AF, ~AG, ~AH, ~AI, ~AJ, ~AK, ~AL, ~AM, ~AN, ~AO, ~AP, ~AQ, ~AR, ~AS, ~AT, ~AU, ~AV, ~AW, ~AX, ~AY, ~AZ, ~BA, ~BB, ~BC, ~BD, ~BE, ~BF, ~BG, ~BH, ~BI, ~BJ, ~BK, ~BL, ~BM, ~BN, ~BO, ~BP, ~BQ, ~BR, ~BS, ~BT, ~BU, ~BV, ~BW, ~BX, ~BY, ~BZ, ~CA, ~CB, ~CC, ~CD, ~CE, ~CF, ~CG, ~CH, ~CI, ~CJ, ~CK, ~CL, ~CM, ~CN, ~CO, ~CP, ~CQ, ~CR, ~CS, ~CT, ~CU, ~CV, ~CW, ~CX, ~CY, ~CZ, ~DA, ~DB, ~DC, ~DD, ~DE, ~DF, ~DG, ~DH, ~DI, ~DJ, ~DK, ~DL, ~DM, ~DN, ~DO, ~DP, ~DQ, ~DR, ~DS, ~DT, ~DU, ~DV, ~DW, ~DX, ~DY, ~DZ, ~EA, ~EB, ~EC, ~ED, ~EE, ~EF, ~EG, ~EH, ~EI, ~EJ, ~EK, ~EL, ~EM, ~EN, ~EO, ~EP, ~EQ, ~ER, ~ES, ~ET, ~EU, ~EV, ~EW, ~EX, ~EY, ~EZ, ~FA, ~FB, ~FC, ~FD, ~FE, ~FF, ~FG, ~FH, ~FI, ~FJ, ~FK, ~FL, ~FM, ~FN, ~FO, ~FP, ~FQ, ~FR, ~FS, ~FT, ~FU, ~FV, ~FW, ~FX, ~FY, ~FZ,
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182
)
data
#> # A tibble: 1 x 182
#> A B C D E F G H I J K L M
#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 1 2 3 4 5 6 7 8 9 10 11 12 13
#> # … with 169 more variables: N <dbl>, O <dbl>, P <dbl>, Q <dbl>, R <dbl>,
#> # S <dbl>, T <dbl>, U <dbl>, V <dbl>, W <dbl>, X <dbl>, Y <dbl>, Z <dbl>,
#> # AA <dbl>, AB <dbl>, AC <dbl>, AD <dbl>, AE <dbl>, AF <dbl>, AG <dbl>,
#> # AH <dbl>, AI <dbl>, AJ <dbl>, AK <dbl>, AL <dbl>, AM <dbl>, AN <dbl>,
#> # AO <dbl>, AP <dbl>, AQ <dbl>, AR <dbl>, AS <dbl>, AT <dbl>, AU <dbl>,
#> # AV <dbl>, AW <dbl>, AX <dbl>, AY <dbl>, AZ <dbl>, BA <dbl>, BB <dbl>,
#> # BC <dbl>, BD <dbl>, BE <dbl>, BF <dbl>, BG <dbl>, BH <dbl>, BI <dbl>,
#> # BJ <dbl>, BK <dbl>, BL <dbl>, BM <dbl>, BN <dbl>, BO <dbl>, BP <dbl>,
#> # BQ <dbl>, BR <dbl>, BS <dbl>, BT <dbl>, BU <dbl>, BV <dbl>, BW <dbl>,
#> # BX <dbl>, BY <dbl>, BZ <dbl>, CA <dbl>, CB <dbl>, CC <dbl>, CD <dbl>,
#> # CE <dbl>, CF <dbl>, CG <dbl>, CH <dbl>, CI <dbl>, CJ <dbl>, CK <dbl>,
#> # CL <dbl>, CM <dbl>, CN <dbl>, CO <dbl>, CP <dbl>, CQ <dbl>, CR <dbl>,
#> # CS <dbl>, CT <dbl>, CU <dbl>, CV <dbl>, CW <dbl>, CX <dbl>, CY <dbl>,
#> # CZ <dbl>, DA <dbl>, DB <dbl>, DC <dbl>, DD <dbl>, DE <dbl>, DF <dbl>,
#> # DG <dbl>, DH <dbl>, DI <dbl>, … Created on 2021-05-25 by the reprex package (v2.0.0) |
An reprex with slightly longer variable names: names <- outer(letters[1:2], letters, paste0)
x <- setNames(as.list(seq_along(names)), paste0("a_long_variable_name_", names))
tibble::as_tibble(x)
#> # A tibble: 1 x 52
#> a_long_variable_na… a_long_variable_na… a_long_variable_na… a_long_variable_n…
#> <int> <int> <int> <int>
#> 1 1 2 3 4
#> # … with 48 more variables: a_long_variable_name_ac <int>,
#> # a_long_variable_name_bc <int>, a_long_variable_name_ad <int>,
#> # a_long_variable_name_bd <int>, a_long_variable_name_ae <int>,
#> # a_long_variable_name_be <int>, a_long_variable_name_af <int>,
#> # a_long_variable_name_bf <int>, a_long_variable_name_ag <int>,
#> # a_long_variable_name_bg <int>, a_long_variable_name_ah <int>,
#> # a_long_variable_name_bh <int>, a_long_variable_name_ai <int>,
#> # a_long_variable_name_bi <int>, a_long_variable_name_aj <int>,
#> # a_long_variable_name_bj <int>, a_long_variable_name_ak <int>,
#> # a_long_variable_name_bk <int>, a_long_variable_name_al <int>,
#> # a_long_variable_name_bl <int>, a_long_variable_name_am <int>,
#> # a_long_variable_name_bm <int>, a_long_variable_name_an <int>,
#> # a_long_variable_name_bn <int>, a_long_variable_name_ao <int>,
#> # a_long_variable_name_bo <int>, a_long_variable_name_ap <int>,
#> # a_long_variable_name_bp <int>, a_long_variable_name_aq <int>,
#> # a_long_variable_name_bq <int>, a_long_variable_name_ar <int>,
#> # a_long_variable_name_br <int>, a_long_variable_name_as <int>,
#> # a_long_variable_name_bs <int>, a_long_variable_name_at <int>,
#> # a_long_variable_name_bt <int>, a_long_variable_name_au <int>,
#> # a_long_variable_name_bu <int>, a_long_variable_name_av <int>,
#> # a_long_variable_name_bv <int>, a_long_variable_name_aw <int>,
#> # a_long_variable_name_bw <int>, a_long_variable_name_ax <int>,
#> # a_long_variable_name_bx <int>, a_long_variable_name_ay <int>,
#> # a_long_variable_name_by <int>, a_long_variable_name_az <int>,
#> # a_long_variable_name_bz <int> Created on 2021-06-02 by the reprex package (v2.0.0) |
Waiting for #339. |
- The new `pillar.max_footer_lines` option (default: 7) allows controlling the maximum number of footer lines shown. It is applied in addition to the existing `tibble.max_extra_cols` option (#263).
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary. |
Motivating example is data frames returned by tweetr:
The text was updated successfully, but these errors were encountered: