Fairly new R user and learning through edx, so please be patient. I have a dataset that I have split into a training and testing set for machine learning and completed this process as normal with no issues. Even though there are no missing values in the original data when I try and run my code to regularize my model the script returns NAs as output. So I added na.rm = True in my a regularized model, and the model ran correctly.
My problem comes when I try to knit to a PDF. The na.rm = True causes an error and halts the process. If I remove the term it knits correctly but with NAs as the output.
Sorry about this. So, I have attempted to use reprex but because I am running R on a Linux server that isn't mine, I can't get the xclip to install and when I run reprex I get an error saying that X11 requires xclip, and I don't have access to install that.
No input provided and clipboard is not available.
Rendering reprex...
Clipboard on X11 requires 'xclip' (recommended) or 'xsel'.
Unable to put result on the clipboard'
For my original problem:
I have the following libraries installed:
@Yarnabrina I cannot thank you enough! I have spent the last two days trying to figure this out and of course, it was something simple. But that's what learning is about.