Skip to content
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

Printing sources should display succinct column info #23

Closed
hadley opened this issue Jun 12, 2013 · 0 comments
Closed

Printing sources should display succinct column info #23

hadley opened this issue Jun 12, 2013 · 0 comments

Comments

@hadley
Copy link
Member

hadley commented Jun 12, 2013

From Dave Cooper:

h = function(x, r=6, c=8) {
  if (is.null(dim(x))) {
    cat(format(x[1:min(r, length(x))], digits=2), '...')
    cat('\nlength=', length(x), ', class=', class(x), '\n', sep='')
  }
  else {
    print(x[1:min(r, nrow(x)), 1:min(c, ncol(x))], digits=2)
    cat('dim = (', dim(x)[1], ', ', dim(x)[2], '), class=', class(x), '\n', sep='')
@hadley hadley closed this as completed in 5f4b829 Aug 12, 2013
krlmlr referenced this issue in krlmlr/dplyr Mar 2, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jun 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant