A Linear Regression with Rstudio

Now, you are going to see how I create the linear regression with some exoplanets that I had found in the Nasa Web Side. With this is, I could be able to calculate the mass of my exoplanet (I will explain how to do it with some photos and the steps). This information is in the Nasa Web Side where we can found hundres of exoplanets, so this app (RStudio) make a linear regression with all this information. It produces that we can order all the exoplanets in order concording to the mass.
Exoplanet mass
With those photos, you only need to put the code in RStudio. Where finally,it will give you a coeficient, and we will be able to know the M⊕ of our exoplanet
Using this formula; log[y] = Zlog[x] where:
We have that the mass of our exoplanet is: x = y**(1/Z)
In my case, x = 3.67**(1/2.068) = 1.875 M⊕