Re: [Rd] strsplit convert data

2011-10-24 Thread Hans-Jörg Bibiko
On 25 Oct 2011, at 00:34, RMSOPS wrote: > To be more specific, my problem is here > Line <-dataset $ Items [i] > print (line) > in.s <- strsplit (line, '') > > I am reading lines from a file > Line 1 A, B, C, D, G > Line 2 A, C, E, > ... > line n F, G > > the problem is that I can not make

Re: [Rd] strsplit convert data

2011-10-24 Thread RMSOPS
Hello To be more specific, my problem is here Line <-dataset $ Items [i] print (line) in.s <- strsplit (line, '') I am reading lines from a file Line 1 A, B, C, D, G Line 2 A, C, E, ... line n F, G the problem is that I can not make the split of the comma, so I can not get the

Re: [Rd] strsplit convert data

2011-10-24 Thread Milan Bouchet-Valat
Le lundi 24 octobre 2011 à 03:31 -0700, RMSOPS a écrit : > I am using the following code but I do not know the debug and run for > correct errors > > library (tcltk) > > > file <-tclvalue (tkgetOpenFile ()) >if (nchar (file)) >{ > tkmessageBox ("Select the file") >} > else >

Re: [Rd] droplevels: drops contrasts as well

2011-10-24 Thread Thomas Lumley
On Fri, Oct 21, 2011 at 5:57 AM, Thaler, Thorn, LAUSANNE, Applied Mathematics wrote: > Dear all, > > Today I figured out that there is a neat function called droplevels, > which, well, drops unused levels in a data frame. I tried the function > with some of my data sets and it turned out that not

Re: [Rd] C function is wrong under Windows 7

2011-10-24 Thread Martin Morgan
On 10/24/2011 06:04 AM, Evarist Planet wrote: Dear mailing list, I have a C function that gives me a wrong result when I run it under Windows Hi Evarist -- It seems like this can be written reasonably efficiently in R? getEs <-function(fchr, sign) { nfchr <- length(fchr) nsign <- len

Re: [Rd] C function is wrong under Windows 7

2011-10-24 Thread Thomas Lumley
On Mon, Oct 24, 2011 at 6:04 AM, Evarist Planet wrote: > Dear mailing list, > > I have a C function that gives me a wrong result when I run it under Windows > 7. The fact that you extract pointers to the contents of fchr and sign before coercing them to REALSXP is deeply suspicious to me, though

Re: [Rd] RFC: 'igraph' package update and backward compatibility

2011-10-24 Thread Allen S. Rout
On 10/20/2011 11:57 AM, Hadley Wickham wrote: Generally, the absence of versioned dependencies makes it extremely difficult to aggressively improve the design of a package. I think that aggressively varying a given packages' API would be confusing to most users, and damage acceptance of the pa

[Rd] C function is wrong under Windows 7

2011-10-24 Thread Evarist Planet
Dear mailing list, I have a C function that gives me a wrong result when I run it under Windows 7. This is the code under Linux (RHEL5): > library(phenoTest) > data(epheno) > sign <- sample(featureNames(epheno))[1:20] > score <- getFc(epheno)[,1] > head(score) 1007_s_at 1053_at117_at121

[Rd] strsplit convert data

2011-10-24 Thread RMSOPS
I am using the following code but I do not know the debug and run for correct errors library (tcltk) file <-tclvalue (tkgetOpenFile ()) if (nchar (file)) { tkmessageBox ("Select the file") } else { tkmessageBox (message = paste ("Was select file", file)) Dataset <