similar to: Closing R fails

Displaying 20 results from an estimated 8000 matches similar to: "Closing R fails"

2006 Jun 09
4
HTML nsmall vector format problem
Hello All I am having a bit of trouble formatting my HTML with the desired number of digits after the decimal place. Am I doing something wrong/misunderstanding or is it a bug? Looking at the example supplied with ?HTML.data.frame: HTML(iris[1:2,1:2],nsmall=c(3,1),file="") Gives html output that includes the lines: </tr> <tr><td
2006 Sep 26
2
Vectorise a for loop?
Hi R guru coders I wrote a bit of code to add a new column onto a "topTable" dataframe. That is a list of genes processed using the limma package. I used a for loop but I kept feeling there was a better way using a more vector oriented approach. I looked at several commands such as "apply", "by" etc but could not find a good way to do it. I have this feeling there
2007 Nov 16
7
sorting factor levels by data frequency of levels
using an example from r online help > state <- c("tas", "sa", "qld", "nsw", "nsw", "nt", "wa", "wa", "qld", "vic", "nsw", "vic", "qld", "qld", "sa", "tas", "sa", "nt", "wa", "vic",
2006 Nov 20
3
problem with loop to put data into array with missing data forsome files
Hi Jenny If you want a general solution I understand. However I just downloaded the file fine (as far as I can tell) so you are welcome to have a copy. I can email it to you if you want. I do not think your test for NA is valid. i.e if(test != "NA"){ } I think you should use if(is.na(test)){ } Or something similar. J --- John Seers Institute of Food Research Norwich
2008 Jul 10
2
false discovery rate !
Dear All, It is not a typical R question (though I use R for this) but I thought someone will help me. For the list of P values, I have calculated FDR using p.adjust() in R (bioconductor). But my FDR values are same for all the P values. When do we get same FDR values? Does the smallest P values should less than 1/N? (where N is the number of P values) Thanks in advance. Kind regards, Ezhil
2008 Feb 01
6
Accessing the elements of a list
Hi R, I wanted to know how do we access the elements of a list. In particular, v=list(c(1,2,3,4,5),c(1,2,33,4,5),c(1,2,333,4,5),c(1,2,3333,4,5)) I want to access all the thirds items of the elements of the list. i.e., I want to access the elements, 3,33,333,3333. This can be done through sapply as: sapply(v,function(x) x[3]) But I need to access this without using
2009 Jan 19
2
How to assign names in a list
Hi All How can you associate names with a list when names have not been assigned? For example if you have a list like this: list2<-list(1,2,3) list2 [[1]] [1] 1 [[2]] [1] 2 [[3]] [1] 3 How do you make it look like this with names? : f1<-1 f2<-2 f3<-3 list1<-list(name1=f1, name2=f2, name3=f3) list1 $name1 [1] 1 $name2 [1] 2 $name3 [1] 3 Thanks for any help. I expect
2006 Apr 20
2
R-Help
Dear r-users, Suppose I have three datasets: Dataset-1: Date x y Jan-1,2005 120 230 Jan-2,2005 123 -125 Jan-3,2005 -110 300 Jan-4,2005 114 -21 Jan-7,2005 11 299 Mar-5,2005 200 311 Dataset-2: Date x y Jan-2,2005 123 -125 Jan-3,2005 -110 300 Jan-4,2005 114 -21
2008 May 16
2
Getting JRI/rJava to work
Hello All I am trying to get the JRI examples from rJava to work on Windows XP and failing. (And as a more general and connected question is there any review/summary of front-end software for R?) I have installed rJava from the Windows binary supplied. I compile and run the example supplied (rtest.java) and get the results below. I do not think the notes about a deprecated API are a problem. But
2007 Feb 27
1
Problem with R interface termination
Dear Sir, The R interface that i am currently using is R 2.4.1( in Win XP). I am not able to terminate the program by giving the q() command. Each time I pass this command, > q() Error in .Last() : could not find function "finalizeSession" this error creeps in and it neither allows me to save my workspace nor come out of R. Therefore, whenever this happens, I am forced to end the
2006 Dec 12
2
Segfault in pure R code
I just caught a segfault: > courses("Ingrid") *** caught segfault *** address 0x99b279c, cause 'memory not mapped' Traceback: 1: structure(y, class = oldClass(x), row.names = attr(x, "row.names")) 2: `[.data.frame`(gudata, -(1:5)) 3: gudata[-(1:5)] 4: names(gudata[-(1:5)]) 5: inherits(x, "factor") 6: is.factor(table) 7: match(x, table, nomatch =
2006 Dec 12
2
Segfault in pure R code
I just caught a segfault: > courses("Ingrid") *** caught segfault *** address 0x99b279c, cause 'memory not mapped' Traceback: 1: structure(y, class = oldClass(x), row.names = attr(x, "row.names")) 2: `[.data.frame`(gudata, -(1:5)) 3: gudata[-(1:5)] 4: names(gudata[-(1:5)]) 5: inherits(x, "factor") 6: is.factor(table) 7: match(x, table, nomatch =
2007 Jul 04
2
Loop and cbind
Hi, I would like to apply the following function for i between 1 and 12, and then construct a list of the return series. for (i in 1:12){ ewma[i] <- emaTA(calm[[i]]^2,0.03) standard[i]<- calm[[i]]/sqrt(ewma[i]) standard <- cbind(standard[i]) } But it does not work. Could anyone give me some advice how can I achieve this? Many thanks -- View this message in context:
2006 Nov 01
4
splitting very long character string
Hello, I've a very long character array (>500k characters) that need to split by '\n' resulting in an array of about 60k numbers. The help on strsplit says to use perl=TRUE to get better formance, but still it takes several minutes to split this string. The massive string is the return value of a call to xmlElementsByTagName from the XML library and looks like this: ... 12345
2008 Feb 19
4
How to join path with arguments
Hi, all How to format and join strings ? For example, like following short python examples. ********* name1 = 'sample-plot' filename = '%s.png' % name1 inputdir = '/path/to/dir' os.path.join(inputdir, filename) ********** Best, Hyunchul Kim [[alternative HTML version deleted]]
2006 Oct 31
1
graphics ignore tabs in text
Dear R-help, I seem to recall that I can use "\t" to get tab in a string on a graphics device, but it doesn't seem to work. Try: lab <- "a\tb\tc" cat(lab, "\n") # works in the console output plot(1:5, main=lab) # no tabs in the title text(3, 3, lab) # no tabs in the text I get the same result both in the windows() and pdf() devices. Any ideas?
2006 Nov 20
2
problem with loop to put data into array with missing data for some files
Dear R-help community, My main goal of this message is to find a way of skipping a file of a month/year in a loop that does not exist (and making it's output into an data.out array would be NA) and moving onto the next year/month in the loop to carry on filling data.out with real precipitation data. The situation so far: I downloaded 50 years worth of GRIB data files from the NCEP data
2011 Mar 01
1
RWinEdt difficulties
Hello Everyone I have just upgraded my PC to Windows 7 (64 bit) and I have installed R 2.12.2. R seems to be working fine. I am having problems getting RWinEdt working with it though. I have tried installing WinEdt 6.0 and WinEdt 5.5. But both fail with the same error using R as 64 bit or 32 bit. I install the package using Administrator rights. > library(RWinEdt) Warning message: In
2011 Jun 29
1
RWinEdt
I have a problem using RWinEdt 1.8.2 in Windows 7 Professional (64 bit). System/software info: R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-pc-mingw32/x64 (64-bit) WinEdt Build: 20071003 (v. 5.5) After installing the R package and attempting to load I get: > library(RWinEdt) Warning message: In
2003 Feb 25
3
cat in windows vs linux
Hi all, Easy question for you (which I failed to find the answer to in the FAQ etc). I've recently been forced to switch from linux to windows (currently windows NT), and my usual habit of putting lots of "cat" statements in slow functions to get an idea of the progress rate is no longer useful. Why -- because R waits until the function is completely finished before printing the cat