Search code examples
rsas

Import a large .sas7bdat file


I want to import a file named mret7018.sas7bdat in RStudio but I have two issues.

  • First I get a message that the file is too large to open in the source editor (1GB instead of the max 5MB).
  • Secondly I do not know what exactly the file type is.

Solution

  • Sounds like a file from SAS to me.

    Maybe try haven::read_sas(). Once its read into a data.frame it should be possible to proceed with regular R knowledge.