search for: barradas

Displaying 20 results from an estimated 1296 matches for "barradas".

2018 Aug 05
2
Is this a bug in `[`?
Thanks. This is exactly the doubt I had. Rui Barradas ?s 05:26 de 05/08/2018, Kenny Bell escreveu: > This should more clearly illustrate the issue: > > c(1, 2, 3, 4)[-seq_len(4)] > #> numeric(0) > c(1, 2, 3, 4)[-seq_len(3)] > #> [1] 4 > c(1, 2, 3, 4)[-seq_len(2)] > #> [1] 3 4 > c(1, 2, 3, 4)[-seq_len(1)] > #&gt...
2012 Nov 14
5
aggregate combination data
Dear R users, I want to aggregate all *d *data from all combination of n *plots* taken by k. Thank very much! My data is like that: plot d 1 14 1 13 1 12 1 14 1 18 1 20 1 21 1 43 1 108 1 43 2 41 2 61 2 83 2 61 2 84 2 45 2 21 2 12 2 11 ... 100 10 100 12 -- --- Catalin-Constantin ROIBU Forestry engineer, PhD Forestry Faculty of Suceava
2018 Aug 04
3
Is this a bug in `[`?
?s 15:51 de 04/08/2018, I?aki ?car escreveu: > El s?b., 4 ago. 2018 a las 15:32, Rui Barradas > (<ruipbarradas at sapo.pt>) escribi?: >> >> Hello, >> >> Maybe I am not understanding how negative indexing works but >> >> 1) This is right. >> >> (1:10)[-1] >> #[1] 2 3 4 5 6 7 8 9 10 >> >> 2) Are these right? Th...
2023 Jan 27
3
Bug in R-Help Archives?
...than starting a fresh email, and in his attempts to hide that, was outsmarted by Outlook. This is based on references to domains such as yahoo.com, dcn.davis.ca.us, and precheza.cz in the header, which were all involved in the certification thread. -Deepayan On Fri, Jan 27, 2023 at 12:26 PM Rui Barradas <ruipbarradas at sapo.pt> wrote: > > ?s 06:39 de 27/01/2023, Rui Barradas escreveu: > > Hello, > > > > When consulting the R-Help Archives today I've noticed that the thread > > > > Pipe operator > > > > started by John Sorkin, Tue Jan 3 17:...
2013 Oct 31
1
Extracting values from a ecdf (empirical cumulative distribution function) curve
Hi R users, I am a new user, still learning basics of R. Is there anyway to extract y (or x) value for a known x (or y) value from ecdf (empirical cumulative distribution function) curve? Thanks in advance. Mano. [[alternative HTML version deleted]]
2016 Apr 15
0
aggregate combination data
Hello, I'm cc'ing R-Help. Sorry but your question was asked 3.5 years ago, I really don't remember it. Can you please post a question to R-Help, with a reproducible example that describes your problem? Rui Barradas ? Citando catalin roibu <catalinroibu at gmail.com>: > Dear Rui, > ? > I helped me some time ago with a code..... regarding aggregated data > from combination values. I solved partial the problem...I have one > single question. From combination I have a number of data fra...
2013 Jun 23
1
Scaling Statistical
Short question: Is it possible to use statistical tests, like the Augmented Dickey-Fuller test, in functions with for-loops? If not, are there any alternative ways to scale measures? Detailed explanation: I am working with time-series, and I want to flag curves that are not stationary and which display pulses, trends, or level shifts. >df DATE ID VALUE2012-03-06 1
2018 Aug 05
2
Is this a bug in `[`?
...R works (how programming languages work in general). Instead, the sequence is evaluated in the first place, and then the sign may apply as long as you provided something that can hold a sign. And an empty element has no sign, so the sign is lost. I?aki > > On Sun, Aug 5, 2018 at 3:58 AM Rui Barradas <ruipbarradas at sapo.pt> wrote: >> >> >> >> ?s 15:51 de 04/08/2018, I?aki ?car escreveu: >> > El s?b., 4 ago. 2018 a las 15:32, Rui Barradas >> > (<ruipbarradas at sapo.pt>) escribi?: >> >> >> >> Hello, >> >>...
2013 Jul 22
4
How to split two levels several times?
Hi, I have a small problem with the function split() and would appreciate your help. I have a table called ?XXX? with 2 columns and 49 rows. The 49 rows belong to 8 different levels (electrode1, ...,electrode8). I want to split the table always at the row where ?electrode1? starts again so that I can export 7 individual dataframes (numbered ?dataframe1? to ?dataframe7?) which contain always
2013 Jul 14
4
diallel analysis
sir i could not find the plant breeding libraray in Rgui3.0.0 [[alternative HTML version deleted]]
2018 Oct 07
4
Warning when calling formals() for `[`.
Hello, I don't see why you say that the documentation seems to be wrong: class(args(`+`)) #[1] "function" args() on a primitive does return a closure. At least in this case it does. Rui Barradas ?s 14:05 de 07/10/2018, Peter Dalgaard escreveu: > There is more "fun" afoot here, but I don't recall what the point may be: > >> args(get("+")) > function (e1, e2) > NULL >> args(get("[")) > NULL >> get("[") > .Primi...
2012 Nov 19
5
help on matrix column removal based on another matrix results
Hi everyone, now I am trying to finish writing the code (I had asked for assistance on subtracting arrays) This is what I what I am running in R: > source("/home/ie/Documents/TTU/GA_Research/GLUE/R-Project/R_GLUE_Example/NSEr.R") NSEr <- function (obs, sim) { {jjh <- (as.vector(obs) - sim)^2 Xjjhs <- apply(Xjjh, 2, sum) Yii <- (obs - mean(obs))^2 Yiis <- apply(Yii, 2,
2018 May 22
0
remove rows of a matrix by part of its row name
...As for the question, yes, it does. If you want to remove just the ones with exactly 73.1 use the pattern grep("^73\\.1$", etc) Explanation: Beginning of string: ^ End of string: $ Escape special characters: \\ (needed because the period is a special character.) Hope this helps, Rui Barradas On 5/22/2018 12:50 PM, Ahmed Serag wrote: > Thank you Mr. Barradas. The code works great. Unfortunately I have also > some labeles with > > > 173.1 > > 273.1 > > > the grep script remove them also ? > > Any ideas Plz, Thanks again > > > *******...
2013 Mar 19
4
How to get the t-stat for arima()?
Hello all, fit = arima() and Summary(fit) will give some summary of the fit. However, the t-stats are not shown in the summary. How can I get the t-stats of it? Thanks, Rebecca ---------------------------------------------------------------------- This message, and any attachments, is for the intended r...{{dropped:5}}
2012 Sep 27
3
Comparing density plots using same axes or same axes scale
Good Evening- I have a set of nine scenarios I want to plot to see how the distribution is changing, if one tail is getting larger in certain scenario, currently I am using this code colnames<-dimnames(sag_pdfs)[[2]] par(mfrow=c(3,3)) for(i in 1:9) { d<-density(sag[,i]) plot(d,type="n", main=colnames[i]) polygon(d,col="red",border="grey")} where sag is
2018 Aug 04
2
Is this a bug in `[`?
...his is right. (1:10)[-1] #[1] 2 3 4 5 6 7 8 9 10 2) Are these right? They are at least surprising to me. (1:10)[-0] #integer(0) (1:10)[-seq_len(0)] #integer(0) It was the last example that made me ask, seq_len(0) whould avoid an if/else or something similar. Thanks in advance, Rui Barradas
2018 Aug 05
0
Is this a bug in `[`?
This is Circle 8..1.13 of the R Inferno. On 05/08/2018 06:57, Rui Barradas wrote: > Thanks. > This is exactly the doubt I had. > > Rui Barradas > > ?s 05:26 de 05/08/2018, Kenny Bell escreveu: >> This should more clearly illustrate the issue: >> >> c(1, 2, 3, 4)[-seq_len(4)] >> #> numeric(0) >> c(1, 2, 3, 4)[-seq_len(3)...
2012 Aug 13
4
write.dbf error: invalid subscript type 'list'
Dear all, I am basically a GIS user and am new to R. I am trying to write a data frame to a dbf file. *n.simulations <- 999 binomial <- kulldorff(geo, cases, population, NULL, pop.upper.bound, n.simulations, alpha.level, plot) cluster <- binomial$most.likely.cluster$location.IDs.included df <- data.frame(ID=seq(1,n.simulations,by=1), simloglkhd=binomial$simulated.log.lkhd)
2023 Jun 11
1
Problem with filling dataframe's column
...taneously? Like the below code: > data2$LU[which(data2$Layer == c("Level 1","Level 2", "Level 3", ...))] <- > c("Park", "Agri", "GS", ...) > > > Sincerely > > > > > On Sun, Jun 11, 2023 at 1:43?PM Rui Barradas <ruipbarradas at sapo.pt> wrote: > >> ?s 21:05 de 11/06/2023, javad bayat escreveu: >>> Dear R users; >>> I am trying to fill a column based on a specific value in another column >> of >>> a dataframe, but it seems there is a problem with the codes!...
2020 Feb 04
2
Stroring and extracting AICs from an ARIMA model using a nested loop
...process in case 1 & 2. In case1,?the use of?"p+1" and "q+1" is still blurry tome? Likewise "0L" and " i + 1L" in case 2. ? Can youplease provide explanations on the loop mechanisms you've used.? Le lundi 3 f?vrier 2020 ? 03:47:20 UTC?6, Rui Barradas <ruipbarradas at sapo.pt> a ?crit : Hello, You can solve the problem in two different ways. 1. Redefine storage1 as a matrix and extract the aic *in* the loop. storage1 <- matrix(0, 4, 4) for(p in 0:3){ ? for(q in 0:3){ ? ? storage1[p + 1, q + 1] <- arima(etc)$aic ? } } 2. def...