[Rd] read.table with ":" in column names (PR#8511)

2006-01-20 Thread peverlorenvanthemaat
Full_Name: emiel ver loren Version: 2.2.0 OS: Windows XP Submission from: (NULL) (145.117.31.248) Dear R-community and developers, I have been trying to read in a tab delimeted file where the column names and the row names are of the form "GO:051" (gene ontology IDs). When using: > gomat<-r

Re: [Rd] read.table with ":" in column names (PR#8511)

2006-01-20 Thread ripley
Please do not report documented behaviour as a bug! See the 'check.names' argument to read.table. In your second example you are applying as.character to a data frame, and you seem not to realize that. We specifically ask you NOT to use R-bugs to ask questions. (What is happening is that you g

Re: [Rd] read.table with ":" in column names (PR#8511)

2006-01-20 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: > Full_Name: emiel ver loren > Version: 2.2.0 > OS: Windows XP > Submission from: (NULL) (145.117.31.248) > > > Dear R-community and developers, > > I have been trying to read in a tab delimeted file where the column names and > the row names are of the form "GO:05

Re: [Rd] read.table with ":" in column names (PR#8511)

2006-01-20 Thread Roger Bivand
On Fri, 20 Jan 2006 [EMAIL PROTECTED] wrote: > Full_Name: emiel ver loren > Version: 2.2.0 > OS: Windows XP > Submission from: (NULL) (145.117.31.248) > > > Dear R-community and developers, > > I have been trying to read in a tab delimeted file where the column names and > the row names are of

Re: [Rd] read.table with ":" in column names (PR#8511)

2006-01-20 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: > On Fri, 20 Jan 2006 [EMAIL PROTECTED] wrote: > > > Full_Name: emiel ver loren > > Version: 2.2.0 > > We do ask you not to send reports on obselete versions of R. Well, we might forgive that (please at least check against the current NEWS file), but USING FAKE EMAIL

Re: [Rd] as.character on list (was read.table with ":" in column names)

2006-01-20 Thread Prof Brian Ripley
On Fri, 20 Jan 2006, Peter Dalgaard wrote: [...] > Yes, this is a bit nasty, but... What is happening is similar to this: > >> d <- data.frame(a=factor(LETTERS), b=factor(letters)) >> d[1,] > a b > 1 A a >> as.character(d[1,]) > [1] "1" "1" >> as.character(d[1,1]) > [1] "A" >> as.character(d[1,1

Re: [Rd] as.character on list (was read.table with ":" in column names)

2006-01-20 Thread Peter Dalgaard
Prof Brian Ripley <[EMAIL PROTECTED]> writes: > > The thing is that as.character on a list will first coerce factors to > > numeric, then numeric to character. > > Nope. It just coerces an INTSXP to a STRSXP. as.character (and all > other forms of coercion that I can think of quickly) ignores

Re: [Rd] par(mfg=) and postscript and pdf

2006-01-20 Thread Marc Schwartz
On Fri, 2006-01-20 at 07:47 +, Prof Brian Ripley wrote: > This is related to the incorrect bug report PR#7820. Marc Schwartz > pointed out in > > https://stat.ethz.ch/pipermail/r-devel/2005-April/033016.html > > an example of a real problem. If you call par(mfg=) after par(mfrow) (or > mfc

[Rd] read.table with ":" in column names (PR#8511)

2006-01-20 Thread Joerg van den Hoff
in my view it's not always good to get this answer, but your "problem" is not too deeply hidden in the manpages, so simply read the documentation of read.table: ?read.table (and look out for the "check.names" flag) regards, joerg __ R-devel@r-proje

Re: [Rd] R CMD check, NAMESPACE, import: bad error?

2006-01-20 Thread Seth Falcon
On 19 Jan 2006, [EMAIL PROTECTED] wrote: > We do recommend you try INSTALLing and loading the package before R > CMD check. The most common problem I have found is that the DSO/DLL > cannot be loaded, and there loading will give a more extensive error > message. Yes, the package INSTALLs and loa

[Rd] Troubles with the function rmultinom.c of the R's Random Number Generator

2006-01-20 Thread Sophie Ancelet
Hi, I'm simulating a Markov chain in Fortran interfaced with R-2.2.1 in order to generate data according to a Markov Random Field called the Potts model. R Version: platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major2 minor2.1 year 2005

Re: [Rd] Troubles with Fortran and C (was with the function rmultinom.c of the R's Random Number Generator)

2006-01-20 Thread Prof Brian Ripley
All arguments to functions called from C by Fortran are pointers (or should be: yours are not). The error is within your own code. You don't want to call rndstart and rndend around every call, only before the first and after the last. This is not the list for advice om mixed Fortran/C programmi

Re: [Rd] [R] cron job install/update problems: tcltk can't find display (installing e.g., pbatR)

2006-01-20 Thread Prof Brian Ripley
This really is an R-devel question, so moved there. (Just what would you use R-devel for?) On Fri, 20 Jan 2006, Paul Johnson wrote: > On Fedora Core Linux 4, I have a cron job that causes R to update all > packages and install new ones. Lately, I notice in the log that some > packages fail to

[Rd] Problem loading package with version, S4 classes and NAMESPACE

2006-01-20 Thread Roger Bivand
I've run into a problem that I hope has an obvious solution. The sp package uses S4 classes and has a NAMESPACE, and when installed without package versions, runs OK, passes R CMD check, and so on. A user reported that he installed it --with-package-versions, and that from then on it would fai

Re: [Rd] Problem loading package with version, S4 classes and NAMESPACE

2006-01-20 Thread Roger Bivand
On Fri, 20 Jan 2006, Roger Bivand wrote: > I've run into a problem that I hope has an obvious solution. The sp > package uses S4 classes and has a NAMESPACE, and when installed without > package versions, runs OK, passes R CMD check, and so on. > > A user reported that he installed it --with-p

Re: [Rd] Minumum memory requirements to run R.

2006-01-20 Thread Kjetil Brinchmann Halvorsen
Prof Brian Ripley wrote: > Quite a while back we set the goal of running R in 16Mb RAM, as people (I > think Kjetil) had teaching labs that small. It's a while since I actually har R used on such small machines, I think 64 MB is quite acceptable now. Kjetil > > Since then R has grown, and we h

Re: [Rd] nls profiling with algorithm="port" may violate bounds (PR#8508)

2006-01-20 Thread Spencer Graves
Hi, Ben, et al.: The issue Ben identified with confint(nls(... )) generates a hard failure for me. Specifically the command "confint(m1)" in his script below under Rgui 2.2.1 first says, "Waiting for profiling to be done..." then forces a screen to pop up with heading "R for Windows

Re: [Rd] Minumum memory requirements to run R.

2006-01-20 Thread Liaw, Andy
From: Kjetil Brinchmann Halvorsen > > Prof Brian Ripley wrote: > > Quite a while back we set the goal of running R in 16Mb > RAM, as people (I > > think Kjetil) had teaching labs that small. > > It's a while since I actually har R used on such small > machines, I think > 64 MB is quite accepta