Linear Regression for only 1 line

I am brand new to R and I am struggling to find the right code for what I am trying to do.

Based on the following spreadsheet:
Census Data
I need to do a Linear Regression Model for just Nevada for 2010 to 2016 and then project the population for 2025.

This is probably extremely simple for someone familiar with R, but I can’t find a comparable example.

Could someone please help me with the code to be entered into Rstudio?

Thank you!

Hello, I think this link has good lesson on the use of lm

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.