How to install data from a downloaded PDF into RStudio.

I am trying to install downloaded data for a homework assignment in RStudio and I am getting the message "File is binary rather than text so cannot be opened by the source editor." I am unsure if I am even trying to install it right. Any help would be greatly appreciated. Thank you.

The terminology you are using is a little confusing, you can't "install" a pdf file, maybe you mean you are trying to read data from a pdf? To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

I am new to R so I am not sure if install is the correct word. I know I need to "run" it in RStudio. I hope the below is what you are asking for:

file.choose()
[1] "C:\Users\justi\Downloads\Assignment 1 data (SPSS).sav"
Warning messages:
1: In read.table(path, encoding = encoding, header = header, sep = sep, :
line 1 appears to contain embedded nulls
2: In read.table(path, encoding = encoding, header = header, sep = sep, :
line 2 appears to contain embedded nulls
3: In scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
embedded nul(s) found in input
4: 'default.stringsAsFactors' is deprecated.
Use 'stringsAsFactors = FALSE' instead.
See help("Deprecated")

I appears that you are trying to import an SPSS file.

Have a look at How to Import SPSS Files into R (Step-by-Step) - Statology

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.