Re: [R] truncate row names

2008-04-24 Thread Henrique Dallazuanna
Try: cof <- full.t.ag$cov$coeff gsub("t.ag.X", "", names(cof)) On Thu, Apr 24, 2008 at 1:47 PM, Summer Nitely <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to truncate row names. Is that possible? > > I ran a regression with the covariates in a matrix, and in the results the > coefficients

[R] truncate row names

2008-04-24 Thread Summer Nitely
Hi, I would like to truncate row names. Is that possible? I ran a regression with the covariates in a matrix, and in the results the coefficients have the matrix name concatenated with the variable name: > full.t.ag <- Icens(lfirst_well, llast_well, lfirst_ill, formula=~ t.ag.X, breaks=t.ag.in