Tools and Settings
Content
Questions and Tasks
# 1.1. Load the data file as a tablet1 = read.table('C:\\Users\\janedoe\\Documents\\filename.dat', na.strings='.')# 1.2. Assign headings to the tabular data using the c() function to combine string values into a vectornames(t1) = c("chapter_id", "book_id", "avg_rating", "word_count", "reading_level", "reading_difficulty", "reading_minutes", "reading_likelihood") # 1.3. Review the headings and top 10 rows of the table to make sure that headings and data matchhead(t1, 10)
# 2.1. Load the lavaan librarylibrary(lavaan)