Importing and Saving Data and Results
Show the code
# Read data files into R. Files were downloaded from the resources site (CH.2) as .xls and I have converted them to .csv using the 'Save-As' command in MS Excel.
# Create a dataframe called `df_iq`
# Display the first 6 rows of `df_iq`
df_iq <- read.csv(file = "stepwise-efa-data/iq.csv")
head(df_iq) vocab1 designs1 similar1 matrix1 veranal2 vocab2 matrix2 designs2
1 113 124 118 122 116 115 127 105
2 100 95 115 97 121 102 106 112
3 124 115 122 116 117 109 119 118
4 125 110 124 130 114 115 126 127
5 103 89 109 91 106 102 101 97
6 88 113 89 110 96 88 109 111
References
Watkins, M. (2020). A Step-by-Step Guide to Exploratory Factor Analysis with R and RStudio (1st ed.). Routledge. https://doi.org/10.4324/9781003120001