search for: tempa

Displaying 15 results from an estimated 15 matches for "tempa".

Did you mean: temp
2006 Nov 16
1
getting a title in a plot during an lapply
In my code below tempa and tempb are numeric vectors that I combined into a dataframe along with the deciles of tempa. I have an lapply statement that goes through the dataframe and does ten plots according to the appropriate decile. The code is below and it works fine. There are no bugs so I figure there was no need to...
2010 Aug 05
2
[Bug 29403] New: [nvac] attempting to use displayport freezes machine
...; (https://bugs.freedesktop.org/attachment.cgi?id=37579) dmesg output from startup I've got a MacBookAir2,1 with an NVAC/9400M. LVDS works fine with the patch from bug #29171, but whenever I plug my Dell 2407FPW in via a mini-DP -> DVI adaptor, my log quickly fills up with: Aug 5 16:21:09 tempa kernel: [drm] nouveau 0000:02:00.0: plugged DisplayPort-1 Aug 5 16:21:10 tempa kernel: [drm] nouveau 0000:02:00.0: 0xC542: parsing clock script 0 Aug 5 16:21:10 tempa kernel: [drm] nouveau 0000:02:00.0: 0xBC68: parsing clock script 1 Aug 5 16:21:10 tempa kernel: [drm] nouveau 0000:02:00.0: unplu...
2006 Jun 26
2
probably need to se sapply but i can't get it
Hi : I think I need to use sapply but I can't figure this out. Suppose I have two vectors : tempa ( 4, 6,10 ) and tempb ( 11,23 ,39 ) I want a function that returns 4:11,6:23 and 10:39 as vectors. I tried : sapply(1:length(tempa) function (z) seq(tempa[z],tempb[z]) but i got 3 really strange vectors back in the sense that the numbers in them did not make no sense to me. obviously, i mu...
2006 Jan 23
1
will vectorization help in this case?
...: =========================================================== for(l in 1:L) { flst=list(Pzu, Pzi, array(Puzu[,as.character(r[[l,"u"]])], dim=dim(Puzu)[1], dimnames=dimnames(Puzu)[1]), array(Pizi[,as.character(r[[l, "i"]])], dim=dim(Pizi)[1], dimnames=dimnames(Pizi)[1]) ); tempa = 1; for(j in 1:length(flst)) tempa = tempa %X% flst[[j]]; tempPzu = apply(tempa, 1, sum); tPzu = tPzu + tempPzu; tPuzu[,as.character(r[[l,"u"]])] = tPuzu[,as.character(r[[l,"u"]])] + tempPzu; tempPzi = apply(tempa, 2, sum); tPzi = tPzi + tempPzi; t...
2012 May 06
2
Translation of matlab vectors code into r
Hi there I am new user of r, i would need some help to translate 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,...
2006 Jun 27
1
related to my previous sapply question]
in my previous post in which i asked about creating sequences from two vectors of numbers, all suggestions worked. tradevectors<-mapply(seq,from=tempa,to=tempb) or tradevectors<-sapply(1:length(tempa),function(x) seq(tempa[x],tempb[x]) >both return a list with 3 components. the problem is that i want to take these 3 sequences and use them as the indices of two other vectors, X and Y and mutiply them ( element by element ) >so, i...
2011 Aug 01
4
Use dump or write? or what?
...it to file calculate another set and append, repeat. But I can't figure out how to write it to file and then append subsequent t-tests. (maybe too tired ;} ) I have tried to use "dump" and "file.append" to no avial. ttest_results = tempfile() two_sample_ttest <- t.test (tempA, tempB, var.equal = TRUE) welch_ttest <- t.test (tempA, tempB, var.equal = FALSE) dump (two_sample_ttest, file = "dumpdata.txt"", append=TRUE) ttest_results <- file.append (ttest_results, two_sample_ttest) Any suggestions, M -- Matt Curcio M: 401-316-5358 E: matt.curcio.r...
2008 Jun 04
2
converting a table to a dataframe or a matrix
...(-1,-0.75]", "(-0.75,-0.5]", "(-0.5,-0.25]", "(-0.25,0]", "(0,0.25]", "(0.25,0.5]", "(0.5,0.75]", "(0.75,1]"), c("0", "1", "2")), .Names = c("", ""))) print(temp) tempa <- as.data.frame(temp) tempb <- as.matrix(temp) print(str(tempa)) print(str(tempb))
2006 Jun 28
2
hopefully my last question on lapply
Marc and many other people ( whose names escape me ) have been very helpful in explaining the use of lapply to me. In his last response, Marc explained that if tradevectors is a list of vectors of different lengths ( excuse my terminology ) then lapply(tradevectors,function(x) G[x]*B[x] ) will go through each component of the list as if it was a vector and apply the element by element
2009 May 15
4
replace "%" with "\%"
Dear all, I'm trying to gsub() "%" with "\%" with no obvious success. > temp1 <- c("mean", "sd", "0%", "25%", "50%", "75%", "100%") > temp1 [1] "mean" "sd" "0%" "25%" "50%" "75%" "100%" > gsub("%",
2012 May 30
1
caret() train based on cross validation - split dataset to keep sites together?
...?28.4 EXAMPLE SCRIPT FOR MODEL FITTING fitControl <- trainControl(method = "repeatedcv", number=10, repeats=3) tuning <- read.table("temptunegrid.txt",head=T,sep=",") tuning # # Model with 100 iterations registerDoMC(4) tempmod100its <- train(watmntemp~tempa + tempb + tempc + tempd + tempe + netarea + netbuffor + strmslope + netsoilprm + netslope + gwndx + mnaspect + urb + ag + forest + buffor + tempa7day + tempb7day + tempc7day + tempd7day + tempe7day + tempa30day + tempb30day + tempc30day + tempd30day + tempe30day, data = temp.train, method = &...
2008 Oct 22
4
A matrix automation problem
[I am really sorry if it is double posted, I doubt me previous post could not reach forum due to some problem with net] Suppose I have a matrix : a = matrix(1:9, 3) >From this matrix, I construct 9 additional matrices : i = 1:9 bi = a * i Now combining all those 9 new matrices, I construct a final metrix as : c = b1 b4 b7 b2 b5 b8 b3 b6 b8 I want to automate this procedure for any
2004 Feb 18
1
forwarding
...e to specify local and remote socket name just like for remote and local tcp port forwarding. Best regards, -- |/ |_, _ .- --, 2:480/135 at fido do ko?ca epoki unixa zosta?o |__ |_|. | \ |_|. ._' /_. 101:1000/135 at unholy 1070373572 sekund. ... Akcja oraz kiwi nabieraj? tempa...
2009 Jul 08
3
matching each row
I have two dataframes, the first column of each dataframe is a unique id number (the rest of the columns are data variables). I would like to figure out how many times each id number appears in each dataframe. So far I can use: length( match (dataframeA$unique.id[1], dataframeB$unique.id) ) but this only works on each row of dataframe A one-at-a-time. I would like to do this for all of
2009 Jul 09
2
How to Populate List
...es the unique id shows up in a given dataset.  my ideal outputs are as follows: countA is the "mystery operation" applied to dataA (counting occurrences within the same dataset) countB is applied to dataB (counting occurrences within a second dataset).  My best try so far is to do: tempA <- aggregate(dataA$unique.id,list(dataA$unique.id),length) which gives me a matrix with ONE instance of each unique.id and the counts... (and which I thought was kinda cute) but it only works for within a single dataset! tathta wrote: > > I have two dataframes, the first column of e...