0

I have generated a dataset from Qualtrics (tried the .sav and .csv options, and manually saving the .csv as .xlsx) and imported it (in the different versions) into R. When I ask R to define the objects in the tbl_df, it displays a long list of objects (including Q9021 below). When I try to get any information about individual objects (using basic commands like "class," "mode," "mean" etc.), I always get an error, e.g.:

"> class(Q9021) Error: object 'Q9021' not found"

What might be the problem here? Please help

KaC
  • 287
  • 1
  • 5
  • 19
  • Attach a sample of your data please, that would help us help you But judging from what you're saying I think you're unfamiliar with dataframes and dataframe syntax? Does `tbl_df$Q9021` give you what you want? – spinodal Mar 05 '18 at 19:29
  • My unfamiliarity with dataframes was indeed the problem. Attaching the dataframe solved the issue. Thank you for your response. – KaC Mar 05 '18 at 20:44
  • good to hear. Generally people avoid attaching dataframes, which is why I didn't mention it. This is a nice link: https://stackoverflow.com/questions/10067680/why-is-it-not-advisable-to-use-attach-in-r-and-what-should-i-use-instead – spinodal Mar 05 '18 at 22:05
  • 1
    There might also be some issues when importing the csv into R. See https://stackoverflow.com/questions/50314805/how-to-import-qualtrics-data-in-csv-format-into-r – JetLag May 15 '18 at 01:20

0 Answers0