Re: [R] Type II and III sum of square in Anova (R, car package)

2006-08-28 Thread Bill.Venables
I cannot resist a very brief entry into this old and seemingly immortal issue, but I will be very brief, I promise! Amasco Miralisus suggests: > As I understood form R FAQ, there is disagreement among Statisticians > which SS to use > (http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-does-the-out

[R] Legend box line thickness

2006-08-28 Thread Philip Turk
I am making a plot and am merely trying to increase the line thickness, or width, of the box drawn around the legend. The help page on 'legend' was of no use. Does anyone have any ideas? [[alternative HTML version deleted]] __ R-help@stat.

[R] Deviance function in regression trees

2006-08-28 Thread Solomon Dobrowski
Hello all. I have heard over and over that CART and its various tree-like brethren are "non-parametric" techniques. When I read the chapter in Chambers and Hastie on tree-based models it states that tree-based models can be generalized (GTMs) in a manner similar to GLMs by specifying a different de

Re: [R] Firefox extension fo "R Site Search"

2006-08-28 Thread ecatchpole
Romain Francois wrote on 08/28/2006 04:23 PM: > = > Search for your R routines directly from Firefox! > >> http://addictedtor.free.fr/rsitesearch > = > When I try to search I get the Firefox error T

Re: [R] singular matrix

2006-08-28 Thread Gabor Grothendieck
b is nearly singular. Note that one of its eigenvalues is -2.935e-8 which is close to zero. We can use the generalized inverse from MASS to get one solution, x, but any multiple of the eigenvector corresponding to the near-zero eigenvalue when added to that will also give a solution as shown: >

Re: [R] singular matrix

2006-08-28 Thread Bill.Venables
Nongluck Klibbua reports: > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Nongluck > Klibbua > Sent: Tuesday, 29 August 2006 11:12 AM > To: R-help@stat.math.ethz.ch > Subject: [R] singular matrix > > Dear R-users, > I try to use "solve" to get the

Re: [R] Legend box line thickness

2006-08-28 Thread Marc Schwartz
On Mon, 2006-08-28 at 17:55 -0700, Phil Turk wrote: > I am merely trying to increase the line thickness, or line width, of the box > drawn around the legend in a plot I am constructing. The help page on > 'legend' was of no use. Does anyone have an idea on how to do this? Please > respond to

[R] En: Bootstraping for groups (right data tables)

2006-08-28 Thread Milton Cezar
Dear R-friends, Unfortunately the tables that I "past" on last email gone with bad visual structure. So I send it again. Sorry to do this so confuse. Miltinho Table1 - Bird records State,SampleSite,Species,Bodysize SaoPaulo,Site1,Spp01,4.39 SaoPaulo,Site1,Spp04,4.05 SaoP

[R] singular matrix

2006-08-28 Thread Nongluck Klibbua
Dear R-users, I try to use "solve" to get the solution of this matrix.But it has error happen below. How I can solve this problem. [1] "a" [,1] [1,] 0.8109437 [2,] 5.7569740 [1] "b" [,1] [,2] [1,] 0.3141293 2.230037 [2,] 2.2300367 15.831264 Error in solve.default(b, a)

Re: [R] Download problems

2006-08-28 Thread Don MacQueen
If by "2.8" you mean 10.2.8, that's a very old OS X. To use a current version of R on OS X, you need a current version of OS X. Version information is given pretty clearly on CRAN, so make sure you have downloaded a suitable version -- if there is one for 10.2.8. Even if there is, you would be

[R] Bootstraping for groups and subgroups and joing with other table

2006-08-28 Thread Milton Cezar
Dear R-experts, I have a table with following collumns: State, SamplePlot, Species and BodySize. I sampled bird species at 34 SamplePlots and 5 States (regions) monthly during two years. On each bird record I measured bodysize and identified the species. So I have many records of each spec

[R] Legend box line thickness

2006-08-28 Thread Phil Turk
I am merely trying to increase the line thickness, or line width, of the box drawn around the legend in a plot I am constructing. The help page on 'legend' was of no use. Does anyone have an idea on how to do this? Please respond to [EMAIL PROTECTED] Thanks!

Re: [R] Time plots

2006-08-28 Thread H. Paul Benton
Will do! So thanks to everyone who wrote me, I'm going to go away have a look at some of the links that you all have given me and hopefully will be able to solve it. As you can all probably guess I'm new to the whole R thing. Cheers, Paul Research Technician Mass Spectrometry   o The   / o Scr

[R] standardized partial regression coefficients

2006-08-28 Thread Yuval Sapir
Hi all, I am relatively new to R, so let me know if I missed something trivial. I want to perform path-analysis with at least three levels of explaining variables (i.e., A affects B that affects C). I perform multiple regression for each set of variables, and get estimates for the partial coeffi

Re: [R] Bug/problem reporting: Possible to modify posting guide FAQ?

2006-08-28 Thread Robert Gentleman
Hi, I guess the question often comes down to whether it is a bug report, or a question. If you know it is a bug, and have a complete and correct example where the obviously incorrect behavior occurs and you are positive that the problem is the package then sending it to the maintainer is app

[R] matrix "Adjoint" function

2006-08-28 Thread Jessica M. Maia
Thanks for all the replies! __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible c

Re: [R] Time plots

2006-08-28 Thread H. Paul Benton
Opps thanks sorry, So I was just using plot(data) # where data was the matrix I would like it if the plots had time along the bottom and intensity up the y axis. Intensity is just a value, if you want intensity is the number of molecules hitting the detector per millisecond pb -Original Mes

Re: [R] Time plots

2006-08-28 Thread Spencer Graves
Dear Paul: 1. The Internet moves NOT at the speed of light but at the speed of store and forward. 2. Have you worked the examples with the "matplot" help page? 3. Have you worked through the 'zoo' vignette ? (If no, please see "http://finzi.psych.upenn.edu/R/Rhelp02a/a

[R] Bug/problem reporting: Possible to modify posting guide FAQ?

2006-08-28 Thread Steven McKinney
If users post a bug or problem issue to an R-based news group (R-devel, R-help, BioC - though BioC is far more forgiving) they get yelled at for not reading the posting guide and FAQ. "Please *_do_* read the FAQ, the posting guide, ..." the yellers do say. So I read the BioC FAQ and it says...

[R] Time plots

2006-08-28 Thread H. Paul Benton
Hello all and thank you, I will try to make this as clear as I can. I have a matrix, at the top of the matrix are 4 time points, the first col describes the sample, then under each time point I have the intensity values of that sample. So : Samples 0 10 30 120 <- time A

[R] Time plots

2006-08-28 Thread H. Paul Benton
Hello all and thank you, I will try to make this as clear as I can. I have a matrix, at the top of the matrix are 4 time points, the first col describes the sample, then under each time point I have the intensity values of that sample. So : Samples 0 10 30 120 <- time A

Re: [R] matrix "Adjoint" function

2006-08-28 Thread Reid Huntsinger
Sometimes the term "adjoint matrix" refers to the "matrix of cofactors", that is, the matrix of signed determinants of n-1 x n-1 dimensional submatrices. This is just the inverse multiplied by the determinant. As with both the inverse and determinant, if this is part of a larger computation the

[R] Time plots

2006-08-28 Thread H. Paul Benton
Hello all and thank you, I will try to make this as clear as I can. I have a matrix, at the top of the matrix are 4 time points, the first col describes the sample, then under each time point I have the intensity values of that sample. So : Samples 0 10 30 120 <- time A

[R] Time plots

2006-08-28 Thread H. Paul Benton
Hello all and thank you, I will try to make this as clear as I can. I have a matrix, at the top of the matrix are 4 time points, the first col describes the sample, then under each time point I have the intensity values of that sample. So : Samples 0 10 30 120 <- time A

[R] Time plots

2006-08-28 Thread H. Paul Benton
Hello all and thank you, I will try to make this as clear as I can. I have a matrix, at the top of the matrix are 4 time points, the first col describes the sample, then under each time point I have the intensity values of that sample. So : Samples 0 10 30 120 <- time A

[R] Time plots

2006-08-28 Thread H. Paul Benton
Hello all and thank you, I will try to make this as clear as I can. I have a matrix, at the top of the matrix are 4 time points, the first col describes the sample, then under each time point I have the intensity values of that sample. So : Samples 0 10 30 120 <- time A

[R] Time plots

2006-08-28 Thread H. Paul Benton
Hello all and thank you, I will try to make this as clear as I can. I have a matrix, at the top of the matrix are 4 time points, the first col describes the sample, then under each time point I have the intensity values of that sample. So : Samples 0 10 30 120 <- time A

Re: [R] Cannot get simple data.frame binding.

2006-08-28 Thread John Kane
--- Tony Plate <[EMAIL PROTECTED]> wrote: > Maybe I'm missing something, but your "Real life > code" looks like it > should work. What happens when you do: > > > ire1 <- data.frame(md1[, 1:11], other) > Error in data.frame(md1[, 1:11], other) : arguments > imply differing number of rows: 11,

Re: [R] Cannot get simple data.frame binding.

2006-08-28 Thread John Kane
--- Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > The error message says that md1 and other have > different > number of rows. Please read the last line of every > message > to r-help. My appologies, I forgot to include that infomation. As far as I can tell 'md1' is a data.frame of dimensio

Re: [R] Type II and III sum of square in Anova (R, car package)

2006-08-28 Thread John Fox
Dear Amasco, Again, I'll answer briefly (since the written source that I previously mentioned has an extensive discussion): > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Amasco > Miralisus > Sent: Monday, August 28, 2006 2:21 PM > To: r-help@sta

Re: [R] Extracting column name in apply/lapply

2006-08-28 Thread Gabor Grothendieck
This can be done using a similar style but without a loop by using sapply over the indexes rather than over the columns: sapply(1:ncol(X), f) f <- function(i) {...whatever...} ...whatever... can now refer to colnames(X)[i] and X[,i] On 8/28/06, Sundar Dorai-Raj <[EMAIL PROTECTED]> wrote: > > > N

Re: [R] Extracting column name in apply/lapply

2006-08-28 Thread Sundar Dorai-Raj
Nick Desilsky wrote: > Hi, > > any good trick to get the column names for title() aside from running > lapply on the column indexes? > > Thanks > > Nick. > > apply(X[,numCols],2,function(x){ > nunqs <- length(unique(x)) > nnans <- sum(is.na(x)) > info <- paste("un

Re: [R] Cannot get simple data.frame binding.

2006-08-28 Thread Tony Plate
Maybe I'm missing something, but your "Real life code" looks like it should work. What happens when you do: > ire1 <- data.frame(md1[, 1:11], other) Error in data.frame(md1[, 1:11], other) : arguments imply differing number of rows: 11, 75 > str(md1[, 1:11]) > str(other) ? Maybe the labelle

[R] Extracting column name in apply/lapply

2006-08-28 Thread Nick Desilsky
Hi, any good trick to get the column names for title() aside from running lapply on the column indexes? Thanks Nick. apply(X[,numCols],2,function(x){ nunqs <- length(unique(x)) nnans <- sum(is.na(x)) info <- paste("uniques:",nunqs,"(",nunqs/n,")","NAs:",nnans,"(",nn

Re: [R] Cannot get simple data.frame binding.

2006-08-28 Thread Gabor Grothendieck
The error message says that md1 and other have different number of rows. Please read the last line of every message to r-help. On 8/28/06, John Kane <[EMAIL PROTECTED]> wrote: > I am stuck on a simple problem where an example works > fine but the real one does not. > > I have a data.frame where

Re: [R] matrix "Adjoint" function

2006-08-28 Thread Gabor Grothendieck
Try: RSiteSearch("cofactor") On 8/28/06, Jessica M. Maia <[EMAIL PROTECTED]> wrote: > Sorry but I wasn't very clear in my previous message. > > I want to compute the adjoint of a real matrix A, > which is the transpose of the cofactor matrix of A. > > There is an example here: http://www.mathword

Re: [R] matrix "Adjoint" function

2006-08-28 Thread Thomas Lumley
On Mon, 28 Aug 2006, Jessica M. Maia wrote: > Sorry but I wasn't very clear in my previous message. > > I want to compute the adjoint of a real matrix A, > which is the transpose of the cofactor matrix of A. > > There is an example here: http://www.mathwords.com/a/adjoint.htm > > Does R have a fun

Re: [R] generating an expression for a formula automatically

2006-08-28 Thread Prof Brian Ripley
On Mon, 28 Aug 2006, Maria Montez wrote: > Thank you for your responses. > > Prof Ripley's code only worked for a vector with 2 variables but I need the True for my second version (as stated). If you want elementwise sums (which is news to me), use rowSums(do.call("cbind", lapply(x, get)))

[R] Cannot get simple data.frame binding.

2006-08-28 Thread John Kane
I am stuck on a simple problem where an example works fine but the real one does not. I have a data.frame where I wish to sum up some values across the rows and create a new data.frame with some of old data.frame variables and the new summed variable. It works fine in my simple example but I am d

[R] matrix "Adjoint" function

2006-08-28 Thread Jessica M. Maia
Sorry but I wasn't very clear in my previous message. I want to compute the adjoint of a real matrix A, which is the transpose of the cofactor matrix of A. There is an example here: http://www.mathwords.com/a/adjoint.htm Does R have a function which will compute the cofactor of matrix A or the a

Re: [R] tick.number for date in xyplot

2006-08-28 Thread Benjamin Tyner
Thanks; this will have to do until a data-independent solution is implemented. I tried things like seq(min(x),max(x),by='1 month') but I always forget how to make 'x' visible inside a call to xyplot. Ben On Fri, 2006-08-25 at 17:02 -0400, jim holtman wrote: > Try this: > > > xyplot(runif(36

Re: [R] generating an expression for a formula automatically

2006-08-28 Thread Maria Montez
Thank you for your responses. Prof Ripley's code only worked for a vector with 2 variables but I need the code to work for a vector of any size. To solve this I created a for loop. I'm not sure this is the most efficient way of doing it but it works. x1 <- c(1,0,0,1) x2 <- c(0,0,1,1) x3 <- c

Re: [R] matrix "Adjoint" function

2006-08-28 Thread Peter Dalgaard
"Jessica M. Maia" <[EMAIL PROTECTED]> writes: > Hi there, > > I'm new to R and despite searching today, I can't > find a function which will compute the adjoint of > a matrix A. Does this adjoint function exist in R? I don't think so, but the adjoint matrix is also known as the conjugate transpo

Re: [R] Type II and III sum of square in Anova (R, car package)

2006-08-28 Thread Amasco Miralisus
Hello, First of all, I would like to thank everybody who answered my question. Every post has added something to my knowledge of the topic. I now know why Type III SS are so questionable. As I understood form R FAQ, there is disagreement among Statisticians which SS to use (http://cran.r-project.

[R] matrix "Adjoint" function

2006-08-28 Thread Jessica M. Maia
Hi there, I'm new to R and despite searching today, I can't find a function which will compute the adjoint of a matrix A. Does this adjoint function exist in R? Thanks in advance! __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/li

Re: [R] screen resolution effects on graphics

2006-08-28 Thread Gabor Grothendieck
I think there are problems with browseURL on Windows XP with IE. Put the file in screen.htm and then run: shell.exec("screen.htm") it will come up -- it will block it and you will have to click to unblock it; however, that will interfere with any automatic procedure. On 8/28/06, Charles Annis, P

Re: [R] screen resolution effects on graphics

2006-08-28 Thread Charles Annis, P.E.
Romain: > a <- tempfile() > cat(' document.write(screen.width) ; ', file=a) > browseURL(a) > The object "a" was created, but no browser opened. > ls() [1] "a" > a [1] "C:\\DOCUME~1\\CHARLE~1\\LOCALS~1\\Temp\\RtmpRgWrqb\\file678418be" > Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9

Re: [R] screen resolution effects on graphics

2006-08-28 Thread Gabor Grothendieck
The problem then was likely just with my regexp. The last revision that I posted should hopefully work on your machine (all of them worked on mine). On 8/28/06, Charles Annis, P.E. <[EMAIL PROTECTED]> wrote: > Gabor: > > Success! (Sort of) Running outside R in the DOS window produces > > C:\P

Re: [R] screen resolution effects on graphics

2006-08-28 Thread Charles Annis, P.E.
Gabor: Success! (Sort of) Running outside R in the DOS window produces C:\Program Files\R\R-2.3.1\bin>cscript displayconfiguration.vbs Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. Name: NVIDIA GeForce FX 5200 Color depth: 32

Re: [R] screen resolution effects on graphics

2006-08-28 Thread Romain Francois
Prof Brian Ripley a écrit : > On Mon, 28 Aug 2006, Charles Annis, P.E. wrote: > > >> Greetings, R-Citizens: >> >> I have the good fortune of working with a 19" 1280 X 1024 pixel monitor. My >> > > (Similar to our student lab has used for many years.) > > >> R-code produces nice-looking

Re: [R] screen resolution effects on graphics

2006-08-28 Thread Charles Annis, P.E.
Using sub rather than gsub appears to have no effect. The DOS window opens, then closes having had no noticeable effect. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: Gabor Grothendieck [m

Re: [R] screen resolution effects on graphics

2006-08-28 Thread Charles Annis, P.E.
This is what happened here: > ls() character(0) > as.numeric(gsub(".* ", "", grep("resolution", + shell('cscript \\bin\\displayconfiguration.vbs', intern = TRUE), value = TRUE))) numeric(0) > > > ls() character(0) > Nothing displayed; nothing created. But the DOS window DID open and somethin

Re: [R] screen resolution effects on graphics

2006-08-28 Thread Gabor Grothendieck
One other idea. Replace gsub with sub and see if that helps. Maybe the output from the video driver has spaces in it. On 8/28/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > This is what happens when I run it in R 2.3.1: > > > as.numeric(gsub(".* ", "", grep("resolution", > + shell('cscript

Re: [R] screen resolution effects on graphics

2006-08-28 Thread Gabor Grothendieck
Sorry, that still woudl not be good enough. Try this: as.numeric(sub("^[^:]*:", "", grep("resolution", shell('cscript \\bin\\displayconfiguration.vbs', intern = TRUE), value = TRUE))) On 8/28/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > One other idea. Replace gsub with sub and see if

Re: [R] screen resolution effects on graphics

2006-08-28 Thread Gabor Grothendieck
This is what happens when I run it in R 2.3.1: > as.numeric(gsub(".* ", "", grep("resolution", + shell('cscript \\bin\\displayconfiguration.vbs', intern = TRUE), + value = TRUE))) [1] 1280 1024 The result is obviously dependent on your particular video card (I have a radeon). Try running it fro

Re: [R] regex scares me

2006-08-28 Thread Roger D. Peng
You might want to try 'glob2rx()', as in grep(glob2rx("*.tab"), x) where 'x' is a vector of strings. -roger Jon Minton wrote: > Hi, apologies if this is too simple but I've been stuck on the following for > a while: > > > > I have a vector of strings: filenames with a name before the extens

Re: [R] screen resolution effects on graphics

2006-08-28 Thread Charles Annis, P.E.
Gabor: I am afraid I am demonstrating my lack of computer savvy. As you instructed, I downloaded the code, saved it as the file you suggested, and executed this within R as.numeric(gsub(".* ", "", grep("resolution", shell('cscript \\bin\\displayconfiguration.vbs', intern = TRUE), value = TRUE)

Re: [R] regex scares me

2006-08-28 Thread Tony Plate
I think this does the trick. Note that it is case sensitive. > x <- c("lad.tab", "xxladyy.tab", "xxyy.tab", "lad.tabx", "LAD.tab", "lad.TAB") > grep("lad.*\\.tab$", x, value=T) [1] "lad.tab" "xxladyy.tab" > Jon Minton wrote: > Hi, apologies if this is too simple but I've been stuck on th

Re: [R] Remove empty list from list

2006-08-28 Thread Muhammad Subianto
On this day 28/08/2006 19:20, Muhammad Subianto wrote: > Dear all, > I am still working with "list". > If I have an empty list how can I remove from list data. > Here is a toy example: > x <- list(matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:20, 5, > 4),matrix(1:20, 5, 4),matrix(1:20, 5, 4)) > y

[R] regex scares me

2006-08-28 Thread Jon Minton
Hi, apologies if this is too simple but I've been stuck on the following for a while: I have a vector of strings: filenames with a name before the extension and a variety of possible extensions I want to select only those files with: 1) a ".tab" extension AND 2) the character sequence

Re: [R] Remove empty list from list

2006-08-28 Thread Gabor Grothendieck
See this post from the weekend: http://www.nabble.com/Re%3A-How-to-iteratively-extract-elements-out-of-a-list-p6002980.html On 8/28/06, Muhammad Subianto <[EMAIL PROTECTED]> wrote: > Dear all, > I am still working with "list". > If I have an empty list how can I remove from list data. > Here is

Re: [R] Remove empty list from list

2006-08-28 Thread jim holtman
Here is a function I use a lot to do this: delete.NULLs <- function(x.list){ # delele null/empty entries in a list x.list[unlist(lapply(x.list, length) != 0)] } > delete.NULLs(nc.test) [[1]] [,1] [,2] [,3] [,4] [,5] [1,]16 11 161 [2,]49 14 191 [3,]

[R] Remove empty list from list

2006-08-28 Thread Muhammad Subianto
Dear all, I am still working with "list". If I have an empty list how can I remove from list data. Here is a toy example: x <- list(matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:20, 5, 4)) y <- list(c(1, -1, -1, 1, 1),c(1, 1, -1, -1, -1),c(1, 1, 1, 1, 1),c(1,

Re: [R] Modified Bessel function of third kind (fractional or real order)

2006-08-28 Thread Peter Dalgaard
mel <[EMAIL PROTECTED]> writes: > Yousra Gati a écrit : > > > Hello, > > I am searching for code in C++ or fortran for Modified Bessel function of > > third kind (fractional or real order). Can someone help me? > > Thank you > > http://library.lanl.gov/numerical/index.html > http://library.

[R] Help with Functions

2006-08-28 Thread Lord Tyranus
Hello wizards, I need to convert the following functions (prestd, poststd, prepca) of matlab to R. Does Somebody knows how to do it. A description of the functions is: prestd preprocesses the network training set by normalizing the inputs and targets so that they have means of zero and standard

Re: [R] Modified Bessel function of third kind (fractional or real order)

2006-08-28 Thread mel
Yousra Gati a écrit : > Hello, > I am searching for code in C++ or fortran for Modified Bessel function of > third kind (fractional or real order). Can someone help me? > Thank you http://library.lanl.gov/numerical/index.html http://library.lanl.gov/numerical/bookcpdf.html see section 6 spec

Re: [R] Help on function adf.test

2006-08-28 Thread Gabor Grothendieck
Put your time series into a ts or zoo object. Now using EuStockMarkets which is builtin data set in R. (You might want to use align = "right" in rollapply.) library(tseries) library(zoo) eu91 <- window(EuStockMarkets, end = 1992) # use portion for test data eu91.p.value <- rollapply(eu91, 61, f

[R] Help on function adf.test

2006-08-28 Thread Spiros Mesomeris
Hello everybody, I've got a matrix called EUROPEDATA and I want to calculate the adf test statistic (part of the tseries package) on a rolling basis for window my.win on each column; i.e. each column of EUROPEDATA represents a particular variable; for the first column I calculate the adf t

Re: [R] screen resolution effects on graphics

2006-08-28 Thread Gabor Grothendieck
1. Put the code from www.microsoft.com/technet/scriptcenter/resources/qanda/jul05/hey0721.mspx into, say, \bin\displayconfiguration.vbs, and then from R do this: as.numeric(gsub(".* ", "", grep("resolution", shell('cscript \\bin\\displayconfiguration.vbs', intern = TRUE), value = TRUE))) o

[R] Modified Bessel function of third kind (fractional or real order)

2006-08-28 Thread Yousra Gati
Hello, I am searching for code in C++ or fortran for Modified Bessel function of third kind (fractional or real order). Can someone help me? Thank you - Découvrez un nouveau moyen de poser toutes vos questions quelque soit le s

[R] Splancs Query

2006-08-28 Thread emmanuel abatih
Dear R Users; I have been using the space-time K-function analysis to detect the existence of clustering in both space and time. I wish to ask and know what the minimum number of cases should be for such analyses to be valid. I have data with 23 cases and don't know how careful i should be in t

Re: [R] screen resolution effects on graphics

2006-08-28 Thread Charles Annis, P.E.
My apologies for my oversight. I am using WindowsXP. The code that produces a nice-looking jpg (when viewed on my screen) produces cramped graphics on a 800 X 600 screen. I can change the spacings on the plot and remedy the situation for 800 X 600, but that looks awkward at 1280 X 1024. Thanks

Re: [R] screen resolution effects on graphics

2006-08-28 Thread Prof Brian Ripley
On Mon, 28 Aug 2006, Charles Annis, P.E. wrote: > Greetings, R-Citizens: > > I have the good fortune of working with a 19" 1280 X 1024 pixel monitor. My (Similar to our student lab has used for many years.) > R-code produces nice-looking graphics on this machine but the same code > results in

Re: [R] Rgraphviz - neato layout - edge weights do not have an effect

2006-08-28 Thread Seth Falcon
Hi Franz, This might be better directed to the bioconductor mail list. Franz Quehenberger <[EMAIL PROTECTED]> writes: > Dear all, > > neato makes layouts according to a physical model in which the length > of the edges is determined by springs. The weight of the edge is the > strength of the spri

Re: [R] screen resolution effects on graphics

2006-08-28 Thread bogdan romocea
You forgot to mention your OS. This was asked before and if I recall correctly the answer for Windows was no. An acceptable solution (imho) is to edit the Rprofile.site files and add something like pngplotwidth <- 990 ; pngplotheight <- 700 pdfplotwidth <- 14 ; pdfplotheight <- 10 Then, use the

[R] Write signed short into a binary file (follow up and conclusion)

2006-08-28 Thread [EMAIL PROTECTED]
I've solved my problem using: (purpose: write the signed integer -19 as a two byte integer into a binary file) writeBin(as.integer(-19),myconnection, size=2) There is no need to coerce. Thanks anyway! Luca NanettiUniversity Medical Center Groningen BCN-NeuroImagingCenter A.Deusinglaan 2 9713AW

[R] Write signed short into a binary file

2006-08-28 Thread [EMAIL PROTECTED]
I'm using R 2.3.1 on WinXPsp2, 32 bit What I want to do is to write a signed short integer (16 bit) (actually, a sequence of them) into a binary file. I'm trying with writeBin, but the "what" clause is not supported, and an integer is 4 bytes long, nor it seems to exist something like as.int (coe

Re: [R] How to change the color of Plot area.

2006-08-28 Thread Gabor Grothendieck
Try: x <- 1:10 # test data plot(x ~ x, type = "n") u <- par("usr") rect(u[1], u[3], u[2], u[4], col = "grey", border = "red") points(x ~ x) On 8/28/06, Arun Kumar Saha <[EMAIL PROTECTED]> wrote: > Dear all R users, > > Is there any effective way to change the body color of any plot? I am aware >

[R] How to change the color of Plot area.

2006-08-28 Thread Arun Kumar Saha
Dear all R users, Is there any effective way to change the body color of any plot? I am aware of the function par(bg="black"), but the problem with this is, it change the color of entire graphics window. But I want to see that only plot area will have color for example RED and rest of the area sho

[R] I'm on vacation

2006-08-28 Thread daniel . guggisberg
I am no longer using this email address as it is overwhelmed by unwanted SPAM therefore, please manually resend your message to e n g l i s b e r g [at] g m a i l [dot] com __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] screen resolution effects on graphics

2006-08-28 Thread Stefan Grosse
how about producing pdf output- should be the same on every PC... Charles Annis, P.E. schrieb: > Greetings, R-Citizens: > > I have the good fortune of working with a 19" 1280 X 1024 pixel monitor. My > R-code produces nice-looking graphics on this machine but the same code > results in crowded pl

[R] screen resolution effects on graphics

2006-08-28 Thread Charles Annis, P.E.
Greetings, R-Citizens: I have the good fortune of working with a 19" 1280 X 1024 pixel monitor. My R-code produces nice-looking graphics on this machine but the same code results in crowded plots on an older machine with 800 X 600 resolution. In hindsight this seems obvious, but I didn't anticip

Re: [R] Merge list to list - as matrix

2006-08-28 Thread Gabor Grothendieck
Here are two ways: 1. use indexes: lapply(seq(along = x), function(i) cbind(x[[i]], y[[i]])) 2. use mapply: mapply(cbind, x, y, SIMPLIFY = FALSE) On 8/28/06, Muhammad Subianto <[EMAIL PROTECTED]> wrote: > Dear all, > > I have dataset > x <- list(matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:

[R] Merge list to list - as matrix

2006-08-28 Thread Muhammad Subianto
Dear all, I have dataset x <- list(matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:20, 5, 4)) y <- list(matrix(110:114, 5, 1),matrix(110:114, 5, 1),matrix(110:114, 5, 1)) I need merge x and y as list (y put in last column). The result is something like [[1]] [,1] [,2] [,3] [,4] [,5] [1,]

Re: [R] Firefox extension fo "R Site Search"

2006-08-28 Thread Robert Mcfadden
It's excellent. Good work. Robert __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproduc

[R] nonlinear least squares trust region fitting ?

2006-08-28 Thread Martin Ivanov
Hello! I am running R-2.3.1-i386-1 on Slackware Linux 10.2. I am a former matlab user, moving to R. In matlab, via the cftool, I performed nonlinear curve fitting using the method "nonlinear least squares" with the "Trust-Region" algorithm and not using robust fitting. Is it possible to perform

[R] Rgraphviz - neato layout - edge weights do not have an effect

2006-08-28 Thread Franz Quehenberger
Dear all, neato makes layouts according to a physical model in which the length of the edges is determined by springs. The weight of the edge is the strength of the spring. However, I was not able to find any influence of edge weight on the layout. In the http://www.graphviz.org/Documentation/

Re: [R] How to iteratively extract elements out of a list

2006-08-28 Thread Petr Pikal
Hi try to do it without loop lapply(m,function(x) x[x>2]) HTH Petr On 25 Aug 2006 at 13:52, xpRt.wannabe wrote: Date sent: Fri, 25 Aug 2006 13:52:51 -0500 From: "xpRt.wannabe" <[EMAIL PROTECTED]> To: r-help@stat.math.ethz.ch Subject: