Re: [R] Get bearing for cartesian coordinates

2009-07-28 Thread Bill.Venables
I think all you need is bearing - function(x, y) atan2(y, x)*180/pi This gives the bearing in degrees from the origin. If you wanted the bearing from some other point, just take the differences: bearing - function(x, y, origin = c(x=0,y=0)) atan2(y-origin[y], x-origin[x])*180/pi

Re: [R] Making a sub data.frame

2009-07-28 Thread Bill.Venables
Suppose DF is the data frame and someIDs is the vector subDF - subset(DF, ID %in% someIDs) Bill Venables http://www.cmis.csiro.au/bill.venables/ -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of desper Sent: Tuesday, 28 July

Re: [R] Splitting matrix into several small matrices

2009-07-28 Thread Bill.Venables
I take it you want to split the matrix into sub-matrices for which some collection of columns is constant. In your case this is the last four columns. Here's an idea: z - matrix(c(13,1,1,1,1,12,0,0,0,0,8,1,0,1,1,8,0,1,0,0, +

Re: [R] Split rownames into factors

2009-07-28 Thread Bill.Venables
?substring Bill Venables http://www.cmis.csiro.au/bill.venables/ -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of jimdare Sent: Tuesday, 28 July 2009 8:10 AM To: r-help@r-project.org Subject: [R] Split rownames into factors

Re: [R] storing output in html or pdf table format.

2009-07-28 Thread Liviu Andronic
Hello, On 7/28/09, Albert EINstEIN sateeshvar...@gmail.com wrote: clarification on output in R. I have generated summary statistics output for dataset (E.g. sales) in output window. Now i want to store that output in a html or pdf in a table format. if possible can any one provide code for

[R] Sort a dataframe on the column Date

2009-07-28 Thread Meenu Sahi
Dear Users I have a dataframe called mydata4 of the following order with the first column as a date and the rest of the columns are numeric with rate. Column 1 Rate1 : Rate 20 (PxMid) 01/01/2003 07/01/2001 -- I wish to sort this dataframe on the first col in ascending order. I

Re: [R] calculating p-values from t-values for a Bonferroni adjustment

2009-07-28 Thread Dieter Menne
NativeBuff2003 wrote: Sorry I'm new to the list and not great with R. My advisor performed several for me but I am getting a different output when I try to reproduce it. 2*(1-pt(-3.59,598)) 0.000358 -his answer [1] 1.999642 -my answer I was working with a different data set in

Re: [R] computing the radius of an arc

2009-07-28 Thread Hans W Borchers
Nair, Murlidharan T mnair at iusb.edu writes: Alex Brenning, the developer of the RSAGA package told me that and I quote the RSAGA package (which uses functions from the free geographical information system [GIS] SAGA GIS) has a curvature function that is designed to calculate the

[R] Cumulative row sums, row differences

2009-07-28 Thread glen_b
I tried searching but I couldn't quite find what I was looking for. Here's a dummy data matrix (with row and column labels): y 0 1 2 3 4 21 3 4 8 5 5 22 3 6 8 6 NA 23 4 5 11 4 3 24 4 2 1 4 6 25 6 4 4 6 6 I can get cumulative row sums as follows: cy-t(apply(y,1,cumsum)) cy 0

Re: [R] Draw plot.table axis on right hand side

2009-07-28 Thread Dieter Menne
Sean Carmody wrote: With an ordinary plot, to customise the axis it is possible to suppress drawing the axis and then call Axis. I have been trying to change the location of the y-axis on a plot.table plot to the right hand side, but cannot even work out how to suppress drawing the

Re: [R] probability on a barplot

2009-07-28 Thread Dieter Menne
Erin Hodgess-2 wrote: I have a barplot created from a table. What is the best way to set up the barplot such that is shows probability rather totals, please? Maybe histogram or densityplot in lattice? Dieter -- View this message in context:

Re: [R] pairs plot

2009-07-28 Thread Jose Narillos de Santos
Hi Greg I saw, read, the TeachingDemos you suggesttef but when run pairs2 function on my R module says Can´t find function pairs2 How can I load the module or function pairs2? Thanks in advance for your help. You are the best. 2009/7/27, Greg Snow greg.s...@imail.org: Look at the pairs2

[R] R Excel

2009-07-28 Thread Hassan hany
Hi, whenever am trying to start R from excel, or by clicking the[ RExcel2007 with RCommander] icon., i got the following messages boxes : SCTools not available then: there seems to be no R process connected to excel though both r and excel starts after I click the Icon!! Please help Hassan

Re: [R] creating and populating an environment

2009-07-28 Thread Christian Prinoth
I have looked a bit more at this issue. Using new.env() I am able to put new vars into the new environment by using the env$... syntax. This allows to eliminate all variables in one step with rm(env), thus fixing problem 2) in my original mail. Problem 1) though is unsolved, or even worsened,

[R] Odp: Cumulative row sums, row differences

2009-07-28 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 28.07.2009 09:18:43: I tried searching but I couldn't quite find what I was looking for. Here's a dummy data matrix (with row and column labels): y 0 1 2 3 4 21 3 4 8 5 5 22 3 6 8 6 NA 23 4 5 11 4 3 24 4 2 1 4 6 25 6 4 4 6 6

Re: [R] pairs plot

2009-07-28 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 28.07.2009 09:55:11: Hi Greg I saw, read, the TeachingDemos you suggesttef but when run pairs2 function on my R module says Can´t find function pairs2 How can I load the module or function pairs2? Did you do library(TeachingDemos)? Regards Petr

Re: [R] storing output in html or pdf table format.

2009-07-28 Thread ONKELINX, Thierry
Have a look at Sweave (in the utils package) or the R2HTML package. HTH, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest Cel biometrie, methodologie en

Re: [R] Searching for specific values in a matrix

2009-07-28 Thread Martin Maechler
BertG == Bert Gunter gunter.ber...@gene.com on Mon, 27 Jul 2009 15:30:08 -0700 writes: BertG Nothing wrong with rolling your own, but see BertG ?all.equal for R's built-in almost.equal version. Yes, indeed! Note that that needs a little extra care, as it either returns TRUE or a

[R] Fwd: randomized block design analysis in R

2009-07-28 Thread alis villiyam
-- Forwarded message -- From: alis villiyam aalisi...@gmail.com Date: Mon, Jul 27, 2009 at 9:47 AM Subject: randomized block design analysis in R To: bol...@zoology.ufl.edu Dear All user Hello, I'm a student and I have some trouble with the experimental (columns-experiments)

[R] vary the parameters for a function

2009-07-28 Thread Inchallah Yarab
How I can vary the parameters for a function? I have a function with 5 parameters I want to turn the function for a range of numbers for one of these parameters!! i want to have in the end the value of the function in the different cas of one of the paramter (the others paramters are

[R] Odp: vary the parameters for a function

2009-07-28 Thread Petr PIKAL
Hi maybe outer? Regards Petr r-help-boun...@r-project.org napsal dne 28.07.2009 11:36:10: How I can vary the parameters for a function? I have a function with 5 parameters I want to turn the function for a range of numbers for one of these parameters!! i want to have in the

Re: [R] storing output in html or pdf table format.

2009-07-28 Thread David Hajage
Or you can have a look to ascii package (examples here http://eusebe.github.com/ascii/or herehttp://www.ncfaculty.net/dogle/fishR/bookex/AIFFD/AIFFD.html ). david 2009/7/28 ONKELINX, Thierry thierry.onkel...@inbo.be Have a look at Sweave (in the utils package) or the R2HTML package. HTH,

[R] vary paramter of a function

2009-07-28 Thread Inchallah Yarab
i have a function who depends of many parameters and i want to have at the end the result givien by this function for a different value of only one parameter the others parameters are fixed. thank you i didn't understand your answer peter  can you explain me? thank you

[R] How to do poisson distribution test like this?

2009-07-28 Thread Mao Jianfeng
Dear R-listers, I want to reperfrom a poisson distribution test that presented in a recent-published biological research paper (Plant Physiology 2008, vol 148, pp. 1189-1200). That test is about the occurrence number of a kind of gene in separate chromosomes. For instance: The observed gene

[R] Sort a column in a dataframe

2009-07-28 Thread Meenu Sahi
Dear Users This is my dataset called mydata4. I want to sort the dataframe on the first column PxMid which is basically a column with dates. I've tried mydata4-mydata4[order(mydata4$PxMid),] but it doesnt work. Could it be because these are dates? Please help I'm really stuck !! Thank you for

Re: [R] How to do poisson distribution test like this?

2009-07-28 Thread Ted Harding
On 28-Jul-09 10:03:41, Mao Jianfeng wrote: Dear R-listers, I want to reperfrom a poisson distribution test that presented in a recent-published biological research paper (Plant Physiology 2008, vol 148, pp. 1189-1200). That test is about the occurrence number of a kind of gene in separate

Re: [R] Draw plot.table axis on right hand side

2009-07-28 Thread Sean Carmody
Dieter Menne wrote: With an ordinary plot, to customise the axis it is possible to suppress drawing the axis and then call Axis. I have been trying to change the location of the y-axis on a plot.table plot to the right hand side, but cannot even work out how to suppress drawing the

Re: [R] local regression using loess

2009-07-28 Thread Alain Zuur
cindy Guo wrote: Hi, All, I have a dataset with binary response ( 0 and 1) and some numerical covariates. I know I can use logistic regression to fit the data. But I want to consider more locally. So I am wondering how can I fit the data with 'loess' function in R? And what will be the

Re: [R] creating and populating an environment

2009-07-28 Thread Gabor Grothendieck
prepending with env$ seems not so terrible. Another form is: with(e, ...stmt...) or with(e, { ...stmt...; ...stmt...; ... }) where e is your environment. On Tue, Jul 28, 2009 at 3:59 AM, Christian Prinothchristian.prin...@epsilonsgr.it wrote: I have looked a bit more at this issue. Using

Re: [R] Multiple graphs

2009-07-28 Thread Alain Zuur
Data Analytics Corp. wrote: Hi, I wrote a simple master function, run(), that has inside six qplot functions. The goal is to type run() and have all six graphs appear as separate windows so that I can copy them into PowerPoint for a client. When I type run(), only the last graph

[R] check for new files in a given directory

2009-07-28 Thread Andreas Posch
I am trying to continuously evaluate online created data files using R-algorithms. Is there any simple way to let R iteratively check for new files in a given directory, load them and process them? Any help would be highly appreciated. Best, A. [[alternative HTML version

[R] Problem runnin rSymPy

2009-07-28 Thread stenort
Hi all, I'm having major difficulty using the rSymPy package this week, but I have used it without problems before now. Here is an example of what's happening: library(rSymPy) Loading required package: rJava sympy(var('a b c d')) Error in .jcheck() : No running detected. Maybe .jinit() would

Re: [R] Problem runnin rSymPy

2009-07-28 Thread Gabor Grothendieck
Try reviewing the Troubleshooting section on the rSymPy home page: http://rsympy.googlecode.com/#Troubleshooting On Tue, Jul 28, 2009 at 7:12 AM, stenortsten...@merchantsconnected.org.uk wrote: Hi all, I'm having major difficulty using the rSymPy package this week, but I have used it without

Re: [R] check for new files in a given directory

2009-07-28 Thread Barry Rowlingson
On Tue, Jul 28, 2009 at 12:04 PM, Andreas Poschandreas.po...@tugraz.at wrote: I am trying to continuously evaluate online created data files using R-algorithms. Is there any simple way to let R iteratively check for new files in a given directory, load them and process them? Any help would be

[R] check for new files in a given directory

2009-07-28 Thread Andreas Posch
I am trying to continuously evaluate online created data files using R-algorithms. Is there any simple way to let R iteratively check for new files in a given directory, load them and process them? I am using R on Windows XP. Any help would be highly appreciated. Best, A.

Re: [R] check for new files in a given directory

2009-07-28 Thread Ted Harding
On 28-Jul-09 11:04:39, Andreas Posch wrote: I am trying to continuously evaluate online created data files using R-algorithms. Is there any simple way to let R iteratively check for new files in a given directory, load them and process them? Any help would be highly appreciated. Best, A.

Re: [R] check for new files in a given directory

2009-07-28 Thread Ted Harding
On 28-Jul-09 11:23:21, Barry Rowlingson wrote: On Tue, Jul 28, 2009 at 12:04 PM, Andreas Poschandreas.po...@tugraz.at wrote: I am trying to continuously evaluate online created data files using R-algorithms. Is there any simple way to let R iteratively check for new files in a given

[R] Odp: Sort a column in a dataframe

2009-07-28 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 28.07.2009 12:40:59: Dear Users This is my dataset called mydata4. I want to sort the dataframe on the first column PxMid which is basically a column with dates. I've tried mydata4-mydata4[order(mydata4$PxMid),] but it doesnt work. Could it

[R] Looking for example of usage of function unz

2009-07-28 Thread mauede
I would greatly appreciate some example of correct usage of function unz. I have to download and uncompress the following web compressef file: ftp://ftp.sanger.ac.uk/pub/mirbase/targets/v5/arch.v5.txt.homo_sapiens.zip I tried the following command that does not work: Targets.rec - readLines(zz

[R] reading jpeg images?

2009-07-28 Thread Robert L Biddle
Can someone advise me what the most sensible way is to read jpeg images? For our work with image analysis and eye-tracking we have been using the rimage package, on both Macs and Windows PCs. But while setting up a new Windows machine yesterday, I see that rimage is regarded as

Re: [R] pairs plot

2009-07-28 Thread Jose Narillos de Santos
Hi, I tried to load typing library(TeachingDemos) But the message can´t find package TeachingDemos) occurs. I use versión R 2.9 on windows. Can you please guide me? Sorry¡¡¡ 2009/7/28, Petr PIKAL petr.pi...@precheza.cz: Hi r-help-boun...@r-project.org napsal dne 28.07.2009 09:55:11:

[R] Fwd: Forecasting Inflation

2009-07-28 Thread Dilip Bayas
-- Forwarded message -- From: Dilip Bayas agrikonnect.dilipba...@gmail.com Date: Mon, Jul 27, 2009 at 4:51 PM Subject: Forecasting Inflation To: r-help@r-project.org Dear All, I wanted to forecast Inflation for Indian Economy. please send what techniques to be used after the

Re: [R] Looking for example of usage of function unz

2009-07-28 Thread Ted Harding
On 28-Jul-09 12:15:33, mau...@alice.it wrote: I would greatly appreciate some example of correct usage of function unz. I have to download and uncompress the following web compressef file: ftp://ftp.sanger.ac.uk/pub/mirbase/targets/v5/arch.v5.txt.homo_sapiens.z ip I tried the following

Re: [R] storing output in html or pdf table format.

2009-07-28 Thread Tal Galili
Hi Albert. I also came across this: http://cran.r-project.org/web/packages/hwriter/index.html Which is very nice (although I still didn't play with it as much as I wanted) On Tue, Jul 28, 2009 at 7:56 AM, Albert EINstEIN sateeshvar...@gmail.comwrote: Hi every one, Thanks for every one who

Re: [R] Sort a dataframe on the column Date

2009-07-28 Thread Mark Knecht
On Mon, Jul 27, 2009 at 11:46 PM, Meenu Sahimeenus...@gmail.com wrote: Dear Users I have a dataframe called mydata4 of the following order with the first column as a date and the rest of the columns are numeric with rate. Column 1          Rate1 : Rate 20 (PxMid) 01/01/2003 07/01/2001

Re: [R] Fwd: randomized block design analysis in R

2009-07-28 Thread ONKELINX, Thierry
Dear Alisia, These are not very easy questions to answer without detailed knowledge on your design. That's probably why you did not get any responses so far (I've seen your mail pop-up several times). I would recommend that you seek guidance with your supervisor or with the local statistician.

Re: [R] Looking for example of usage of function unz

2009-07-28 Thread Gabor Grothendieck
Also see ?zip.unpack On Tue, Jul 28, 2009 at 8:15 AM, mau...@alice.it wrote: I would greatly appreciate some example of correct usage of function unz. I have to download and  uncompress the following web compressef file:

Re: [R] check for new files in a given directory

2009-07-28 Thread Uwe Ligges
Andreas Posch wrote: I am trying to continuously evaluate online created data files using R-algorithms. Is there any simple way to let R iteratively check for new files in a given directory, load them and process them? I am using R on Windows XP. See ?list.files and ?setdiff Uwe Ligges

[R] xyplot, panel.abline, from, to

2009-07-28 Thread Afshartous, David
All, I'm trying to truncate some lines that are added to an xyplot via panel.abline to allow additional space for inserted text. According to ?panel.abline it seems like from and to will do the trick but it does not work for the sample code below. Any hints much appreciated. Cheers, David x =

Re: [R] Superscripts and rounding

2009-07-28 Thread Uwe Ligges
ehux wrote: I am new to the world of R/programming so this may be a really easy question. I thank you for your patience and help in advance I would like the characters km^2 to be displayed on the plot subtitle as km squared - two as a superscript. I would also like to have the numbers

[R] Skew-Normal Linear Mixed Model (SNLMM)

2009-07-28 Thread Raphael Fraser
Dear ALL, In the Normal Linear Mixed Model (NLMM) we make the assumption that the random effects are normally distributed. Is it possible to fit a linear mixed model in R where the random effects are assumed to have a Skew-Normal distribution? I am trying to reproduce the results in the paper

Re: [R] check for new files in a given directory

2009-07-28 Thread Barry Rowlingson
On Tue, Jul 28, 2009 at 12:36 PM, Ted Hardingted.hard...@manchester.ac.uk wrote: However, this got me looking into '?list.files, and I see there (R version 2.9.0 (2009-04-17)):  recursive: logical. Should the listing recurse into directories? But:  Directories are included only if

[R] R freezes all the time.

2009-07-28 Thread Harerton Dourado
Hi from Brazil, I have installed the latest version of R in my system (WinXP SP3) but R is constantly freezing. Sometimes it happens after loading a module, sometimes it happens when I switch to an othe opened program, sometimes after loading or saving a workspace or after viewing a plot and

[R] Graphing Significant difference

2009-07-28 Thread BrightK
I am new to R and would appreciate help in dealing with this problem. I worked on a some African grasses and have a matrix based on TukeyHSD test showing how the species differ from each other. A value of 1 means they DON't differ significantly from each other, whiles 0 means they differ

Re: [R] pairs plot

2009-07-28 Thread John Kane
Have you installed it first? First: install.packages(TeachingDemos) Then: library(TeachingDemos) --- On Tue, 7/28/09, Jose Narillos de Santos narillosdesan...@gmail.com wrote: From: Jose Narillos de Santos narillosdesan...@gmail.com Subject: Re: [R] pairs plot To: Petr PIKAL

[R] R package for Hierarchical Modelling of Multinomial Logistic Regression

2009-07-28 Thread nikolay12
Hello, I need to implement a hierarchical model for Bayesian multinomial logistic regression (also known as polytomous logistic regression). I plan to use Gaussian priors. I have about 800 variables which are mostly dichotomous. Some are integer valued. What R package would you recommend?

Re: [R] create dataset permanently in package (i.e. default or our own package)

2009-07-28 Thread Albert EINstEIN
Hi, Thanks for your support. we are not getting any thing from your code. i.e. we are unable to creating new package and adding dataset to that new package. so can you help me out in other way i.e. how to add a new dataset to default R distributions like cars and datasets. these two are default

[R] Downloaded file is larger than the starting file

2009-07-28 Thread DeWitt Payne
I'm running R for windows 2.9.1. When I use a script to download a file from the internet, the file is 1,496 bytes larger than the reported file size in the download process. It doesn't give the correct answer when I process it but it doesn't appear to be completely corrupt as the processing

[R] how to add a new dataset to default R distributions

2009-07-28 Thread Albert EINstEIN
Hi, Thanks for your support. we are not getting any thing from your code. i.e. we are unable to creating new package and adding dataset to that new package. so can you help me out in other way i.e. how to add a new dataset to default R distributions like cars and datasets. these two are default

[R] useR! 2010

2009-07-28 Thread Mullen, Katharine Megan
We are happy to announce that the R user conference useR! 2010 is scheduled for July 21-23, 2010, and will take place at the campus of the National Institute of Standards and Technology (NIST) in Gaithersburg, Maryland, USA. As for the predecessor conferences, the program will consist of two

[R] Reg: Creation of own Package and Permanent Dataset in R

2009-07-28 Thread RAJ
Hi, This is Raj from ClinAsia and we have a small query with respect to R Statistical Package. Our Query: Actually while opening R console and R commander we see some packages like car and datasets. In these packages we have default datasets. For example: Women and Prestige so on. Now we

[R] help

2009-07-28 Thread Inchallah Yarab
How I can vary the parameters for a function? I have a function with 5 parameters I want to turn the function for a range of numbers for one of these parameters!! i want to have in the end the value of the function in the different cas of one of the paramter (the others paramters are fixes!!)

Re: [R] xyplot, panel.abline, from, to

2009-07-28 Thread Philipp Pagel
On Tue, Jul 28, 2009 at 09:23:58AM -0400, Afshartous, David wrote: All, I'm trying to truncate some lines that are added to an xyplot via panel.abline to allow additional space for inserted text. According to ?panel.abline it seems like from and to will do the trick but it does not work

Re: [R] R freezes all the time.

2009-07-28 Thread stephen sefick
How much RAM do you have on the machine? On Tue, Jul 28, 2009 at 8:42 AM, Harerton Douradoharer...@terra.com.br wrote: Hi from Brazil, I have installed the latest version of R in my system (WinXP SP3) but R is constantly freezing. Sometimes it happens after loading a module, sometimes it

Re: [R] Determine the dimension-names of an element in an array in R

2009-07-28 Thread Poersching
Hey, I think I have a solution for your problem: Correl-apply(DataArray_1,1:3, function(d1) apply(DataArray_2,c(2,1,3), function(d) cor(d1,d)) ) Correl-Correl[1:4,,,] dimnames(Correl)[[1]]-c Correl-aperm(Correl,c(2,3,1,4)) This one should work. :-) Best Regards, Christian Sauvik De schrieb:

Re: [R] How to deal with this random variable?

2009-07-28 Thread Manuel Ramon
Thank you for your replay Bert. You are right, is complicated to get a good response when people do not know how the experiment was conducted, etc. The main problem, maybe, is that this experiment has a wrong design being complicated to get some good conclusion from it. I read this forum

Re: [R] xyplot, panel.abline, from, to

2009-07-28 Thread Peter Ehlers
David, ?panel.abline does not indicate that 'from/to' are arguments to that function. If you read the help page carefully, you'll see that 'from/to' apply to panel.curve(). Perhaps you thought that the '...' argument can take 'from/to'; again the help page makes it clear that those are to be

[R] Kernlab - Splinedot Kernel

2009-07-28 Thread Mark McDowall
Hi, I am trying to use the splinedot kernel as part of the kernlab package, but I get the following error: Error in votematrix[i, ret 0] - votematrix[i, ret 0] + 1 : NAs are not allowed in subscripted assignments The parameters that I have used to build the model are:

Re: [R] how to add a new dataset to default R distributions

2009-07-28 Thread Gavin Simpson
On Tue, 2009-07-28 at 04:54 -0700, Albert EINstEIN wrote: Hi, Thanks for your support. we are not getting any thing from your code. i.e. we are unable to creating new package and adding dataset to that new package. so can you help me out in other way i.e. how to add a new dataset to default R

Re: [R] check for new files in a given directory

2009-07-28 Thread Ted Harding
On 28-Jul-09 13:40:31, Barry Rowlingson wrote: On Tue, Jul 28, 2009 at 12:36 PM, Ted Hardingted.hard...@manchester.ac.uk wrote: However, this got me looking into '?list.files, and I see there (R version 2.9.0 (2009-04-17)): _recursive: logical. Should the listing recurse into directories?

[R] formatting in r

2009-07-28 Thread Mary A. Marion
Hello, I have output that I want to print out. I am having a few issues. 1] output u to power is really nothing more than a 2 x 11 set of values formed using cbind function and printed out as a data frame How can I get it to output over several lines such as seen here? 2] Critical Z

Re: [R] help

2009-07-28 Thread Ted Harding
On 28-Jul-09 08:28:22, Inchallah Yarab wrote: How I can vary the parameters for a function? I have a function with 5 parameters I want to turn the function for a range of numbers for one of these parameters!! i want to have in the end the value of the function in the different cas of one of

Re: [R] re ading jpeg images?

2009-07-28 Thread Hans W. Borchers
I found the 'biOps' package for Image and data analysis quite helpful. (I did some astronomical investigations with it --- counting galaxies in a Hubble picture---and I do recommend this package.) Under Windows you have to unpack the 'libjpeg' and 'libtiff' libraries beforehand somewhere in

Re: [R] Downloaded file is larger than the starting file

2009-07-28 Thread Uwe Ligges
We cannot know without seeing your script. Uwe Ligges DeWitt Payne wrote: I'm running R for windows 2.9.1. When I use a script to download a file from the internet, the file is 1,496 bytes larger than the reported file size in the download process. It doesn't give the correct answer when

Re: [R] create dataset permanently in package (i.e. default or our own package)

2009-07-28 Thread Petr PIKAL
Hi If you want to use brute force without much knowledge about packages make your own directory in librarary directory select any package in your library directory and copy it to directory you just made leave only INDEX and DESCRIPTION files and R and Data directorires change DESCRIPTION file

Re: [R] xyplot, panel.abline, from, to

2009-07-28 Thread Deepayan Sarkar
On Tue, Jul 28, 2009 at 6:58 AM, Peter Ehlersehl...@ucalgary.ca wrote: David, ?panel.abline does not indicate that 'from/to' are arguments to that function. If you read the help page carefully, you'll see that 'from/to' apply to panel.curve(). Perhaps you thought that the '...' argument can

Re: [R] pairs plot

2009-07-28 Thread Petr PIKAL
r-help-boun...@r-project.org napsal dne 28.07.2009 15:39:03: Have you installed it first? First: install.packages(TeachingDemos) Or if you have problems with correct setting through corporate network rules (like myself) you can download a zip (for Windows) version and unzip it to

Re: [R] Superscripts and rounding

2009-07-28 Thread ehux
sub = sprintf('Seasonal station with natural streamflow - Lat: %s Lon: %s Gross Area %s km^2 - Effective Area %s km^2', stn[['metadata']][['latitude']], stn[['metadata']][['longitude']],stn[['metadata']][['grossarea']], stn[['metadata']][['effectivearea']]), I tried

Re: [R] local regression using loess

2009-07-28 Thread Bert Gunter
Actually, loess is much more than an interpolant. I wouldn't even call it that. It is a local regression technique that comes with all the equipment you get in classical regression. But it is meant for normal-like errors, which is not what you have. -- This is misleading. The local

Re: [R] Help with significance. T-test?

2009-07-28 Thread Ben Bolker
mik07 wrote: Hi, this is more a general statistics question I think. I am working on a system which automatically answers user questions (such systems are commonly called Question Answering systems). I evaluated different versions of the same system on a publicly available test set.

[R] Help with significance. T-test?

2009-07-28 Thread mik07
Hi, this is more a general statistics question I think. I am working on a system which automatically answers user questions (such systems are commonly called Question Answering systems). I evaluated different versions of the same system on a publicly available test set. This set contains 500

Re: [R] spherical wavelets package

2009-07-28 Thread konstantina rizopoulou
Hello to all, I am trying to use the spherical wavelets package on my altimetry data. I am having some problems now and then. Currently I am having an error of error in matrix(0,KK,JJ) : too many elements specified there is a thread of possibly same error

[R] Reading Excel files in Linux

2009-07-28 Thread srpd TCLTK
Hi, I'm using the RODBC package to read Excel files in Windows. I would like to do it in Linux. What´s the best way to read Excel files in Linux? Thanks in advance, Srpd _ y-edit.aspx

Re: [R] local regression using loess

2009-07-28 Thread Ryan Hafen
Are X1 and X2 both numeric? You might want to get them on equivalent scales, and also play around with the smoothing parameter. Try something like: fit - locfit(Y ~ lp(X1, X2, nn=___, scale=TRUE), family=binomial) and see what happens for different values of nn (try values between 0 and 1

[R] aggregating strings

2009-07-28 Thread Dry, Jonathan R
I am currently summarising a data set by collapsing data based on common identifiers in a column. I am using the 'aggregate' function to summarise numeric columns, i.e. aggregate(dat[,3], list(dat$gene), mean). I also wish to summarise text columns e.g. by concatenating values in a comma

Re: [R] Reading Excel files in Linux

2009-07-28 Thread Gabor Grothendieck
The read.xls function in the gdata package can read Excel 2003 files on all platforms. On Tue, Jul 28, 2009 at 10:11 AM, srpd TCLTKsrpd2...@hotmail.com wrote: Hi, I'm using the RODBC package to read Excel files in Windows. I would like to do it in Linux. What´s the best way to read

[R] Odp: aggregating strings

2009-07-28 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 28.07.2009 17:34:35: I am currently summarising a data set by collapsing data based on common identifiers in a column. I am using the 'aggregate' function to summarise numeric columns, i.e. aggregate(dat[,3], list(dat$gene), mean). I also wish

Re: [R] skip plot/blank plot on purpose (multi-plot question)

2009-07-28 Thread Greg Snow
Just to expand a little. Your original question also asked if there is a way to specify which figure to plot in next. If you use par(mfrow=c()) (or mfcol), then you can use par(mfg=c()) to specify which figure to plot next. There is also the split.screen approach where you can split the

Re: [R] check for new files in a given directory

2009-07-28 Thread William Dunlap
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Barry Rowlingson Sent: Tuesday, July 28, 2009 6:41 AM To: ted.hard...@manchester.ac.uk Cc: r-help@r-project.org; Andreas Posch Subject: Re: [R] check for new files in a given

Re: [R] local regression using loess

2009-07-28 Thread Ryan
Bert Gunter gunter.berton at gene.com writes: Actually, loess is much more than an interpolant. I wouldn't even call it that. It is a local regression technique that comes with all the equipment you get in classical regression. But it is meant for normal-like errors, which is not

[R] some QCA questions

2009-07-28 Thread Suzanne van der Post
Dear Adrian Dusa, others, I've recently started to learn R in order to use the QCA package because i think it might offer what other QCA packages don't: possibilities for quite a few conditions and large n. However, can someone tell me approx. how much RAM i need to run QCA on set of +/-

Re: [R] aggregating strings

2009-07-28 Thread Bert Gunter
You are probably going to get tons of answers, as there are many ways -- and packages -- to do this (e.g. see packages reshape and plyr). However, you might want to take a look at ?tapply, for which aggregate() is a wrapper, for the basic core R approach. Bert Gunter Genentech Nonclinical

Re: [R] vary the parameters for a function

2009-07-28 Thread Greg Snow
If you want to have a gui that allows you to change parameter values using buttons/sliders/etc. and see what the effects are, then look at the tkexamp function in the TeachingDemos package (see the examples on the help page). If you have a predetermined set of values for the parameter of

[R] Density plot in ggplot2

2009-07-28 Thread RON70
Hi all, I was trying to draw a stacked density plot like that : library(ggplot2); library(plyr) dat - cbind(rnorm(300), rep(c(1,2), each=150)) ggplot() + geom_density(aes(x=dat[,1], fill=factor(dat[,2]), position=stack)) + xlab() + ylab() + scale_colour_manual(name = Pallet,

[R] Skew-Normal Linear Mixed Model (SNLMM)

2009-07-28 Thread Raphael Fraser
Dear ALL, In the Normal Linear Mixed Model (NLMM) we make the assumption that the random effects are normally distributed. Is it possible to fit a linear mixed model in R where the random effects are assumed to have a Skew-Normal distribution? I am trying to reproduce the results in the paper

Re: [R] Help with significance. T-test?

2009-07-28 Thread Daniel Malter
Look up the McNemar test. That sounds right... Daniel - cuncta stricte discussurus - -Ursprüngliche Nachricht- Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im Auftrag von mik07 Gesendet: Tuesday, July 28, 2009

Re: [R] Help with significance. T-test?

2009-07-28 Thread Doran, Harold
Mika Are you familiar with item response theory? You might consider functions in ltm or MiscPsycho for dealing with binary response data. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of mik07 Sent: Tuesday, July 28, 2009

Re: [R] Searching for specific values in a matrix

2009-07-28 Thread Steve Lianoglou
quick question, i am trying to get an interval of values now with this code by toggling the tolerance limit. is there any way i can modify this code to find values which are within limits of BOTH latitude and longitude? currently i have to pick one or the other. It's not really clear

Re: [R] Density plot in ggplot2

2009-07-28 Thread Paul Emberson
Hi Ron, I'm not sure why ylab doesn't work. Maybe a bug. I note the label doesn't get removed with labs() either. However using scale_y_continuous(name=) does remove the label. For the legend, you are using a fill scale, not a colour scale i.e. fill=factor(dat[,2]), not

[R] character vector - numeric matrix ??

2009-07-28 Thread kathie
Dear R users... I'd like to change this character vector, zz, zz - c(12,56,89) to the following numeric matrix. [,1] [,2] [1,]12 [2,]56 [3,]89 Actually, zz vector has a long length. Any comments will be greatly appreciated. Kathryn Lord -- View this

  1   2   >