-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from hadley/feature/19-remove-ellipsis
- Reworked output: More concise summary, removed empty line, showing number of hidden rows and columns (#51).
- Loading branch information
Showing
24 changed files
with
272 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
as_unknown_rows <- function(x) { | ||
x <- as_data_frame(x) | ||
class(x) <- c("unknown_rows", class(x)) | ||
x | ||
} | ||
|
||
dim.unknown_rows <- function(x) { | ||
c(NA_integer_, length(x)) | ||
} | ||
|
||
registerS3method("dim", "unknown_rows", dim.unknown_rows) | ||
|
||
head.unknown_rows <- function(x, n) { | ||
head(as.data.frame(x), n) | ||
} | ||
|
||
registerS3method("head", "unknown_rows", head.unknown_rows) | ||
|
||
type_sum.unknown_rows <- function(x) "unknown_rows" | ||
|
||
registerS3method("type_sum", "unknown_rows", type_sum.unknown_rows) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
Source: local data frame [3 x 8] | ||
|
||
<tibble [3 x 8]> | ||
a b c d | ||
<dbl> <int> <lgl> <chr> | ||
1 1.0 1 TRUE a | ||
2 2.5 2 FALSE b | ||
3 NA NA NA <NA> | ||
Variables not shown: e | ||
<fctr>, f <date>, g <time>, | ||
h <list>. | ||
... with 4 more variables: | ||
e <fctr>, f <date>, | ||
g <time>, h <list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<tibble [3 x 8]> | ||
a b c d | ||
<dbl> <int> <lgl> <chr> | ||
1 1 1 TRUE a | ||
... with 2 more rows, and 4 | ||
more variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
a b c d | ||
<dbl> <int> <lgl> <chr> | ||
1 1 1 TRUE a | ||
.. ... ... ... ... | ||
Variables not shown: e | ||
<fctr>, f <date>, and 2 | ||
more <...>. | ||
<tibble [3 x 8]> | ||
a b c d | ||
<dbl> <int> <lgl> <chr> | ||
1 1 1 TRUE a | ||
... with 2 more rows, and 4 | ||
more variables: e <fctr>, | ||
f <date>, ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
|
||
|
||
tibble [3 x 8] | ||
|
||
|a |b |c |d |e |f | | ||
|:-----|:-----|:-----|:-----|:------|:----------| | ||
|<dbl> |<int> |<lgl> |<chr> |<fctr> |<date> | | ||
|1.0 |1 |TRUE |a |a |2015-12-10 | | ||
|2.5 |2 |FALSE |b |b |2015-12-11 | | ||
|NA |NA |NA |<NA> |NA |NA | | ||
|
||
(_Variables not shown_: g <time>, h <list>) | ||
(with 2 more variables: g <time>, h <list>) |
Oops, something went wrong.