kvasilopoulos / uklr

Client to United Kingdom Land Registry
https://kvasilopoulos.github.io/uklr
GNU General Public License v3.0
7 stars 2 forks source link

bug #5

Open floswald opened 3 months ago

floswald commented 3 months ago
debug: res$amount <- as.numeric(res$amount)
Browse[2]> res
# A tibble: 4 × 1
  value                            
* <chr>                            
1 N13 5UR                          
2 1585560                          
3 2016-12-21                       
4 Additional price paid transaction

Browse[2]> n
Error in `$<-`:
! Assigned data `as.numeric(res$amount)` must be compatible with existing data.
✖ Existing data has 4 rows.
✖ Assigned data has 0 rows.
ℹ Only vectors of size 1 are recycled.
Caused by error in `vectbl_recycle_rhs_rows()`:
! Can't recycle input of size 0 to size 4.
Run `rlang::last_trace()` to see where the error occurred.
Warning message:
Unknown or uninitialised column: `amount`. 

i guess the error comes from the fact that there is just one transaction.

Browse[2]> res
# A tibble: 2 × 4
  postcode amount  date       category                         
* <chr>    <chr>   <chr>      <chr>                            
1 NW10 2JY 1400000 2015-07-31 Additional price paid transaction
2 NW10 2JY 42000   2017-12-21 Additional price paid transaction