not able to regress a linear regression model, don't know what to put for data

`The instructions from my instructor are:

Regress lnyears on afro`

Insert a code chunk, then fit a simple linear regression model – regress lnyears on afro. Call the model slr1. Use the tidy() function to request the output.

When I try to code, I cannot understand what the correct command is and I cannot figure out what my data frame is: it keeps saying it is wrong.

Hi, welcome to the forum.

We are going to need a lot more information if we are going to help.

You need to read the RStudio Homework Policy and also have a look at FAQ Asking Questions

Do what @jrkrideau says. :smile:

Then look up the lm() function.