Re: [R] use switch or function in connecting different cases.

2016-04-25 Thread David L Carlson
gy Texas A&M University College Station, TX 77840-4352 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of s ji Sent: Monday, April 25, 2016 11:17 AM To: r-help@r-project.org Subject: Re: [R] use switch or function in connecting different cases. This

Re: [R] use switch or function in connecting different cases.

2016-04-25 Thread s ji
This is my current work.Now i am trying to use a function to do the normal distribution simulation. rm(list=ls()) t <- u<- mann<- rep(0, 45) Nsimulation<-function(S1,S2,Sds,nSims) { set.seed(1) for (sim in 1:nSims) { matrix_t <-matri