daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print(DADOS)
  2.  
  3.  Linha  A   B   C   D   E
  4.  L1     4   3   2   2   4
  5.  L2     1   11  1   1   1
  6.  L3     0   1   2   3   4
  7.  L4     2   0   0   8   0
  8.      
  9. DADOS = DADOS %>%
  10. select(Linha:E) %>%
  11. mutate(Soma = (A+B+C+D+E)) %>%
  12. mutate(Média = Soma/5)
  13.      
  14. print(DADOS)
  15.  
  16.     Linha  A   B   C   D   E   Soma  Média
  17.     L1     4   3   2   2   4   15    3
  18.     L2     1   11  1   1   1   15    3
  19.     L3     0   1   2   3   4   10    2
  20.     L4     2   0   0   8   0   10    2
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top