similar to: how to trace what crashes R

Displaying 20 results from an estimated 2000 matches similar to: "how to trace what crashes R"

2007 Jan 23
2
is it necessary to always register C routines with R_registerRoutines?
I am writing bindings to the neural network simulator SNNS. At present I have used only .C interface, now I'm studying .Call interface. I have adapted the example from page 77 of r-exts.pdf, however, it crashes R. I use MingW as recommended by Duncan Murdoch. Please, tell me what I am missing. The code is below. Thank you. SEXP snns_getVersion(void) {SEXP version; char *v;
1997 Apr 08
2
R-alpha: CRAN source/contrib
I've put all ``current'' add-on packages into CRAN's source/contrib tree and created an INDEX file (attached below). As you can see, currently we have acepack bootstrap ctest date e1071 fracdiff gee jpn snns splines survival4 (Yes, e1071 and jpn are new ... more on the latter in a later mail.) In the near future, I am hoping for the following: oz (Bill
2007 Oct 16
3
Updating R-Software without complete new installation
Hallo, as I see there is a new version for R available. Can anyone tell me how I can update my version 2.5.0 under Windows? The last times I just uninstalled the old version and installed the new one. Afterwards I had to install also all needed packages again. All in all it cost me half a day until my system works fine again. Is there a quicker option? If yes please tell me the commands. Thanks,
2007 May 22
2
Please, remind a function name
Sorry, I'm stuck. :) I am writing a function, which would fit either one linear model or another one, depending on its argument model.type. And I don't want to use several if's, because R allows doing it with much more beauty. That is I am looking for prettier alternative to the following AB2C<-function(a,b,model.type="S") { # or HK, and return NULL if this argument has
2012 Dec 05
2
What is "print print print" ?
Hi all. What is "print print print"? I don't see output of the print command in for loop and have found this link: http://stackoverflow.com/questions/1816200/chisq-test-doesnt-print-results-when-in-a-loop It describes a problem, similar to mine. My problem. I want to execute print command in for loop. If I copy for loop body with print() and paste it to console, I don't see
2000 Oct 30
2
SOM (Self-organizing map)
Does anyone know of any SOM library for R? or any stand alone freeware? A search from google returns SOM_PAK 3.1 developed at Helsinki University of Technology. Is there newer version? Jun -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or
2007 Apr 04
5
how to image.plot a XY grid file into a lat-lon map
Hi All, I have a netcdf gridded file with LCC projection. I can easily use image.plot to visualize it. However, as the axises are in X,Y, not Lat and Lon, I could not add state or country maps onto it (or lat lon information). I do have a grid2d file that describes the lat and lon for each (X,Y) grid, but the lat and lon are not regularly spaced, so I could not use image.plot. Does anyone know
2007 Aug 15
4
Possible to "import" histograms in R?
Hi, I have a large amount of data that I would like to create a histogram of and plot and do things with in R. It is pretty much impossible to read the data into R, so I have written a program to bin the data and now have a list of counts in each bin. Is it possible to somehow import this into R and use hist(), so I can, for instance, plot the probability density? I have looked at the help page
2007 Jun 06
3
Neural Net. in R
Hi everyone, I'm a graduate student of engineering, lately introduced with R. and using R for my project and thesis. I'm trying to use R for implementing a neural network regression model and apply it to my database. I found three R packages ("AMORE" , "grnnR" , "neural") in R website, but their manuals are not really user-friendly in my idea. I was wondering
2007 Jan 29
1
how to explore contents of R data file from command line?
Dear all, I have a directory with my research project, containing files .RData and inflow.RData I am just curious, is there any way to explore contents of inflow.RData from command line without affecting .RData and without copying inflow.RData to another location? I can see names and character attributes (of something in the file) in a 3rd party raw file viewer. -- View this message in
2007 May 07
1
looking for equivalent of matlab's medfilt1 function
Dear all, I have several files with Matlab code, which I am translating to R. For the zero-level approach, I took the very old shell script from R-help archives, which has made some obvious leg-work such as replacement of "=" with "<-". Now I am translating indexing, matrix operations and function call using this table http://37mm.no/mpy/octave-r.html The problem is, I
2007 Apr 26
3
adding a column to a matrix
i would like to add a variable to an existing matrix by manipulating 2 previous variables eg for the data m treat strata censti survTime [1,] 1 2 284.684074 690.4961005 [2,] 1 1 172.764515 32.3990335 [3,] 1 1 2393.195400 24.6145279 [4,] 2 1 30.364771 8.0272267 [5,] 1 1 523.182282 554.7659501 l
2007 Feb 04
1
Fwd: Re: Calling C code from R
Hi! Thanks in advance. Thanks to all of you who have responded to me on above. This is one of the responses I received on above. I have installed perl (with path C:\Perl\bin\;) an MinGW (with path C:\MinGW\bin; C:\MinGW;). At the Command Prompt (C:\R-2.4.0\bin) I have typed: C:\R-2.4.0\bin>Rcmd SHLIB useC1.c (No error and useC1.dll file has not been created)
2003 May 13
1
several regression lines in panel of xyplot (trellis graphics)
Dear r-help, I need to draw xyplot() graphs with several regression lines: one line for the whole range of x (the variable on the horizontal axis) and two additional lines for subranges of x. Is it possible to make first regression line (panel.lmline(x,y,...);) to be drawn on the whole graph and regression lines of the subsets to be drawn only over their subsets? I have defined
2003 May 08
3
again troubles with lattice
Dear r-help community, Thank you for your previous answers! Now I have strange behaviour of the lattice library funcitons. They do not draw graphics in the file when called from the script. I created the script file, called, for example, "a.R", containing the following library(lattice); trellis.device(device="png", filename="a.png",
2005 May 20
5
getting the unique values and counts from a vector
Hi all, >From a vector, I want to get the unique values and the counts of these unique values in the vector. For example, x<-c(2 ,1 ,2, 1, 4 ,2 ,1, 4 ,1 ,1) xu<-unique(x) xn<-numeric(length(xu)) for (i in 1:length(xu)) {xn[i]<-length(which(x==xu[i]))} There must be a very much simpler method of doing this. Can somebody direct me to the functions that I must read in order to do
2005 Aug 16
3
how to reshape an array avoiding for loops
Dear r-help, I have an array a1 with dimensions [1:660,1:65,1:25] I would like the first dimension to be the last one. That is I want and array [1:65,1:25,1:660] The only way to do this, I know, is tmp.a<-array(dim=dim(a1)[c(2,3,1)]) for(i in 1:dim(a1)[1]) tmp.a[,,i]<-a1[i,,] a1<-tmp.a rm(tmp.a) Is it possible to avoid 'for' loop here? Thank you! ---
2003 Apr 16
2
layout.show()
Dear r-help, Please, be so kind, tell me what does mean the parameter of layout.show()? I use R 1.6.2... Windows NT 4.0 Unfortunately I cannot understand phrases from the help "n: number of figures to plot." what figures? "`layout.show(n)' plots (part of) the current layout, namely the outlines of the next `n' figures." what figures?
2003 May 27
2
R doesn't remove temporary dirs and about bugreport
Dear r-help, 1. I always find in TEMP directory subdirs named like Rtmp##### where ##### denote a number. Obviously, they are created by R and are not removed by it after finish. Why? I use R 1.7.0 and Windows NT Workstation 4.0, English. SP 6a. 2. Is it possible to get known whether my bug report was received? I've sent to r-bugs at biostat.ku.dk the following but it seemed
2003 May 11
2
what does boxplot draw?
Dear r-help, Unfortunately I cannot find in the documentation what determines ranges of a 'box' in the box-and-whisker plot. It is said in "Simple R" (http://www.math.csi.cuny.edu/Statistics/R/simpleR) that they are 1st and 3rd Qus usually. I tried to add to boxplot lines with (quantile(x,probs=0.25)), but lines do not coincide with edges of boxes.