Re: [R] plot is not keeping the order of variable

2010-02-21 Thread Or Duek
Thank you very much, You solved my problem. On Mon, Feb 22, 2010 at 12:42 AM, Peter Dalgaard wrote: > Or Duek wrote: > >> Ok, >> It seems that the problem lays in the order (as Ista mentioned), >> But, when I ask R to order it he chooses to order it by size and not by >> the >> specific order I m

[R] new to R Project

2010-02-21 Thread chinna
hi everyone, i am new to R project can anyone please help me by providing documents my goal is using R i have to connect to the database and i have to generate reports. Thanks in advance chinna. -- View this message in context: http://n4.nabble.com/new-to-R-Project-tp1564104p1564104.html S

[R] how to generate graph from dataframe?

2010-02-21 Thread chinna
I connected to database and i am accessing the tables but i dont know how to generate graphs from the database tables. can anyone please help me i am new to R project -- View this message in context: http://n4.nabble.com/how-to-generate-graph-from-dataframe-tp1564099p1564099.html Sent fr

Re: [R] plot is not keeping the order of variable

2010-02-21 Thread Dieter Menne
Peter Dalgaard wrote: > > d <- data.frame(f=c("rare", "medium","well-done")) > #To get the cast in order of appearance, this can be used: > > > d$f <- factor(d$f, levels=unique(d$f)) > > d$f > [1] rare mediumwell-done > Levels: rare medium well-done > > .. which caused some head-s

Re: [R] R on 64-Bit…

2010-02-21 Thread Prof Brian Ripley
Let's not speculate when doing basic research is so easy. I guess the thread about 64-bit Windows referred to was https://stat.ethz.ch/pipermail/r-devel/2010-January/056301.html https://stat.ethz.ch/pipermail/r-devel/2010-January/056411.html (note the update). The CRAN daily check http://cran

Re: [R] retrieve from function

2010-02-21 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 19.02.2010 19:06:52: > > Thank you for response. The problem is that using return(y1) in my function > formula always returns y1, but what I want is to return it only when I wish, > like p.value in > t.test(rnorm(100),rnorm(100))$p.value Put results

Re: [R] R on 64-Bit…

2010-02-21 Thread Sharpie
Axel Urbiz wrote: > > Dear R users, > > I know this issue came up in the list several times. I’m currently > running > R on 32-bit on Windows and due to memory limitation problems would like to > move to a 64-bit environment. I’m exploring my options and would > appreciate > your expertise: >

Re: [R] Use of R in clinical trials

2010-02-21 Thread Kingsford Jones
A John Chambers article (published back when S was but a twinkle in his eye) provides an interesting snapshop of pre-SAS statistical computing: @article{chambers67, title={Some general aspects of statistical computing}, author={Chambers, J.M.}, journal={Journal of the Royal Statistical Socie

[R] (Somewhat) broken EPS files produced

2010-02-21 Thread Wartan Hachaturow
Hello. I'm writing some simple text using sweave, and faced a strange problem with eps files produced for my plots (one example attached). Individual eps files are interpreted by ghostscript just fine, and show up without errors. But once I try to include them into main LaTeX/Sweave document (usin

Re: [R] vloopkup or search function

2010-02-21 Thread Peter Alspach
Tena koe Roslina ?merge HTH Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Roslina Zakaria > Sent: Monday, 22 February 2010 3:15 p.m. > To: r-help@r-project.org > Subject: [R] vloopkup or search functio

Re: [R] vloopkup or search function

2010-02-21 Thread jim holtman
?match and several other ways depending on exactly what you are trying to do. On Sun, Feb 21, 2010 at 9:15 PM, Roslina Zakaria wrote: > Hi, > > Does R has something similar  to vlookup function in excel? > > Thank you for the info. > > > > > >        [[alternative HTML version deleted]] > > > __

[R] vloopkup or search function

2010-02-21 Thread Roslina Zakaria
Hi,   Does R has something similar  to vlookup function in excel?   Thank you for the info. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posti

Re: [R] R on 64-Bit…

2010-02-21 Thread Liviu Andronic
On 2/21/10, Axel Urbiz wrote: > 2) MacOS or Unix. Sorry for my ignorance on this…but if I use any of > these environments on 64-bit and installed R on any of those, this is all I > need to have R working on 64-bit. How about installing specialized packages? > Are the packages on the CRA

[R] tests for measures of influence in regression

2010-02-21 Thread Frank Tamborello
influence.measures gives several measures of influence for each observation (Cook's Distance, etc) and actually flags observations that it determines are influential by any of the measures. Looks good! But how does it discriminate between the influential and non- influential observations by

Re: [R] R on 64-Bit…

2010-02-21 Thread David Winsemius
On Feb 21, 2010, at 4:43 PM, Axel Urbiz wrote: Dear R users, I know this issue came up in the list several times. I’m currently running R on 32-bit on Windows and due to memory limitation problems would like to move to a 64-bit environment. I’m exploring my options and would appreciate

Re: [R] R on 64-Bit…

2010-02-21 Thread Newbie19_02
I'm using R for x64bit on my Windows machine and I haven't had any problems. I've installed a number of packages for data analysis and they all seem to work. -- View this message in context: http://n4.nabble.com/R-on-64-Bit-tp1563895p1563910.html Sent from the R help mailing list archive at N

Re: [R] Newbie woes with par:mar

2010-02-21 Thread Dimitri Shvorob
Thanks a lot, Peter! -- View this message in context: http://n4.nabble.com/Newbie-woes-with-par-mar-tp1563745p1563905.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

Re: [R] R on 64-Bit…

2010-02-21 Thread Mark Knecht
On Sun, Feb 21, 2010 at 2:43 PM, Axel Urbiz wrote: > Dear R users, > > I know this issue came up in the list several times.  I’m currently running > R on 32-bit on Windows and due to memory limitation problems would like to > move to a 64-bit environment.  I’m exploring my options and would apprec

Re: [R] plot is not keeping the order of variable

2010-02-21 Thread Peter Dalgaard
Or Duek wrote: Ok, It seems that the problem lays in the order (as Ista mentioned), But, when I ask R to order it he chooses to order it by size and not by the specific order I mentioned when I built the vector. Is it possible to tell him to keep the order as mentioned? Thank you. You're still

[R] R on 64-Bit…

2010-02-21 Thread Axel Urbiz
Dear R users, I know this issue came up in the list several times. I’m currently running R on 32-bit on Windows and due to memory limitation problems would like to move to a 64-bit environment. I’m exploring my options and would appreciate your expertise: 1) Windows 64-bit: Prof. Brian Rip

Re: [R] Error with write.table

2010-02-21 Thread Peter Ehlers
On 2010-02-21 15:06, jmgray wrote: I was trying to save a data frame to an excel file using the following command: write.table(myData, file="myData.csv",sep=",", row.names=F) The command works for some data frames, but for other data frames, I get the following error: Error in if (inherits

Re: [R] plot is not keeping the order of variable

2010-02-21 Thread Don MacQueen
Perhaps this example will help. x <- factor(c('b','a','d'), levels=c('a','d','b')) y <- 1:3 plot(x,y) And compare with z <- factor(c('b','a','d')) plot(z,y) In the first, the plot is in the order that I chose. In the second it is in the order that R chose -- and R chose it according

Re: [R] Newbie woes with par:mar

2010-02-21 Thread Peter Ehlers
On 2010-02-21 12:51, Dimitri Shvorob wrote: I have a simple barchart with horizontal bars and horizontal tick labels, produced with barplot(x, horiz = T, names.arg = c, las = 1) The labels are longish strings, truncated on the plot. I wish to leave more space for the left margin, and experimen

Re: [R] Error with write.table

2010-02-21 Thread jmgray
> I was trying to save a data frame to an excel file using the following > command: > > write.table(myData, file="myData.csv",sep=",", row.names=F) > > The command works for some data frames, but for other data frames, I get > the > following error: > > Error in if (inherits(X[[j]], "data.frame")

[R] Newbie woes with par:mar

2010-02-21 Thread Dimitri Shvorob
I have a simple barchart with horizontal bars and horizontal tick labels, produced with barplot(x, horiz = T, names.arg = c, las = 1) The labels are longish strings, truncated on the plot. I wish to leave more space for the left margin, and experiment with mar parameter, barplot(x, horiz = T, n

Re: [R] PostgreSQL under Snow Leopard

2010-02-21 Thread Dr Eberhard W Lisse
Thank you, last post 2007. el On 2010-02-21 22:05 , David Winsemius wrote: > > You should check the R-Mac-SIG archives: > > http://dir.gmane.org/gmane.comp.lang.r.mac > > http://markmail.org/browse/org.r-project.r-sig-mac > > And if not found, then post on that list. > > David.

Re: [R] Comparing two date columns

2010-02-21 Thread Newbie19_02
Dear David and Mark, Thanks very much for your help. THey were actually in date format so pmin works really well. I didn't realise that you could use it on dates that is why I was trying to coerce the date into a numeric. Thanks for both suggestions and I will remember to use a working example

[R] cross-validation in plsr package

2010-02-21 Thread Peter Tillmann
Dear readers, can anyone give an example how to use cross-validation in the plsr package. I miss to find the number of factors proposed by cross-validation as optimum. Thank you Peter -- View this message in context: http://n4.nabble.com/cross-validation-in-plsr-package-tp1563815p1563815.htm

Re: [R] Comparing two date columns

2010-02-21 Thread David Winsemius
On Feb 21, 2010, at 2:19 PM, Newbie19_02 wrote: Hi everyone, I have another fairly simple question. I want to take the earliest of two dates from these two date columns. I've tried converting the dates to numbers and just get a vector full of NA's. I've also tried using the chron func

[R] Comparing two date columns

2010-02-21 Thread Newbie19_02
Hi everyone, I have another fairly simple question. I want to take the earliest of two dates from these two date columns. I've tried converting the dates to numbers and just get a vector full of NA's. I've also tried using the chron function to compare the two and have been unsuccessful. I th

Re: [R] Exporting Graphs

2010-02-21 Thread Tal Galili
BTW - if you are using an image with little color (but many lines), I remember reading that png is better to use then jpeg. Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (He

Re: [R] Exporting Graphs

2010-02-21 Thread Karthik
Thank you everyone. Your advice helped. Right now I am working through Introductory Statistics with R (Dalgaard) and will also take a look at the R Manual. --Karthik [:-)]+|=0='' On Sun, Feb 21, 2010 at 12:01 PM, Sharpie wrote: > > > Karthik wrote: >> >> Hello Tal, >> This is the code. >> >> -

Re: [R] How get the single bar x coordinate in barchart when groups is used?

2010-02-21 Thread Peter Ehlers
On 2010-02-20 6:22, Walmes Marques Zeviani wrote: Hi all, I am using barchart() to plot values above the bars. When using groups argument we get bars grouped arround a given x level. By placing values above this bars we need to know the respective x coordinates. How can I get it? require(lat

Re: [R] PostgreSQL under Snow Leopard

2010-02-21 Thread David Winsemius
On Feb 21, 2010, at 1:47 PM, Dr Eberhard W Lisse wrote: Hi, I have nicely used RdbiPgSQL under 10.5 but now that I run 10.6 I can't get this to work. I am quite sure I will not be the first to have this problem, so can someone please point me somewhere where this has been described or let me

Re: [R] Exporting Graphs

2010-02-21 Thread Sharpie
Karthik wrote: > > Hello Tal, > This is the code. > > >> hist(rnorm(100)) >> jpeg("histogram.jpeg") > --- > > Even when I decrease the quality, I still have the same problem. > > >> hist(rnorm(100)) >> jpeg("histogram.j

Re: [R] Exporting Graphs

2010-02-21 Thread Stephan Kolassa
Hi Karthik, I think you will need to do something like jpeg("histograms.jpg") hist(rnorm(100)) dev.off() HTH Stephan Karthik schrieb: Hello Tal, This is the code. hist(rnorm(100)) jpeg("histogram.jpeg") --- Even when I decrease the quality, I s

Re: [R] Exporting Graphs

2010-02-21 Thread baptiste auguie
Hi, just to make sure, you didn't forget to close the device with dev.off() ? baptiste On 21 February 2010 20:48, Karthik wrote: > Hello Tal, > This is the code. > > >> hist(rnorm(100)) >> jpeg("histogram.jpeg") > --- > > Even when I decrease the qua

Re: [R] Exporting Graphs

2010-02-21 Thread Karthik
Hello Tal, This is the code. > hist(rnorm(100)) > jpeg("histogram.jpeg") --- Even when I decrease the quality, I still have the same problem. > hist(rnorm(100)) > jpeg("histogram.jpeg",quality=30) -

[R] PostgreSQL under Snow Leopard

2010-02-21 Thread Dr Eberhard W Lisse
Hi, I have nicely used RdbiPgSQL under 10.5 but now that I run 10.6 I can't get this to work. I am quite sure I will not be the first to have this problem, so can someone please point me somewhere where this has been described or let me have a cookbook? greetings, el ___

[R] machine precision problem

2010-02-21 Thread wendy
Dear all, I am analysising a set of gene expression data using multiplicative Gaussian Kernel function. I calculated the kernels between two gene sets with 2 genes for each set. The kernels are less than 1, therefore the product of the kernels is out of the minimum precision in R. I wonder if

Re: [R] Exporting Graphs

2010-02-21 Thread Tal Galili
Hi Karthik, Please give a sample code of what it is that you are doing that is causing this. Also, have a look at: ?pdf Or ?png Cheers, Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.tal

[R] Exporting Graphs

2010-02-21 Thread Karthik
I am a beginner to R, and am working on exporting graphs. Even when I reduce the quality, it takes 30 or 40 minutes to export the graph. Does anyone have suggestions on how to make it faster? Thank you! Karthik __ R-help@r-project.org mailing list https

Re: [R] error in using sample( )

2010-02-21 Thread Peter Ehlers
On 2010-02-18 8:48, j...@math.ucdavis.edu wrote: Hi, I am using the command sample(c(0,1,2),1,prob=c(0.2,0.3,0.5)) and I have this error notification "Error in sample(c(0,1,2),1,prob=c(0.2,0.3,0.5)): unused argument(s)(1,prob=c(0.2,0.3,0.5)) I don't know what is going wrong. Please give

Re: [R] Unordered Factors For ggplot?

2010-02-21 Thread Juliet Hannah
It would be easier with some example data. Make sure the data is represented by factors and check the levels and relevel if needed. Something like: df$day <- factor(df$day, levels = c("30", "29", "20)) Also search the ggplot2 mailing list for factor and order. I think similar questions are asked

Re: [R] What is your system for WorkFlow and Source Code Organizing in R ?

2010-02-21 Thread Jeff Laake
On 2/20/2010 9:49 AM, Tal Galili wrote: Hello dear R users, Recently there has been several fascinating threads on the website stackoverflow regarding the subject of R WorkFlow best practices: - What best practices do you use for programming in R?

[R] Hotelling T-test in R - error?

2010-02-21 Thread stephalope
Hey there, I am trying to do a series of hotelling t-tests in R. But I keep getting the following error: > mat <- > cbind(Dataset$Ula.l.sl1A,Dataset$incisordepth.residuals,Dataset$lclhm.residuals,Dataset$lclpsl2.residuals,Dataset$llaheight.residuals,Dataset$llas.residuals,Dataset$lm3.m1,Dataset$

[R] odfWeave - merged table cells, and adding information like totals and p-values

2010-02-21 Thread Polwart Calum (County Durham and Darlington NHS Foundation Trust)
I'm hoping I'm missing some (probably fundamental basic process) which might make my life easier! Lets assume I have a 3 column table summarizing results from a trial from three arms (Arm A, B and C). For each arm there will be a number of pieces of information to report. The simplest example

Re: [R] plot is not keeping the order of variable

2010-02-21 Thread Or Duek
Ok, It seems that the problem lays in the order (as Ista mentioned), But, when I ask R to order it he chooses to order it by size and not by the specific order I mentioned when I built the vector. Is it possible to tell him to keep the order as mentioned? Thank you. On Sun, Feb 21, 2010 at 6:16 P

Re: [R] plot is not keeping the order of variable

2010-02-21 Thread Ista Zahn
Hi Or, I can't know for sure what your problem is without an example, but the first thing I would do is check to make sure that your labels are stored as an ordered factor (and that the order is correct). See ?factor for details. Best, Ista On Sun, Feb 21, 2010 at 10:57 AM, Or Duek wrote: > Hi,

[R] plot is not keeping the order of variable

2010-02-21 Thread Or Duek
Hi, I created a simple data frame with one factor and one numerical variable. The factor was actually a vector of names of techniques to trimm reaction time data. I want to create a plot that shows the value of F test for every trimming method. So the data frame has its trim factor (who has those l

Re: [R] Tutorials and scripts of Stochastic Frontier Analysis and Linear Programming.

2010-02-21 Thread Arne Henningsen
Hi Marcus! On Sun, Feb 21, 2010 at 1:47 PM, Marcus Vinicius wrote: > I want to program  my own models about Stochastic Frontier Analysis and > Linear programming (Data Envelopment Analysis). In this context, is there > anyone that may help me with some simple tutorials and scripts about these > i

Re: [R] 3D plot

2010-02-21 Thread Duncan Murdoch
On 18/02/2010 11:43 AM, David A.G wrote: Dearl list, can anyone point me to a function or library that can create a graph similar to the one in the following powerpoint presentation? It could be done in rgl with a lot of work. I don't know of a package where someone has already done the wor

[R] Intervention Analysis

2010-02-21 Thread Jian Kang
Dear Sir/Madam, I am doing the intervention analysis on climate data (time series). Is there any package or methods to estimate the parameters (delta & omega) by R? Thank you very much, Best, Jian Kang [[alternative HTML version deleted]] __

Re: [R] aggregating using 'with' function

2010-02-21 Thread AC Del Re
Wow! Jim, this is really impressive. I can't wrap my head around how you figured this out. Thank you, AC On Sun, Feb 21, 2010 at 12:02 AM, jim holtman wrote: > This will do it.  You can see two different values for id=1: > >>  x <- with(datas,  aggregate(list(r = r),  by = list(id = id, mod1 =

[R] Tutorials and scripts of Stochastic Frontier Analysis and Linear Programming.

2010-02-21 Thread Marcus Vinicius
Dear all, I want to program my own models about Stochastic Frontier Analysis and Linear programming (Data Envelopment Analysis). In this context, is there anyone that may help me with some simple tutorials and scripts about these issues? Thanks a lot. -- Marcus Vinicius Pereira de Souza, Prof.

[R] How to: Compare Two dendrograms (Hierarchical Clusterings) ?

2010-02-21 Thread Tal Galili
Hello all, I wish to compare two dendrograms (representing Hierarchical Clusterings). My problems are several: 1) how do I manually create a dendrogram object ? That is, how can I reconstruct it as an "hclust" object that creates such a dendrogram, when all I have is the dendrogram image (but do

[R] Downloading data from Reuters - second trial

2010-02-21 Thread Thomas Schwander
Dear lists (I was not sure which list would be the better-one), I'm trying to download data from Reuters (3000 Xtra) into R with the extension written by Rory Winston (http://www.theresearchkitchen.com). I first stored the dlls into the bin directory of R, tried to load it into R with dyn.load

Re: [R] a question about the command "followup.plot" of epicale package

2010-02-21 Thread Peter Ehlers
Works fine for me. Maybe you're messing up epicalc's use() procedure. It would really help if you took the trouble to read and follow the posting guide and provide *reproducible code* to illustrate your problem. It's also customary to indicate where the data can be found (Orthodont is in pkg n

[R] Time series cross-sectional regression analysis

2010-02-21 Thread Shubha Vishwanath Karanth
Hi all, Is there a package in R to perform time series cross-sectional regression analysis (like the TSCSREG procedure in SAS)? Thanks for the info. Thanks and Regards, Shubha Karanth | Amba Research Ph +91 80 3980 8283 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * Sa

Re: [R] Use of R in clinical trials

2010-02-21 Thread Dieter Menne
Looks like my message misunderstood: I tried to explain that "assay validation" and "validation for clinical trials" are mixed up by people working mainly in clinical applications, who have to make judgments about statistical applications. There is nothing wrong in using SAS, R or Excel (wi

Re: [R] What is the difference between expression and quote whenused with eval()?

2010-02-21 Thread Romain Francois
On 02/21/2010 01:45 AM, blue sky wrote: On Sat, Feb 20, 2010 at 2:40 AM, Romain Francois wrote: On 02/19/2010 10:31 PM, William Dunlap wrote: -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of blue sky Sent: Friday, February 19,