Beginner Level Linear Regression Question

Hello!

I'm a laid off and currently unemployed manufacturing manager. Have been studying R via EdX and Datacamp.

I'm looking for support with troubleshooting a simple code exercise for Raphael Irizarry's linear regression course. Is this forum an okay place for soliciting feedback on a broken script?

Thank you! Hope you're all having a fun weekend!!

This is the wright place for asking R related coding questions, but in this specific case, please make sure to follow our homework policy.