Guest User

Untitled

a guest
Oct 17th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. `enter code here`A3 <- TC_Sargento_Analysis %>%
  2. group_by(TYC) %>%
  3. summarise(Group = ifelse (Hi > .5*Qty) , "Buy any price" ,
  4. ifelse (Mid > .5*Qty) , "BUy mid price" , "Buy Low Price")
  5.  
  6. for(i in seq_along(a)[-c(1, n)]){
  7. ifelse(a[i] > .5*d[i])
  8. z[i] <- "Hi"}
  9.  
  10. for(i in seq_along(b)[-c(1, n)]){
  11. ifelse(b[i] > .5*d[i])
  12. Z[i] <- "Mid"
  13. Z[i] <- 'Low'
  14. }
  15. Z
  16. }
  17.  
  18. `enter code here`Class_Analysis(TC_Sargento_Analysis$Hi ,
  19. TC_Sargento_Analysis$Mid ,TC_Sargento_Analysis$Low
  20. TC_Sargento_Analysis$Qty)`
Add Comment
Please, Sign In to add comment