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

error when executing glimpse() #1840

Closed
ConiVJ opened this issue May 16, 2023 · 1 comment
Closed

error when executing glimpse() #1840

ConiVJ opened this issue May 16, 2023 · 1 comment

Comments

@ConiVJ
Copy link

ConiVJ commented May 16, 2023

Hi, im learning R

In a class excercise, after downloading data, unzipping it and creating a one object, we executed glimpse, but i keep getting this error, i've started all over and it still comes up

glimpse(ordenes_compra) Rows: 1,711,475 Error in date_validate(): ! Corrupt Date with unknown type character. ℹ In file type-date-time.c at line 344. ℹ Install the winch package to get additional debugging info the next time you get this error. ℹ This is an internal error that was detected in the vctrs package. Please report it at https://github.com/r-lib/vctrs/issues with a reprex and the full backtrace. Backtrace: ▆ 1. ├─pillar::glimpse(ordenes_compra) 2. ├─pillar:::glimpse.data.frame(ordenes_compra) 3. │ └─pillar:::df_head(x, rows) 4. │ └─pillar:::vec_head(as.data.frame(x), n) 5. │ └─vctrs::vec_slice(x, seq_len(n)) 6. │ └─vctrs (local) <fn>() 7. │ └─vctrs::vec_proxy(x = x) 8. │ └─vctrs:::date_validate(x) 9. └─rlang:::stop_internal_c_lib(...) 10. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame)
--
 
| >

image
glimpse

@DavisVaughan
Copy link
Member

Corrupt Date with unknown type character.

This suggests one of the date columns in ordenes_compra is corrupt. The underlying storage type must be double, but it seems to be character, which is incorrect.

It seems like wherever you downloaded the data from needs to fix their dataset.

You may need to discuss this with your teacher if you are new to R, but I do think it is a bug on the data side, rather than on the vctrs side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants