library(crickdata)
library(aqm)
## 
## Attaching package: 'aqm'
## The following object is masked from 'package:stats':
## 
##     dt
ins<-crickdata::latest_innings(2019,41)
## Error in rbind(deparse.level, ...) : 
##   numbers of columns of arguments do not match
## Error in rbind(deparse.level, ...) : 
##   numbers of columns of arguments do not match
## Error in rbind(deparse.level, ...) : 
##   numbers of columns of arguments do not match
## Error in rbind(deparse.level, ...) : 
##   numbers of columns of arguments do not match
## Error in rbind(deparse.level, ...) : 
##   numbers of columns of arguments do not match
## Error in rbind(deparse.level, ...) : 
##   numbers of columns of arguments do not match
## Error in rbind(deparse.level, ...) : 
##   numbers of columns of arguments do not match
## Error in rbind(deparse.level, ...) : 
##   numbers of columns of arguments do not match
## Error in rbind(deparse.level, ...) : 
##   numbers of columns of arguments do not match
## Error in rbind(deparse.level, ...) : 
##   numbers of columns of arguments do not match
## Error in rbind(deparse.level, ...) : 
##   numbers of columns of arguments do not match
## Error in rbind(deparse.level, ...) : 
##   numbers of columns of arguments do not match
## Error in rbind(deparse.level, ...) : 
##   numbers of columns of arguments do not match
## Warning in crickdata::latest_innings(2019, 41): NAs introduced by coercion

## Warning in crickdata::latest_innings(2019, 41): NAs introduced by coercion
data("innings")
ins<-ins[,names(ins)%in% names(innings)]
library(dplyr)
innings<-dplyr::bind_rows(ins,innings)
## Warning in bind_rows_(x, .id): binding character and factor vector,
## coercing into character vector

## Warning in bind_rows_(x, .id): binding character and factor vector,
## coercing into character vector

## Warning in bind_rows_(x, .id): binding character and factor vector,
## coercing into character vector

## Warning in bind_rows_(x, .id): binding character and factor vector,
## coercing into character vector

## Warning in bind_rows_(x, .id): binding character and factor vector,
## coercing into character vector

## Warning in bind_rows_(x, .id): binding character and factor vector,
## coercing into character vector
innings %>% filter(Year==2019) %>%
dt()