Function in R for Word and Line Count Table

Here I present a new function I created to find the count of lines and words in a text document and return them in the form of a table. It uses the wc “qdap” package in R as well as base R functions sum, nrow, as.numeric, and cbind. The Problem: How to find both the number of lines and the amount of words in a potentially large document using R

Goodness of Fit Measures Table APA for Factor Analysis

This post is for social science researchers and research psychologists who are doing factor analysis and want to create tables with fit measures in R. If you do not fit that very narrow audience you might not find this post interesting. The Problem: How to take the fit measures of multiple models and place them into a table (APA style) that can be put directly into a paper. The solution: