search for: datavector

Displaying 7 results from an estimated 7 matches for "datavector".

2013 Jul 25
1
GGplot 2 – cannot get histogram and box plot axis to match.
...ity? under choose a column, then finally select box plot. Sample code: Below is a snippet of my code to demonstrate the problems I have. library(ggplot2) #sample data from ggplot2 data(Cars93, package = "MASS") dataSet <- Cars93 #variables to calculate the range to extend the axis dataVector <- unlist(dataSet[,"MPG.city"]) dataRange <- max(dataVector) - min(dataVector) graphRange <- c(min(dataVector) - dataRange/5, max(dataVector) + dataRange/5) #making the box plot theBoxPlot <- ggplot(dataSet,aes_string(x = "MPG.city",y = "MPG....
2007 Jan 26
2
Use a text variable's value to specify another varaible?
Greetings guRus -- If a variable, e.g., 'varname', is a character string, e.g. varname <- "datavector", and I want to apply a function, such as table(), to datavector, what syntax or method will do so using only the variable varname? This seems similar to indirect addressing, but I have not seen a method for it in the R manuals. Is there a general name for such indirect reference that one mi...
2013 Jan 28
1
gigFit problems
...e GIG equation in another curve fitting program, I would really like to use R's tools for confidence intervals and manipulations; but the problems below make me uneasy. Problem one (from examples with parameter change): Code: paramStart.X2002<-c(2.044, .622, 2) param<-paramStart.X2002 dataVector <- rgig(500, param = param) gigFit(dataVector) Result Data: dataVector Parameter estimates: chi psi lambda 0.007543 0.722962 2.535284 Likelihood: -644.6349 Method: Nelder-Mead Convergence code: 0 Iterations: 104 Notice that the chi parameter is...
2004 Apr 08
1
Why are Split and Tapply so slow with named vectors, why is a for loop faster than mapply
...) Timing stopped at: 83.22 0.12 84.49 NA NA The same thing happens with using tapply with a named vector such as: tapply(actTime, chainId, function(x) x) Using the following function with a for loop accomplishes the job in a few seconds for all 70,000+ records: > splitWithNames <- function(dataVector, nameVector, factorVector){ + dataList <- split(dataVector, factorVector) + nameList <- split(nameVector, factorVector) + listLength <- length(dataList) + namedDataList <- list(NULL) + for(i in 1:listLength){ + x <- dataList[[i]] + names(x) <- n...
2009 Jul 02
1
Quantitative Risk Management by McNeil
...e<-t(Return) > fit.NH(Transpose, case="NIG", symmetric=FALSE, se=FALSE) Error: cannot allocate vector of size 57 Kb In addition: Warning messages: 1: In var.default(data) : Reached total allocation of 222Mb: see help(memory.size) 2: In optim(par = theta, fn = negloglik, gr = NULL, datavector = data, : Reached total allocation of 222Mb: see help(memory.size) 3: In optim(par = theta, fn = negloglik, gr = NULL, datavector = data, : Reached total allocation of 222Mb: see help(memory.size) In the attachment you can find the description of the function. the link where I took this sof...
2004 Jun 18
2
Barplots and error indicators: Some R-Code
I' ve seen that several people are looking for a function that creates a barplot with an error indicators (I was one of them myself). Maybe you will find the following code helpful (There are some examples how to use it at the end): # Creates a barplot. #bar.plot() needs a datavector for the height of bars and a error #indicator for the interval #many of the usual R parameters can be set: e.g. ylim, main, col, etc. #The direction of the error indicator can be specified as "bo" for both, "lo" lower, "up" #upper #The width of the indicator hat is s...
2016 Mar 07
2
GSOC-2016 Project : Clustering of search results
On Mon, Mar 07, 2016 at 01:36:43AM +0530, Richhiey Thomas wrote: > My questions are: > 1) Can you direct me on how to convert this raw idea into a proposal in > context to Xapian with more detail? What areas do I focus on? Our GSoC guide has an application template <https://trac.xapian.org/wiki/GSoCApplicationTemplate> which you should use to structure your proposal. It has some