Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.27 KB | None | 0 0
  1. function(x, na.rm=FALSE){
  2.     if(!is.numeric(x)){
  3.         stop("argument nie jest wartością liczbową");
  4.     }
  5.     if(na.rm==TRUE){
  6.         x = na.omit(x, cols="x");
  7.     }
  8.     odch = sd(x);
  9.     sreadnia = mean(x);
  10.     wsp.zm = odch/srednia;
  11.     return(wsp.zm)
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement