Nome, P1, P2, EP1, EP2, EP3 Andre, 6.5, 7.5, 9.0, 8.7, 7.5 Bel , 5.5, 6.5, 6.8, 7.0, 7.5 Cris, 8.5, 9.5, 10.0, 10.0, 9.5
dirTrab <- "/o caminho até o diretorio/" setwd(dirTrab) planilha <- read.csv("nota.csv") print(planilha)
Nome P1 P2 EP1 EP2 EP3 1 Andre 6.5 7.5 9.0 8.7 7.5 2 Bel 5.5 6.5 6.8 7.0 7.5 3 Cris 8.5 9.5 10.0 10.0 9.5
Nome,P1,P2,EP1,EP2,EP3 Andre,6.5,7.5,9.0,8.7,7.5 Bel,5.5,6.5,6.8,7.0,7.5 Cris,8.5,9.5,10.0,10.0,9.5
A siada vai ser o mesmo do anterior.
Nome, P1, P2, EP1, EP2, EP3 Andre, 6.5, 7.5, 9.0 Bel, 5.5, 6.5, 6.8 Cris, 8.5, 9.5, 10.0
Nome P1 P2 EP1 EP2 EP3 1 Andre 6.5 7.5 9.0 NA NA 2 Bel 5.5 6.5 6.8 NA NA 3 Cris 8.5 9.5 10.0 NA NANA é ausência de dado.
Nome, P1, P2, EP1, EP2, EP3 Andre, 6.5, 7.5, 9.0, 8.7, 7.5 Bel , 5.5, 6.5, 6.8, 7.0, 7.5 Cris, 8.5, 9.5, 10.0, 10.0, 9.5
dirTrab <- "/o caminho até o diretorio/" setwd(dirTrab) planilha <- read.csv("nota.csv") planilha['P'] <- NA planilha['EP'] <- NA print(planilha)
Nome P1 P2 EP1 EP2 EP3 P EP 1 Andre 6.5 7.5 9.0 8.7 7.5 NA NA 2 Bel 5.5 6.5 6.8 7.0 7.5 NA NA 3 Cris 8.5 9.5 10.0 10.0 9.5 NA NA
1 Andre 6.5 7.5 9.0 8.7 7.5 NA NA
planilha[1,7] <- (planilha[1,2] + planilha[1,3])2 print(planilha)
Nome P1 P2 EP1 EP2 EP3 P EP 1 Andre 6.5 7.5 9.0 8.7 7.5 7.0 NA 2 Bel 5.5 6.5 6.8 7.0 7.5 NA NA 3 Cris 8.5 9.5 10.0 10.0 9.5 NA NA
Nome, P1, P2, EP1, EP2, EP3 Andre, 6.5, 7.5, 9.0, 8.7, 7.5 Bel , 5.5, 6.5, 6.8, 7.0, 7.5 Cris, 8.5, 9.5, 10.0, 10.0, 9.5
dirTrab <- "/o caminho até o diretorio/" setwd(dirTrab) planilha <- read.csv("nota.csv") planilha['P'] <- (planilha[P1] + planilha[P2])/2 print(planilha)
Nome P1 P2 EP1 EP2 EP3 P 1 Andre 6.5 7.5 9.0 8.7 7.5 7.0 2 Bel 5.5 6.5 6.8 7.0 7.5 6.0 3 Cris 8.5 9.5 10.0 10.0 9.5 9.0