lidR
useuses rlas
to read LAS/LAZ files. rlas
is a wrapper of LASlib
and LASzip
in R meaning that all the filterfilters in LAStools
are also in lidR
You can use filter = "-drop_class 2"
Check the documentation of readLAS
to find all the filters with :
readLAS(filter = "-help")