'Calculating significance of two variables in a dataset for every column

I would like to find out how to create a column of p-values to check the significance of the variable for every observation. I would like to check the p values for the two columns on the right side of the data set. I think the most efficient way to do so is to calculate a t.test for every column but i don't know how to do so.

This is what i tried. But this didn't give me the significance of every table.

t.test(Elasapp,Elashuis,var.equal=TRUE)

Results:

Two Sample t-test

data:  Elasapp and Elashuis
t = 41.674, df = 48860, p-value \< 2.2e-16
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
0\.07461778 0.08198304
sample estimates:
mean of x   mean of y
0\.085672044 0.007371636


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source