Suppose you want to create a blank data frame to receive the results of an adhesion test.
x<-data.frame(Distribuicao=c(NULL),p-value=c(NULL))
After the test, you have a vector with the results:
res.ad<-c("Gumbel", 0.9105)
To include the test results in the data frame I used rbind
:
x<-rbind(x,res.ad)
In the result, x loses the names of the variables "Distribution" and "p-value", and x is:
XGumbel X0.9105
Gumbel 0.9105
How best to store these results or how can I get around the variable names?