search for: n_s

Displaying 2 results from an estimated 2 matches for "n_s".

Did you mean: _s
2012 May 06
2
Translation of matlab vectors code into r
...late som code for vectors in matlab to r. I have managed to translate the first 7 rows, but not the rest. Could anyone give me any suggestions for this problem?? Matlab code: tempo=[]; temps=[]; tempn=[]; tempao=[]; tempas=[]; tempan=[]; for k=1:5 tempo = [tempo n_o(k,:)]; temps = [temps n_s(k,:)]; tempn = [tempn n_n(k,:)]; tempao = [tempao nanst_o(k,:)]; tempas = [tempas nanst_s(k,:)]; tempan = [tempan nanst_n(k,:)]; end. This is the code that i?m trying to translate into r, so far i have managed to translate the first 7 rows into r, but not last 6 rows. R-Code:...
2005 Feb 04
1
(no subject)
...", rep(10, 11), ",", seq(20,120, by=10), ")")) >nsamA <- c(62, 83, 118, 151, 180, 201, 212, 215, 216, 217, 218) >nsamB <- c(65, 90, 128, 163, 190, 199, 209, 214, 215, 216, 218) >df0 <- data.frame(int, nsamA, nsamB) >df0 Since the interval [10, s) with n_s samples is nested in [10, t)with n_t sample for s < t, we know n_s - n_t samples exist in the interval [s, t). If this sample size of the difference is small I want to exclude the interval [10,s). This can be done comparing adjacent preceding rows using the following. > df0$itagA <- ifels...