Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
What do you mean by IID tests? You certainly can create sequences of iid variables/vectors in R (see ?rnorn, ?runif, ?mvrnorm from package MASS, etc.). --- Shubha Vishwanath Karanth <shubhak at ambaresearch.com> wrote: > Hi R, > > > > I want to conduct...
Use toupper or tolower (see ?toupper, ?tolower) --- On Wed, 20/8/08, suman Duvvuru <duvvuru.suman at gmail.com> wrote: > From: suman Duvvuru <duvvuru.suman at gmail.com> > Subject: [R] Conversion - lowercase to Uppercase letters > To: r-help at r...
My guess is that 6. comes for 6.0 - something which comes from programming languages where 6 represents 6 as integer while 6. (or 6.0) represents 6 as floating point number. --- On Fri, 21/8/09, kfcnhl <zhengchenji18 at...
Please forgive me if my question is answered in Help FAQ no. 23481739... In language like C every variable must be declared before it can be used. In VBA, if a variable has not been declared it is assumed to...
If x is your vector, one possibility is: y <- matrix(x,nrow=60) z <- apply(y,2,mean) --- Jeff Miller <jeffmiller at alphapoint05.net> wrote: > Hi all, > > > > Suppose I have a column vector of 600 measurements > taken in 1s intervals...
Dear list, I have r towns, T1,...,Tr where town i has population Ni. For each town I randomly sampled Mi individuals and found that Ki of them have a certain property. So Pi = Ki/Mi is an unbiased estimate...
The simlest answer is that X and Y are two vectors of length n then (un-normalized) cross correlation between X and Y is sum(i=1 to n) {X(i)-Xbar)*(Y(i)-Ybar)} where Xbar and Ybar are...
How about d[sample(length(d),10)] --- On Wed, 20/8/08, Lauri Nikkinen <lauri.nikkinen at iki.fi> wrote: > From: Lauri Nikkinen <lauri.nikkinen at iki.fi> > Subject: [R] Random sequence of days? > To: r-help at stat.math...
One possibility is to use sink (see ?sink). --- On Thu, 9/7/09, Steve Jaffe <sjaffe at riskspan.com> wrote: > From: Steve Jaffe <sjaffe at riskspan.com> > Subject: [R] print() to file? > To: r-help at r-project.org > Received...
Hi Irene, The result depends on the joint distribution of x1,x2,y1,y2. The mean (or the variance) not always exist (if, for example, all of them are independent and normally distributed). One possibility to estimate mean and variance...
Hi Michel, I wrote an R code implementing Longstaff-Schwartz algorithm for pricing American put Basket option (on the portfolio value). This code can be easily changed to value call option (I intend to allow for "any" payoff function in...
If you can define a distance between two vectors (where each one has some numerical and some categorical coordinates) then you can proceed with any clustering algorithm. One possibility to get such a distance is to use RandomForest which can...
The problem is that neither 0.55 nor 2.55 are exact machine numbers (the computer uses binary representation), so it may happen that the machine representation of 0.55 is slightly less than 0.55 while the machine representation...
Stack does not work for me either, but unlist works, i.e. unlist(l) --- Frank Schmid <fschmid at princeton.edu> wrote: > Dear R user > > Suppose I have the following list: > > > f <- rnorm(2) > > s <- rnorm(3) > > l <- list(f,s...
Hi Monica, Try sapply(as.list(str),function(x) unlist(strsplit(x," "))[1]) --- Monica Pisica <pisicandru at hotmail.com> wrote: > > Hi everyone, > > I have a vector of strings, each string made up by > different number of words. I want to...
Use grep("^e",x) if you are looking for the entries where e is the first character. --- Vladimir Eremeev <wl2776 at gmail.com> wrote: > > Hi! > > seq(along=x) %in% grep("e",x) > > > > Steve Powell-4 wrote: > > > > I have a vector...
To access your dimension idx you could do either assign("a",paste("dimnames(y)$x",idx,sep="")) or eval(parse(text=paste("a<-dimnames(y)$x",idx,sep=""))) --- born.to.b.wyld at gmail.com wrote: > I have a matrix...
observation %in% ID --- Takatsugu Kobayashi <tkobayas at indiana.edu> wrote: > Hi RUsers, > > I am wonder if I can search observations whose IDs > matches any of the > values in another vector, such as in MySQL. While I > am learing MySQL for...
Hi Mark, stock<-"/opt/limsrv/mark/research/equity/projects/testDL/stock_data/fhdb/US/BLC.NYSE" > gsub(".*/([^/]+)$", "\\1",stock) [1] "BLC.NYSE" --- On Tue, 23/9/08, markleeds at verizon.net <markleeds at verizon.net> wrote: > From: markleeds at verizon...
Not the most efficient way would be to use a loop.... If x is your rel object, you can do the following: for (i in 1:length(x$values)) { cat("(",x$values[i],",",x$lengths[i],") ") if (i %% 10 == 0...
Can't find what you're looking for? Try searching with Google .