similar to: Aggregate: assembling the "by" part on the fly

Displaying 20 results from an estimated 6000 matches similar to: "Aggregate: assembling the "by" part on the fly"

2003 Sep 04
2
laplace transform
Dear users, is anybody of you aware of a R command to perform laplace transform or even its inversion? Thank you very much. Luca
2003 Jul 22
3
R and C++ compared with only C++
My computer is a pentium 4 running at 2.4 GHz. My R is 1.7.1 I have written a program in R that calls C++. The program spends most of the time in C++ ( > 90% ). R basically deals with output and input. How slower can this be compared with the program I would get from rewriting everything in C++? Thank you.
2003 Aug 21
5
graphic widow overwrite
Hi, I am running a loop to plot multiple plots. In s-plus, it shows multiple pages in the graphic window to allow checking on each plot. but in R, the next plot always overwrite the previous one, so i can only have the last plot produced, is there a way to have multiple pages in the graphic window just like S-plus does? Thanks
2003 Apr 24
5
Fast R implementation of Gini mean difference
I have written the following function to calculate the weighted mean difference for univariate data (see http://www.xycoon.com/gini_mean_difference.htm for a related formula). Unsurprisingly, the function is slow (compared to sd or mad) for long vectors. I wonder if there's a way to make the function faster, short of creating an external C function. Thanks very much for your advice. gmd
2003 Jul 30
6
reverse array indexing
Hi, Suppose I have a multidimensional array: tmp <- array(1:8, c(2,2,2)) is there a function out there that, given a one-dimensional array index, will return the separate indices for each array dimension? for instance, tmp[8] is equivalent to tmp[2,2,2]. I'd like to derive the vector (2,2,2) from the index 8. thanks, Brad Buchsbaum
2003 Aug 01
2
'format' problem
Dear R experts, format(12345678, digits = 2) gives [1] "1.2e+07" while format(1234567, digits = 2) gives [1] "1234567" but I'd like the last number to be represented as "1.2e+06" string too. Where am I wrong? Thanks, Timur.
2003 May 02
3
letters to numbers conversion
Hello List How do I turn R> simple.example.alphabetic [,1] [,2] [,3] [1,] "a" "b" "c" [2,] "d" "e" "f" [3,] "g" "h" "i" into R> simple.example.numeric [,1] [,2] [,3] [1,] 1 2 3 [2,] 4 5 6 [3,] 7 8 9 [ie "a" becomes 1, ..., "z"
2003 Sep 03
1
Call R function from C code
I am participating in a project in the university, and appeared a doubt: if can I call one function from R as "solve" from C code. The intention of the research is to create a DLL. Is it possible and where can I find an example? Sorry for bad english! ___________________________________________________________________________________ Acesse nosso portal www.click21.com.br Porque
2003 Jul 31
2
history for graphics
I've seen that there's an history for graphics. How can I save it manually? Can I save more than 4 plots? I'm using R1.6.2 under win98 [[alternative HTML version deleted]]
2003 Jan 31
1
Help on Scatte Plot Matrix
Hey, All Now I have a data set which is n-dimensional. And want to plot the Scatter Plot Matrix which is n by n. Does R have such function to achieve this? Thanks for your point. Fred
2002 Oct 21
1
Script
I am brand new to R and would like to know if there is a way to be able to create, save and retrieve a program in R like a script object in S-Plus. I am just not sure how to do this. I'm sure there are many ways to do this ranging from simple to complex, but the simplest way would be best for me. Thanks, in advance... __________________________________________________ Y! Web Hosting - Let
2002 Nov 21
1
Pearson's correlation coefficient?
How do I get non-squared correlation coefficient in some more sensible way than sqrt(summary(lm(y~x))$r.squared)? Thanks Matej -- Matej Cepl, matej at ceplovi.cz, Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488 The difference between death and taxes is death doesn't get worse every time Congress meets -- Will
2003 Jan 31
1
Question about trellis graphs
Dear List Members I'm using R to create a trellis plot using the library of Pinheiro & Bates (trellis graph for grouped data). Here is my question: How can I change the format of the axis (x or y) in terms of the number decimal points that should appear on the plot? In other words, I have that for a set of plots in the y-axis the values appear as 0.2,0.3, etc and for another set they
2003 Feb 07
1
a question regarding s-plus libraries and R
Hi! I am a relatively new user of R and I use it to prepare my dissertation. I have come to some very usefull and specific libraries written for S-PLUS 4 and would like to use them in R. Is that possible? I just found out that one of these libraries has already been transfered to R, while 3 others have not. For the matter of beeing more exact I''m interested in the dealing with missing
2003 Feb 22
3
question
Iam a novice R-user and I have a few questions: 1) How can R import an Excell data file? 2) I have a file.s file which it seems I can open but I can not load it i.e. when I write the file name in the command line, for e.g. >file.s it gives me an error message thank you for your consideration, Theo Nicoleris
2003 Feb 28
1
axis annotation
Hi, Is there a way to specify a vector of colors for the tick annotation in a call to axis(), to achieve the x-axis here? <<Rplot003.png>> Thanks, Mark Wilkinson Informatics Analyst St. Jude Children's Research Hospital Department of Pharmaceutical Sciences The opinions expressed here are my own and do not necessarily represent those of St. Jude Children's Research
2003 Jul 07
1
'postscript' command within a function
hello all, I am trying to print a ps file as part of a function as in: func <- function (..., filename="temp.ps") { # some stuff [...] # plot eval( cat("postscript(\"",filename,"\")\n", sep="") ) plot(...) abline(...) dev.off() # more stuff [...] } but it does not work. Nor it does with 'paste' instead
2003 Jul 31
2
help with graphics
I'd like to use lattice to make graphics under conditional structure like : if (TRUE) { barchart(....) dev.print(png, file = "image1.png", width = 600) } but there's nothing in the output file. It seems that it's too long to print graphic into the graphical output and the saved file is a blank picture. it works if I do that without the conditionnal structure. it doesn't
2003 Jul 31
1
(no subject)
Hello, My question is very simple. I have installed R from the internet and I want to use it to analyse my data set. It seems that R is not able to make the connection when I use the read.table () function since it probably doesn't know where is the required file. Where am I suppose to save my file ? Thanks Marc-Antoine Vaillant Actuarial Analyst Les Services Actuariels SAI
2003 Aug 15
1
again Trellis plot
Hello everyone I've got another question on Trellis plots. I plotted my fitted model with plot(augPred(fitted model)). According to the description of this method, one can use any optional argument which is passed down to the xyplot function for Trellis plots. Additionally to the trivial plot i would like to insert a horizontal line. I tried to do it with the argument panel= function (...)