0

In spite of having the packages "rLiDAR" and "lidR" already installed in my computer, and having R Studio updated, when I use the function readLAS(), it doesn´t work. What could be the problem?

My line of code:

LAS<-readLAS(lasfile,short=TRUE)
Error: could not find function "readLAS"
JRR
  • 3,024
  • 2
  • 13
  • 37
Ric_02
  • 1
  • 1

1 Answers1

1

Looks like the package is probably not installed properly and/or the required magrittr package is missing (if you are using lidR).

install.packages("lidR")
install.packages("magrittr")
library(lidR)
las = readLAS("yourpath/yourfile.las")
summary(las)

I'm pretty sure the short=TRUE option is only available in the rLidar package, not lidR.

https://cran.r-project.org/web/packages/lidR/lidR.pdf

https://cran.r-project.org/web/packages/rLiDAR/rLiDAR.pdf

stukrause
  • 11
  • 1