Re: [R] RPgSQL installation problem

2009-10-24 Thread Rainer Hurling
On 20.10.2009 09:35 (UTC+2), christiaan pauw wrote: Hi everybody I am trying to install RPsSQL and get the following error message: As far as I know package RPgSQL is outdated. The newer package RPostgreSQL works with R-2.9.0 and greater. So it seems to be a good time to update your R

Re: [R] Distance between axis and label adjusted automatically?

2009-10-24 Thread Jim Lemon
On 10/24/2009 09:00 AM, Lasse Kliemann wrote: Is there a way to have the distance between label and axis adjusted automatically? This is interesting in particular for the y-axis, when it is not known in beforehand how many digits the numbers will have. It may happen then, that numbers and label

[R] warnings details

2009-10-24 Thread Erich Neuwirth
I am running R as an invisible subprocess in another program (RExcel). Using try I can catch errors and print the errors produced by an R statement. Is there a way to know if running a statement caused a warning message? last.warning gives me the last warning, but I do not have any indication what

Re: [R] warnings details

2009-10-24 Thread Duncan Murdoch
Erich Neuwirth wrote: I am running R as an invisible subprocess in another program (RExcel). Using try I can catch errors and print the errors produced by an R statement. Is there a way to know if running a statement caused a warning message? last.warning gives me the last warning, but I do not

[R] Generate random variate from a non-parametric hazard function

2009-10-24 Thread Samiul Hasan
Hi I have estimated a hazard function using a kernel based method. Now i have to generate a random variate that follows this hazard function. Does any one know method I should use to generate the variate. Thanks Samiul -- View this message in context:

[R] Smoothing Parameter Kernel

2009-10-24 Thread forestra
Hello to everybody, I need to know the Smoothing Parameter to obtain Home Range of an animal through the Area Kernel. I have 200 locations with x and y. How can I obtain the Smoothing Parameter with R for LSCV, CV and Href method??? Thank you. -- View this message in context:

Re: [R] data frame is killing me! help

2009-10-24 Thread bbslover
I have try it, past can add to wanted letter, but can not past the colume names. May be I should learn it hard. Don MacQueen wrote: At 4:57 AM -0700 10/23/09, bbslover wrote: Steve Lianoglou-6 wrote: Hi, On Oct 22, 2009, at 2:35 PM, bbslover wrote: Usage data(gasoline) Format A

Re: [R] data frame is killing me! help

2009-10-24 Thread bbslover
thank you Don MacQueen , I will try it. Don MacQueen wrote: At 4:57 AM -0700 10/23/09, bbslover wrote: Steve Lianoglou-6 wrote: Hi, On Oct 22, 2009, at 2:35 PM, bbslover wrote: Usage data(gasoline) Format A data frame with 60 observations on the following 2 variables. octane

[R] how can I kown which package is added, or updated?

2009-10-24 Thread bbslover
there are many R packages, yesterday, 2031 but today 2033 packages. how can I kown which package is added, or updated? -- View this message in context: http://www.nabble.com/how-can-I-kown-which-package-is-added%2C-or-updated--tp26037150p26037150.html Sent from the R help mailing list archive

Re: [R] how can I kown which package is added, or updated?

2009-10-24 Thread Gabor Grothendieck
Google for CRANberries aggregates and check first hit. On Sat, Oct 24, 2009 at 4:44 AM, bbslover dlu...@yeah.net wrote: there are many R packages, yesterday, 2031 but today 2033 packages. how can I kown which package is added, or updated? -- View this message in context:

Re: [R] Generate random variate from a non-parametric hazard function

2009-10-24 Thread Peter Dalgaard
Samiul Hasan wrote: Hi I have estimated a hazard function using a kernel based method. Now i have to generate a random variate that follows this hazard function. Does any one know method I should use to generate the variate. Thanks Samiul As far as I remember, the relation that you need is

Re: [R] help using R's linprog for LP

2009-10-24 Thread Hans W Borchers
Medha Atre medha.atre at gmail.com writes: Hi, I found the reason. By default it puts a condition for x = 0. Is there a way to get rid of this condition? The constraints x = 0 are used in most linear programming realizations. Some bounds from below are needed. The trick to circumvent the

Re: [R] opposite estimates from zeroinfl() and hurdle()

2009-10-24 Thread Michael Dewey
At 12:36 23/10/2009, Tord Snäll wrote: Dear all, A question related to the following has been asked on R-help before, but I could not find any answer to it. Input will be much appreciated. The vignette explains this, and much more. I found it extremely instructive both for its intended

Re: [R] interpretation of RCS 'coefs' and 'knots'

2009-10-24 Thread Frank E Harrell Jr
Dylan Beaudette wrote: On Friday 23 October 2009, Frank E Harrell Jr wrote: Dylan Beaudette wrote: Hi, I have fit a series of ols() models, by group, in this manner: l - ols(y ~ rcs(x, 4)) ... where the series of 'x' values in each group is the same, however knots are not always identical

Re: [R] Memory Problems with CSV and Survey Objects

2009-10-24 Thread Carlos J. Gil Bellosta
Hello, Adding to Thomas' email, you could also use package colbycol which allows you to load into R files that a simple read.table cannot cope with, study columns independently, select those you are more interested in and, finally, set up a dataframe with just the columns you are interested in.

Re: [R] warnings details

2009-10-24 Thread Martin Morgan
Erich Neuwirth wrote: I am running R as an invisible subprocess in another program (RExcel). Using try I can catch errors and print the errors produced by an R statement. Is there a way to know if running a statement caused a warning message? last.warning gives me the last warning, but I do

[R] how to control the white space between sub figures

2009-10-24 Thread Ning Ma
Hi everybody, I use par(mfrow=c(2,2)) to draw 4 sub figures. The default white space between columns is a litte large. Is there any parameters to control it? Thanks in advance! Ma __ R-help@r-project.org mailing list

Re: [R] how can I kown which package is added, or updated?

2009-10-24 Thread bbslover
It is so dramatical. Thank Gabor Grothendieck . I got it. Gabor Grothendieck wrote: Google for CRANberries aggregates and check first hit. On Sat, Oct 24, 2009 at 4:44 AM, bbslover dlu...@yeah.net wrote: there are many R packages, yesterday, 2031 but today 2033 packages. how can I

Re: [R] Data format for KSVM

2009-10-24 Thread Uwe Ligges
Noah Silverman wrote: Hi, I have a process using svm from the e1071 library. It's called a *package* which is probably installed in a *library* of packages. it works. I want to try using the KSVM library instead. The same data used wiht e1071 gives me an error with KSVM. I guess

Re: [R] How to apply the Wilcoxon test to a hole table at once?

2009-10-24 Thread Uwe Ligges
Iurie Malai wrote: Hi, I have a data set: Dataset X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17 1 user1 m 22 19 28 24 12 18 9 7 4 5 4 7 5 7 9 2 user2 f 25 19 23 18 18 15 6 8 6 6 7 10 7 7 7 3 user3 f 28 21 24 18 15 12 10 6 7 9

Re: [R] interpretation of RCS 'coefs' and 'knots'

2009-10-24 Thread Kingsford Jones
Perhaps functional data analysis would be of interest. See, for example, package fda. Kingsford On Fri, Oct 23, 2009 at 4:46 PM, Dylan Beaudette debeaude...@ucdavis.edu wrote: Hi, I have fit a series of ols() models, by group, in this manner: l - ols(y ~ rcs(x, 4)) ... where the series

Re: [R] how to control the white space between sub figures

2009-10-24 Thread Uwe Ligges
Ning Ma wrote: Hi everybody, I use par(mfrow=c(2,2)) to draw 4 sub figures. The default white space between columns is a litte large. Is there any parameters to control it? There is no white space between it - except for the margins of the separate plots that can be controlled with

[R] How apply a function to a list while maintaining list name?

2009-10-24 Thread Peng Yu
I use lapply to apply a function to the list 'L'. But of course, the list names in 'X' is not maintained. I'm wondering if there is a function that can maintain the list names as well as apply the function. $ Rscript lapply.R L=list(x=c('a','b'), y=c('a','b')) L $x [1] a b $y [1] a b

Re: [R] How apply a function to a list while maintaining list name?

2009-10-24 Thread Jorge Ivan Velez
Hi Peng, Try lapply(L, paste, collapse=) $x [1] ab $y [1] ab HTH, Jorge On Sat, Oct 24, 2009 at 12:02 PM, Peng Yu wrote: I use lapply to apply a function to the list 'L'. But of course, the list names in 'X' is not maintained. I'm wondering if there is a function that can maintain the

Re: [R] reset par() within plot layout

2009-10-24 Thread Tom Gottfried
I think it would be much easier to use grid-graphics for your task. It's made for such things. This is a good introduction: Paul Murrell. The grid graphics package. R News, 2(2):14-19, June 2002 Tom __ R-help@r-project.org mailing list

Re: [R] access elements of a named list using a factor

2009-10-24 Thread Uwe Ligges
Robin, see below my inserted comments. Robin Hankin wrote: Hello Dimitris thanks for this. It works! I guess I was fixated on the dollar sign. I must confess that I don't really understand any of the error messages below. Can anyone help me interpret them? rksh Dimitris Rizopoulos

Re: [R] intervals package dependence on R 2.9.0

2009-10-24 Thread Uwe Ligges
Ross Boylan wrote: I notice that the intervals package indicates a dependence on R = 2.9.0. Is there some feature of R 2.9 that intervals depends on, or might it work with R 2.7.1, which I am running? Don't know, but you could try - bus don't expect the results are valid. The maintainer

Re: [R] S4 object??

2009-10-24 Thread Uwe Ligges
1. You forgot to give a *reproducible* example as the posting guide asks you to do. 2. Both packages you mentioned are BioConductor packages. Note that the BioConductor project has its own mailing list. Best wishes, Uwe Ligges Wendy Chen wrote: Hi all, I have loaded the LIMMA and

Re: [R] Help regarding removing Inf from dataframe, creating new dataframe with selected variables, count function

2009-10-24 Thread Uwe Ligges
makhija.sange...@gmail.com wrote: Following is my query: 1. Removing Inf from one column of dataframe. 2. out of 10 available dates, count how many times a security is present. (repeat for each security) 3. Out of dates, the security is present, I want to read latest status of market cap.

Re: [R] ifelse

2009-10-24 Thread HBaize
What I think you are missing is that you didn't change ddd. The ifelse statement does not assign values to the ddd object. To change ddd it would read: ddd - ifelse ( ddd360, ddd-360, ddd ) So when you enter print(ddd) you get the content of the original object, which has not changed. What

[R] How to make XML support Expat?

2009-10-24 Thread Johannes Graumann
Hi, How can I make the result of the following lines TRUE? install.packages(XML) library(XML) supportsExpat() [1] FALSE I'm on linux, looked into the actual package, but don't seem to be able to wrap my head around how to compile this in ... Any pointers are welcome, Thanks Joh

[R] ifelse

2009-10-24 Thread pking
When I run this code from an R-script: ddd = 360 + round ( atan2(-u,-v) / d2r ) print(class(ddd)) print(ddd) ifelse ( ddd360, ddd-360, ddd ) print(ddd) I get this output: [1] numeric [1] 461 213 238 249 251 [1] 461 213 238 249 251 Why does ifelse

Re: [R] data.frame tall skinny transformation

2009-10-24 Thread Michael Jones
Thanks Phil, That worked great for the test case below but when I tried it on a really big data.frame I get the error $ melt(featureData,id.var='feature',variable_name='cell.line') Error in data.frame(ids, x, data[, x]) :  arguments imply differing number of rows: 1312, 1, 0 featureData has the

Re: [R] data.frame tall skinny transformation

2009-10-24 Thread Michael Jones
If I make the data from smaller: featureDataHead = head(featureData) featureDataHead = featureDataHead[ , 1:4] melt(featureDataHead,id.var='feature',variable_name='cell.line') It works fine On Sat, Oct 24, 2009 at 1:54 PM, Michael Jones mdjone...@gmail.com wrote: Thanks Phil, That

Re: [R] ifelse

2009-10-24 Thread Uwe Ligges
pking wrote: When I run this code from an R-script: ddd = 360 + round ( atan2(-u,-v) / d2r ) print(class(ddd)) print(ddd) ifelse ( ddd360, ddd-360, ddd ) print(ddd) I get this output: [1] numeric [1] 461 213 238 249 251 [1] 461 213 238 249 251

Re: [R] How to make XML support Expat?

2009-10-24 Thread Duncan Temple Lang
Hi Joh. What particular aspects of expat do you want that libxml2 and the XML package currently cannot provide? The early versions of the XML package (for the first few years) could support expat and libxml2 as the C++/C-level parsers. However, the support for expat was not maintained, so while

Re: [R] ifelse

2009-10-24 Thread HBaize
Also, to further clarify. When you source or batch file R scripts, objects are only printed to the screen if you use a print function. That is why the result of the ifelse does not appear. Your original example would have shown the expected result of the ifelse if it had read: print(ifelse (

Re: [R] data.frame tall skinny transformation

2009-10-24 Thread Ista Zahn
You probably have other id variables in featureData. Try specifying the measured variables instead of the id variable(s). See ?melt.data.frame for details. -Ista On Sat, Oct 24, 2009 at 1:58 PM, Michael Jones mdjone...@gmail.com wrote: If I make the data from smaller:  featureDataHead =

[R] Problem Removing Border Lines in Maps Package

2009-10-24 Thread Anthony Damico
I'm working with the nationwide county maps data, and trying to remove the internal county boundary lines. The only map() function parameter that I've found that gets me anywhere close to my desired result leaves small white segments on parts of the map. I believe this is due to the low

Re: [R] Problem Removing Border Lines in Maps Package

2009-10-24 Thread Greg Snow
If you don't want the county boundaries, then don't use the county map. There is the state database that does not have county information. If you want the counties different colors, but no dividing lines, then you may want to try the maptools and sp packages (shapefiles for the states/counties

[R] dev.copy(postscript,...) generates a disrupted string

2009-10-24 Thread Marius Hofert
Dear R-Users, I have the following problem: I would like to create a postscript file containing an r-plot with the string \\vartheta in it (reason: this is later converted to the TeX-string \vartheta and a vartheta is printed in the figure). In the minimal example below, the problem is

Re: [R] Smoothing Parameter Kernel

2009-10-24 Thread Ben Bolker
forestra wrote: Hello to everybody, I need to know the Smoothing Parameter to obtain Home Range of an animal through the Area Kernel. I have 200 locations with x and y. How can I obtain the Smoothing Parameter with R for LSCV, CV and Href method??? We're sorry, but this is far

Re: [R] Problem Removing Border Lines in Maps Package

2009-10-24 Thread Ray Brownrigg
Have a look at: map(county, fill=TRUE , col=palette() , resolution=0, lty=0) HTH, Ray Brownrigg Anthony Damico wrote: I'm working with the nationwide county maps data, and trying to remove the internal county boundary lines. The only map() function parameter that I've found that gets me

Re: [R] How to apply the Wilcoxon test to a hole table at once?

2009-10-24 Thread Iurie Malai
Uwe Ligges-3 wrote: Whole table? Each variable against every other variable? Or something else? Do you think that makes sense? Anyway, you can calculate all combinations of 2 unique columns and iterate over them. Uwe Ligges In the variable X2 I have encoded men and women, so I

Re: [R] ifelse

2009-10-24 Thread pking
Thank you very much. I am a newcomer to R and your quick response is very much appreciated. I obviously have more reading to do. pk HBaize wrote: What I think you are missing is that you didn't change ddd. The ifelse statement does not assign values to the ddd object. To change ddd

Re: [R] dev.copy(postscript,...) generates a disrupted string

2009-10-24 Thread Ted Harding
On 24-Oct-09 20:28:04, Barry Rowlingson wrote: On Sat, Oct 24, 2009 at 9:09 PM, Marius Hofert m_hof...@web.de wrote: Dear R-Users, I have the following problem: I would like to create a postscript file containing an r-plot with the string \\vartheta in it (reason: this is later converted to

Re: [R] Implementation of gamma function for large number

2009-10-24 Thread Richard M. Heiberger
Use the lgamma function. log(gamma(170)) [1] 701.4373 lgamma(170) [1] 701.4373 In typical uses of gamma(), they are multiplied or divided by other gamma() values, bringing the final result into the range of double precision numbers. Also, look at beta(), which does those divisions of

Re: [R] Implementation of gamma function for large number

2009-10-24 Thread Robert A LaBudde
At 04:53 PM 10/24/2009, R_help Help wrote: Hi - I ran into a problem when the argument to gamma function is large. Says, if I do the following: gamma(17000) [1] Inf Warning message: value out of range in 'gammafn' Is there anyway to get around this or other implementation? Thank you. -rc

[R] operations on sparse matrices, and dense intermediary steps

2009-10-24 Thread Jose Quesada
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm doing some basic operations on large sparse matrices, for example getting a row. it takes close to 30 seconds on a 3Ghz machine, and shots the memory usage up to the sky. I suspect there are dense intermediary steps (which, if true would

Re: [R] How to make XML support Expat?

2009-10-24 Thread Duncan Temple Lang
Johannes Graumann wrote: Thanks for your input. If I understand correctly, XPath requires the whole document to be resident in memory. That is not an option given the size of documents I'm facing ... I'll go with the standard streaming implementation of the XML package and see how far I

Re: [R] intervals package dependence on R 2.9.0 [results]

2009-10-24 Thread Ross Boylan
On Sat, 2009-10-24 at 18:47 +0200, Uwe Ligges wrote: Ross Boylan wrote: I notice that the intervals package indicates a dependence on R = 2.9.0. Is there some feature of R 2.9 that intervals depends on, or might it work with R 2.7.1, which I am running? Don't know, but you could try

[R] rotate levelplot

2009-10-24 Thread Kang Min
Hi all, I have a matrix with 5 rows and 10 columns, which represent the grids on a rectangular map. I used the code below to plot, but it gives me the map with the 10 columns as y-axis, and the 5 rows as the x-axis, and the (0,0) point is at the usual bottom left hand corner. My map starts with

Re: [R] data.frame tall skinny transformation

2009-10-24 Thread Phil Spector
Michael - It sounds like there something different in the parts of the data you're not including. If another poster's suggestion of specifying analysis variables instead of id variables doesn't work, and you can send me the data set, I'd be happy to take a look.

Re: [R] rotate levelplot

2009-10-24 Thread milton ruser
Hi Kang, Could you send a reproducible sample-code? Bests miltinho On Sat, Oct 24, 2009 at 11:32 PM, Kang Min ngokang...@gmail.com wrote: Hi all, I have a matrix with 5 rows and 10 columns, which represent the grids on a rectangular map. I used the code below to plot, but it gives me

[R] NULL elements in lists ... a nightmare

2009-10-24 Thread mauede
I can define a list containing NULL elements: myList - list(aaa,NULL,TRUE) names(myList) - c(first,second,third) myList $first [1] aaa $second NULL $third [1] TRUE length(myList) [1] 3 However, if I assign NULL to any of the list element then such element is deleted from the list:

[R] Datasets for The Statistical Sleuth

2009-10-24 Thread Yihui Xie
Hi everyone, I wonder if there already exists any R packages containing all the data sets for the book The Statistical Sleuth (http://www.proaxis.com/~panorama/home.htm; also available at StatLib http://lib.stat.cmu.edu/datasets/sleuth). I'm writing an R package with a friend for one of our stat

[R] A naive question about permutation tests in the coin package

2009-10-24 Thread Ista Zahn
Dear R helpers, I am trying to understand how to use the independence_test function in the coin package. I think I suffer from a misunderstanding about what the package does. Either that or I do not understand how to use it properly. Specifically, I cannot understand if I can test independence of

Re: [R] rotate levelplot

2009-10-24 Thread Kang Min
Hi Milton, The matrix can be generated using p = matrix(1:50, nrow=5) If I just use levelplot(p), it gives me a graph that is vertical. How can I rotate it so it becomes horizontal? I cannot do q = t(p); levelplot(q) because this is representing a map from a piece of land, transposing the