P-value repetition

This is the code I'm using
p <- pnorm(abs(ctable[, "t value"]), lower.tail = FALSE) *2
(ctable <- cbind(ctable, "p value" = p))

My problem is that when I ran it the first time it worked great. It gave me the value, standard error, t-value, and p-value. If I clear the console and run it again it does everything but adds another identical p-value. It just keeps stacking up, so now I have like 25 p-values, all identical. Does this make sense?

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