
Obrigado Rubem, Solução: rm(list=ls(all=TRUE)) ## dados artificiais da <- expand.grid(trat=rep(paste(LETTERS[1:5]),10), tempo=1:3) da$y1 <- rnorm(da$trat) classificacao <- data.frame(trat=LETTERS[1:5], classf=c(0.5, 0.5, 0.0, 0.1, 0.7)) merge(da, classificacao, by = 'trat') On 08/01/2015 16:02, Rubem Kaipper Ceratti wrote:
merge(da, classificacao, by = 'trat'
-- ====================================================================== Alexandre dos Santos Proteção Florestal IFMT - Instituto Federal de Educação, Ciência e Tecnologia de Mato Grosso Campus Cáceres Caixa Postal 244 Avenida dos Ramires, s/n Bairro: Distrito Industrial Cáceres - MT CEP: 78.200-000 Fone: (+55) 65 8132-8112 (TIM) (+55) 65 9686-6970 (VIVO) e-mails:alexandresantosbr@yahoo.com.br alexandre.santos@cas.ifmt.edu.br Lattes: http://lattes.cnpq.br/1360403201088680 ====================================================================== --- Este email foi escaneado pelo Avast antivírus. http://www.avast.com