To answer your specific question, use results=hide
in your list of options.
<<echo=FALSE,results=hide>>=
campo = campos[1]
m1=coxph(Surv(TimeVar,EventVar)~Factor)
z=cox.zph(m1)
temp = print(x)
@
You can then access the temp
variable. A better solution is to pull out the parts of the z
object you need. So in your case, this would be:
##z is a list
z1 = z[[1]]
The variable z1
is a matrix that contains the information you need.