[R] Class "coef.mer" into a data.frame?

2010-12-30 Thread Jukka Koskela
Hello, Could somebody please tell me what am I doing wrong in following? I try extract coefficients (using arm-package) from the lmer frunction, but I get the following warning: a<-data.frame(coef(res)) Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFact

[R] help me

2010-12-30 Thread Sintayehu Aynalem
I nanna subscribe to r-help. Can you please guide me... Santos [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-projec

Re: [R] Changing column names

2010-12-30 Thread Daniel Nordlund
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Vincy Pyne > Sent: Thursday, December 30, 2010 10:07 PM > To: r-help@r-project.org > Subject: [R] Changing column names > > Dear R helpers > > Wish you all a very Happy and Prosp

[R] Changing column names

2010-12-30 Thread Vincy Pyne
Dear R helpers Wish you all a very Happy and Prosperous New Year 2011. I have following query. country = c("US", "France", "UK", "NewZealand", "Germany", "Austria", "Italy", "Canada") Through some other R process, the result.csv file is generated as result.csv var1   var2  var3  var4   

Re: [R] modifying user agent strings in http requests

2010-12-30 Thread Soumendra
I had looked at that link, but it doesn't answer my question. Here is the answer I got from StackOverflow: options("HTTPUserAgent") or getOption("HTTPUserAgent") prints your current settings, and options(HTTPUserAgent="My settings") is the way to change it. -- Don't worry about people stealing y

[R] Silhouette function problem

2010-12-30 Thread ADias
Hi, I am using code below to get a plot that will show me on the X axis the number of clusters and on the Y axis the cluster average widths. However I am getting this error: Error in summary(silhouette(cutree(d, x), dist(iris[, -5])))$si.summary : $ operator is invalid for atomic vectors the

Re: [R] pdf() Export Problem: Circles Interpreted as Fonts from ggplot2 Graphics

2010-12-30 Thread Dennis Murphy
Hi Adam: On Thu, Dec 30, 2010 at 2:59 PM, Adam Carr wrote: > Good Evening: > > I am putting together a large report with plots created in R, V 2.12.0. > Most of > the plots are created using ggplot2 V0.8.9. I use R's pdf() command to > export > the plot to a pdf file. I am exporting the plots an

Re: [R] pdf() Export Problem: Circles Interpreted as Fonts from ggplot2 Graphics

2010-12-30 Thread David Winsemius
?points pdf(file="aplot.pdf") plot(1,1, pch=183, font=5) dev.off() On Dec 30, 2010, at 5:59 PM, Adam Carr wrote: Good Evening: I am putting together a large report with plots created in R, V 2.12.0. Most of the plots are created using ggplot2 V0.8.9. I use R's pdf() command to export th

Re: [R] pdf() Export Problem: Circles Interpreted as Fonts from ggplot2 Graphics

2010-12-30 Thread Hadley Wickham
> The Inkscape user asked if there was any way that R could be coerced to use > actual circles or paths for the points. I am not aware of a way to do this so > any input from anyone here would be greatly appreciated. pdf(..., useDingbats = F) Hadley -- Assistant Professor / Dobelman Family Juni

Re: [R] how to see what's wrong with a self written function?

2010-12-30 Thread casperyc
Hi Petr Savicky, It is very interesting and a good way to plot, so that helps me to visualized the method, also easier to see what's wrong. The "readline" is new to me, and I should learn how to use it in the future. Thanks! casper -- View this message in context: http://r.789695.n4.nabble.c

Re: [R] Printing graphics in Sweave problem

2010-12-30 Thread Mark Heckmann
Works, thanks! Mark Am 31.12.2010 um 01:30 schrieb Duncan Murdoch: > On 30/12/2010 6:14 PM, Mark Heckmann wrote: >> I want to print a .pdf file using Sweave like below. I do not want to use >> fig=true as I want to include it via normal tex. >> The problem: the pdf document always contains the

Re: [R] Printing graphics in Sweave problem

2010-12-30 Thread Duncan Murdoch
On 30/12/2010 6:14 PM, Mark Heckmann wrote: I want to print a .pdf file using Sweave like below. I do not want to use fig=true as I want to include it via normal tex. The problem: the pdf document always contains the lines null device 1 at the position where the pdf was prompted. <>= pdf("tes

[R] (no subject)

2010-12-30 Thread Raffaello Vardavas
Dear Help, I am using the library RODBC to export data into an excel file with different sheets. Here is the code: library(RODBC) save2excel <- function(x, t.name,channel) { sqlSave(channel, x, tablename = t.name, rownames = FALSE) } ## Write Parameters to Excel channel <- odbcConnectExce

Re: [R] access a column of a dataframe without qualifying the name of the column

2010-12-30 Thread peter dalgaard
On Dec 30, 2010, at 07:12 , wrote: > Here is an alternaive Now that's a rather interesting novel word you got there, Bill > approach that is closer to that used by lm and friends. > >> df <- data.frame(x=1:10,y=11:20) >> test <- function(col, dat) eval(substitute(col), envir = dat) >> t

Re: [R] pdf() Export Problem: Circles Interpreted as Fonts from ggplot2 Graphics

2010-12-30 Thread David Winsemius
You could try using the Symbol font's solid circle as pch , octmode 267, if I am reading the output from the TestChars function on the points help page correctly. BTW, I opened your document in GIMP and it shows "q"'s as well. -- david. On Dec 30, 2010, at 5:59 PM, Adam Carr wrote: Goo

Re: [R] optim and singularity

2010-12-30 Thread emorway
Hi Tom, I followed you suggestion and found the following: class(temp.dat$WTD) #[1] "numeric" temp.dat$WTD<-na.approx(temp.dat$WTD,as.numeric(as.Date(temp.dat$Meas_Date,"%m/%d/%Y"))) class(temp.dat$WTD) #[1] "numeric" Have I misunderstood you? If not, then my original confusion still stands..

[R] Printing graphics in Sweave problem

2010-12-30 Thread Mark Heckmann
I want to print a .pdf file using Sweave like below. I do not want to use fig=true as I want to include it via normal tex. The problem: the pdf document always contains the lines null device 1 at the position where the pdf was prompted. <>= pdf("test.pdf") plot(1:10) dev.off() @ How c

Re: [R] drop observations

2010-12-30 Thread DrorD
Hi Charlene, Have you looked at: >?subset dror -- View this message in context: http://r.789695.n4.nabble.com/drop-observations-tp3168884p3168906.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list http

Re: [R] drop observations

2010-12-30 Thread David Winsemius
On Dec 30, 2010, at 5:53 PM, David Winsemius wrote: On Dec 30, 2010, at 4:54 PM, Charlène Cosandier wrote: Hi, I want to drop observations with value 0 from my data.frame "dta" for each of the two variables "c01" and "ctotale". How can I do that? And on second look I wonder if my trans

Re: [R] drop observations

2010-12-30 Thread David Winsemius
On Dec 30, 2010, at 4:54 PM, Charlène Cosandier wrote: Hi, I want to drop observations with value 0 from my data.frame "dta" for each of the two variables "c01" and "ctotale". How can I do that? Thanks subset(dta, !( c01==0 | ctotale==0) ) ... remembering of course to assign this resu

[R] The R Journal, Vol.2 Issue 2

2010-12-30 Thread Peter Dalgaard
The second issue of the second volume of The R Journal is now available at http://journal.r-project.org/current.html. Thanks to everyone involved. Next year, Heather Turner will be Editor-in-chief, and Hadley Wickham joins the Editorial Board, and Vince Carey leaves us. Peter Dalgaard Editor-in

[R] drop observations

2010-12-30 Thread Charlène Cosandier
Hi, I want to drop observations with value 0 from my data.frame "dta" for each of the two variables "c01" and "ctotale". How can I do that? Thanks Charlène Lisa Cosandier [[alternative HTML version deleted]] __ R-help@r-project.org mailing l

Re: [R] python-like dictionary for R

2010-12-30 Thread Paul Rigor
Thanks gang, I'll work with named vectors and concatenate as needed. Paul On Thu, Dec 23, 2010 at 7:39 AM, Seth Falcon wrote: > On Wed, Dec 22, 2010 at 7:05 PM, Martin Morgan wrote: > > On 12/22/2010 05:49 PM, Paul Rigor wrote: > >> Hi, > >> > >> I was wondering if anyone has played around this

Re: [R] Different results in glm() probit model using vector vs. two-column matrix response

2010-12-30 Thread peter dalgaard
On Dec 30, 2010, at 22:01 , Lensing, Shelly Y wrote: (Once will do...) > Hi - I am fitting a probit model using glm(), and the deviance and residual > degrees of freedom are different depending on whether I use a binary response > vector of length 80 or a two-column matrix response (10 rows) w

Re: [R] Analysing Character Strings for subsequent frequency analysis

2010-12-30 Thread Gabor Grothendieck
On Thu, Dec 30, 2010 at 1:03 PM, bob stoner wrote: > Hi > I'm trying to get to grips with R and establish R as a teaching medium in my > secondary school. I would like to use R to analyse text so I can produce > frequency analysis of the text for subsequent examination of ciphers. I can > produce

Re: [R] Analysing Character Strings for subsequent frequency analysis

2010-12-30 Thread Marc Schwartz
On Dec 30, 2010, at 12:03 PM, bob stoner wrote: > Hi > I'm trying to get to grips with R and establish R as a teaching medium in my > secondary school. I would like to use R to analyse text so I can produce > frequency analysis of the text for subsequent examination of ciphers. I can > produce

[R] Different results in glm() probit model using vector vs. two-column matrix response

2010-12-30 Thread Lensing, Shelly Y
Hi - I am fitting a probit model using glm(), and the deviance and residual degrees of freedom are different depending on whether I use a binary response vector of length 80 or a two-column matrix response (10 rows) with the number of success and failures in each column. I would think that these

Re: [R] latex() etc.: How to nicely format a matrix for a LaTeX document?

2010-12-30 Thread Liviu Andronic
On Thu, Dec 30, 2010 at 9:48 PM, Marius Hofert wrote: > Thanks, John, I did. > > Here is an update [not all problems are solved; can they be?]: > > Consider: > > library(xtable) > mat <- matrix(c(1,NA,3,100,10012.23423,4), ncol = 3, byrow = TRUE) > print(xtable(mat, digits = 1), floating = FALSE,

Re: [R] latex() etc.: How to nicely format a matrix for a LaTeX document?

2010-12-30 Thread Marius Hofert
Thanks, John, I did. Here is an update [not all problems are solved; can they be?]: Consider: library(xtable) mat <- matrix(c(1,NA,3,100,10012.23423,4), ncol = 3, byrow = TRUE) print(xtable(mat, digits = 1), floating = FALSE, only.contents = TRUE, include.rownames = FALSE, include.colname

Re: [R] optim and singularity

2010-12-30 Thread Tom Purucker
check on: class(temp.dat$WTD) before and after the na.approx statement, you have changed it from numeric to character Best, Tom On Thu, Dec 30, 2010 at 3:16 PM, emorway wrote: > > Hello, > > I was unable to find clues to my problem in ?optim.  Using the data and code > below, I get an error ("sy

[R] Different results in glm() probit model using vector vs. two-column matrix response

2010-12-30 Thread Lensing, Shelly Y
Hi - I am fitting a probit model using glm(), and the deviance and residual degrees of freedom are different depending on whether I use a binary response vector of length 80 or a two-column matrix response (10 rows) with the number of success and failures in each column. I would think that these

Re: [R] Reading sas7bdat files into R

2010-12-30 Thread jthetzel
Sashi, There is also a command line utility for sas7bdat files called dsread (http://www.oview.co.uk/dsread/). I've never used it, but it looks good. Built for Windows, but should run under Linux with Wine. Jeremy Jeremy T. Hetzel Boston University -- View this message in context: http://r.

Re: [R] Importing Sas files to R

2010-12-30 Thread jthetzel
Reka, If you do not have SAS available, there is also a free program provided by SAS called the SAS System Viewer, which will export sas7bdata files to csv. N.b. that I've heard it can be buggy if any character variables contain unmatched quotes. I've also read in a previous post (http://r.7896

Re: [R] Panel Data Analysis in R

2010-12-30 Thread Jude Ryan
You wrote: Ø Dear All, Ø Can anyone provide me with reference notes(or steps) towards analysis of?? (un)balanced panel data in R. Ø Thank you! The "plm" package does panel data analysis in R. See the vignette at: cran.r-project.org/web/packages/plm/vignettes/plm.pdf. There are other simil

Re: [R] unexpected input in rpart

2010-12-30 Thread maysher
Thanks Petr and yes you are right I had the wrong tilda. I finally figured this out not long after posting my question. I had pulled the wrong tilda from the special characters menu. Thanks again for the help. -- View this message in context: http://r.789695.n4.nabble.com/unexpected-input-in-rp

[R] Analysing Character Strings for subsequent frequency analysis

2010-12-30 Thread bob stoner
Hi I'm trying to get to grips with R and establish R as a teaching medium in my secondary school. I would like to use R to analyse text so I can produce frequency analysis of the text for subsequent examination of ciphers. I can produce code in VBA but I am struggling when writing in R to exam

Re: [R] latex() etc.: How to nicely format a matrix for a LaTeX document?

2010-12-30 Thread John Kane
Have a look at xtable. --- On Thu, 12/30/10, Marius Hofert wrote: > From: Marius Hofert > Subject: [R] latex() etc.: How to nicely format a matrix for a LaTeX document? > To: "Help R" > Received: Thursday, December 30, 2010, 11:50 AM > Dear (T)eXpeRts, > > I try to create a LaTeX table from

[R] optim and singularity

2010-12-30 Thread emorway
Hello, I was unable to find clues to my problem in ?optim. Using the data and code below, I get an error ("system is exactly singular") when a particular line of code is left in, but have found that 'optim' works when I comment it out. The line of code in question is after the closeAllConnectio

Re: [R] Why is format(10000, big.mark = "\\,") not 10\,000?

2010-12-30 Thread Duncan Murdoch
Hi Uwe. As you suggested in a private mail, the reversed big.mark looks like a bug. I've fixed it for R 2.13.0. Duncan Murdoch On 30/12/2010 1:55 PM, Uwe Ligges wrote: On 30.12.2010 19:53, Marius Hofert wrote: Dear Uwe, Actually I expected format(1, big.mark = ",") to work (y

Re: [R] rgl.snapshot() : no longer works?

2010-12-30 Thread Yihui Xie
That's great! Thanks very much! Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, Dec 30, 2010 at 1:14 PM, Duncan Murdoch wrote: > On 30/12/2010 12:59 PM, Yihui Xie wrote: >> >> Thanks a

Re: [R] access a column of a dataframe without qualifying the name of the column

2010-12-30 Thread peter dalgaard
On Dec 30, 2010, at 01:44 , David Winsemius wrote: > > On Dec 29, 2010, at 7:11 PM, John Sorkin wrote: > >> I am trying to write a function that will access a column of a data frame >> without having to qualify the name of the data frame column as long as the >> name of the dataframe is passe

Re: [R] rgl.snapshot() : no longer works?

2010-12-30 Thread Duncan Murdoch
On 30/12/2010 12:59 PM, Yihui Xie wrote: Thanks a lot! Unfortunately we have no access to r-forge these days... Could you put the latest version in your homepage? (the one in http://www.stats.uwo.ca/faculty/murdoch/software/ is outdated) Sure. I can't build the 64 bit one from here at home, bu

Re: [R] R-forge is down?

2010-12-30 Thread peter dalgaard
On Dec 30, 2010, at 18:53 , Uwe Ligges wrote: > > > On 30.12.2010 18:43, Yihui Xie wrote: >> so it is the same for the new packages submitted to CRAN (FTP)? I see >> the packages in the incoming directory date back to 12/24. > > Yes, sometimes even Kurt is out of office. Fortune candidate! >

Re: [R] Why is format(10000, big.mark = "\\,") not 10\,000?

2010-12-30 Thread Duncan Murdoch
On 30/12/2010 1:53 PM, Marius Hofert wrote: Dear Uwe, Actually I expected format(1, big.mark = ",") to work (you need to double excape the backslashes here). this I also tried :-) But the two characters are reversed due to the code in prettyNum(). Not sure if it is expected, but

Re: [R] Why is format(10000, big.mark = "\\,") not 10\,000?

2010-12-30 Thread Marius Hofert
Ahhh, great! I knew it will be correct if the output is directed to a file, but I wanted it for the console [which is perfectly solved by cat()]. Thanks, Uwe. Cheers, Marius On 2010-12-30, at 19:55 , Uwe Ligges wrote: > > > On 30.12.2010 19:53, Marius Hofert wrote: >> Dear Uwe, >> >>> A

Re: [R] Why is format(10000, big.mark = "\\,") not 10\,000?

2010-12-30 Thread Uwe Ligges
On 30.12.2010 19:53, Marius Hofert wrote: Dear Uwe, Actually I expected format(1, big.mark = ",") to work (you need to double excape the backslashes here). this I also tried :-) But the two characters are reversed due to the code in prettyNum(). Not sure if it is expected, but

Re: [R] Why is format(10000, big.mark = "\\,") not 10\,000?

2010-12-30 Thread Marius Hofert
Dear Uwe, > Actually I expected > > format(1, big.mark = ",") > > to work (you need to double excape the backslashes here). this I also tried :-) > > But the two characters are reversed due to the code in prettyNum(). Not sure > if it is expected, but the user was probably not expec

Re: [R] Why is format(10000, big.mark = "\\,") not 10\,000?

2010-12-30 Thread Uwe Ligges
Actually I expected format(1, big.mark = ",") to work (you need to double excape the backslashes here). But the two characters are reversed due to the code in prettyNum(). Not sure if it is expected, but the user was probably not expected to use more than a single character as the big

[R] Why is format(10000, big.mark = "\\,") not 10\,000?

2010-12-30 Thread Marius Hofert
Hi, why does format(1, big.mark = "\\,") not give me "10\,000"? How can I get this kind of "big.mark"? Cheers, Marius __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-p

Re: [R] rgl.snapshot() : no longer works?

2010-12-30 Thread Yihui Xie
Thanks a lot! Unfortunately we have no access to r-forge these days... Could you put the latest version in your homepage? (the one in http://www.stats.uwo.ca/faculty/murdoch/software/ is outdated) Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iow

Re: [R] R-forge is down?

2010-12-30 Thread Uwe Ligges
On 30.12.2010 18:43, Yihui Xie wrote: so it is the same for the new packages submitted to CRAN (FTP)? I see the packages in the incoming directory date back to 12/24. Yes, sometimes even Kurt is out of office. Uwe Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Depa

Re: [R] unexpected input in rpart

2010-12-30 Thread Petr Savicky
On Thu, Dec 30, 2010 at 07:10:33AM -0800, maysher wrote: > > Hi all, I'm a newbee using R. I need to do a classification tree using the > rpart package. Basically I have a set of birds of known sex and several > morphological measurements and we want to predict the sex using the > morphology. I re

Re: [R] R-forge is down?

2010-12-30 Thread Yihui Xie
so it is the same for the new packages submitted to CRAN (FTP)? I see the packages in the incoming directory date back to 12/24. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA 2010/12/30 Uwe Li

[R] latex() etc.: How to nicely format a matrix for a LaTeX document?

2010-12-30 Thread Marius Hofert
Dear (T)eXpeRts, I try to create a LaTeX table from an R matrix for the first time. I am not sure what the "best" approach is, I just read about latex() from Hmisc (toLatex() didn't work). Consider the following minimal example: library(Hmisc) mat <- matrix(c(1,NA,3,100,1,4), ncol = 3, byr

Re: [R] HELP for repeated measure ANCOVA with varying covariate

2010-12-30 Thread Dong Xie
Dear Dror, Thank you for the suggestion!! Dong -- View this message in context: http://r.789695.n4.nabble.com/HELP-for-repeated-measure-ANCOVA-with-varying-covariate-tp3167290p3168500.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] data frame subset too slow

2010-12-30 Thread jim holtman
If you want the data in the first column of the dataframe, then you should be using '[['. Notice what comes back in each of these cases: > str(dat) 'data.frame': 8 obs. of 5 variables: $ sample.1.200..n..TRUE.: int 25 199 70 124 93 157 49 137 192 57 ... $ runif.n. : num 0.

Re: [R] data frame subset too slow

2010-12-30 Thread Duke
Actually there are different ways of doing subsetting: [1] [[1]] [,1] $V1 Please let me know which one is the fastest (and most used) one. Thanks. D. On 12/30/10 11:28 AM, Duke wrote: Hi Jim, Is this really a problem for me to use [1] instead of [[1]]? Will this make it run slower? Also, if

Re: [R] data frame subset too slow

2010-12-30 Thread Duke
Hi Jim, Is this really a problem for me to use [1] instead of [[1]]? Will this make it run slower? Also, if I use dat$V1 %in% list$V1, will it be fine? Anyway, my data and list are basically gene lists (tab delimited): $ head test.txt Xkr4chr1-3204562366157932061023661

Re: [R] data frame subset too slow

2010-12-30 Thread jim holtman
You should be using dat[[1]]. Here is an example with 8 rows that take about 0.02 seconds to get the subset. Provide an 'str' of what your data looks like > n <- 8 # rows to create > dat <- data.frame(sample(1:200, n, TRUE), runif(n), runif(n), runif(n), > runif(n)) > lst <- data.frame

[R] Extracting a formula from Arima for structural break analysis

2010-12-30 Thread Downey, Patrick
Hello, I fit an ARMA model to a series using the arima function. Now I wish to use the "breakpoints" function from the {strucchange} package to test for structural breaks. The breakpoints function requires a formula as input. The examples show how to write an AR model as a formula, but I have MA t

[R] unexpected input in rpart

2010-12-30 Thread maysher
Hi all, I'm a newbee using R. I need to do a classification tree using the rpart package. Basically I have a set of birds of known sex and several morphological measurements and we want to predict the sex using the morphology. I read my csv file and it shows up in R no problem, looks fine but when

Re: [R] function()

2010-12-30 Thread DrorD
Hi Stat, Make sure you have read the example in >?apply after that, if you still have more questions, try to be as specific as you can and provide an example. best, dror -- View this message in context: http://r.789695.n4.nabble.com/function-tp3168116p3168338.html Sent from the R help maili

Re: [R] HELP for repeated measure ANCOVA with varying covariate

2010-12-30 Thread DrorD
Hi Dong, I have a similar question and you can find the answers received by now in this http://r.789695.n4.nabble.com/Doing-a-mixed-ANOVA-after-accounting-for-a-covariate-td3164230.html thread . dror -- View this message in context: http://r.789695.n4.nabble.com/HELP-for-repeated-measure-ANCO

Re: [R] please Help me on a repeated measures anova

2010-12-30 Thread David Winsemius
On Dec 30, 2010, at 10:11 AM, David Winsemius wrote: On Dec 30, 2010, at 5:38 AM, soileil wrote: So far I've done this: tableau = read.table("Classeur1.txt", h=T) tableau Temps.s. Modalite AchE 1 15 ER 0,1 snipped data 103 120 SED+ED 0,19 104 120 SED

[R] data frame subset too slow

2010-12-30 Thread Duke
Hi all, First I dont have much experience with R so be gentle. OK, I am dealing with a dataset (~ tens of thousand lines, each line ~ 10 columns of data). I have to create some subset of this data based on some certain conditions (for example, same first column with another dataset etc...). H

Re: [R] Problem with my analysis

2010-12-30 Thread Uwe Ligges
On 30.12.2010 15:37, Yemi Oyeyemi wrote: Dear R-users, I have problem or at cross-road on using discrminant analysis for my set of data. All my dependent variables are all categorical, hence the normalty assumption is no longer valid. Is it still right to use discrminant

Re: [R] Discriminant analysis

2010-12-30 Thread Uwe Ligges
Please do not double post. See my answer to your other message from today. Uwe Ligges On 30.12.2010 14:31, Yemi Oyeyemi wrote: Dear R-helpers I am having problem or reservation analyzing my data using discrminant analysis. The problem is that all my dependent variables

Re: [R] R-forge is down?

2010-12-30 Thread Uwe Ligges
On 30.12.2010 15:44, Shige Song wrote: I realized that r-forge has been down for a couple of days. Does anybody know when it will come back? We have to wait for the Vienna crew coming back into office next Monday, I suppose. Uwe Shige __ R

Re: [R] please Help me on a repeated measures anova

2010-12-30 Thread David Winsemius
On Dec 30, 2010, at 5:38 AM, soileil wrote: So far I've done this: tableau = read.table("Classeur1.txt", h=T) tableau Temps.s. Modalite AchE 1 15 ER 0,1 snipped data 103 120 SED+ED 0,19 104 120 SED+ED 0,172 attach (tableau) tableau <- lm (AchE ~ T

Re: [R] function()

2010-12-30 Thread Pete B
If, as a new R user, you find the help page difficult to follow then Google offers plenty of support to understand the apply function e.g. http://www.ats.ucla.edu/stat/r/library/advanced_function_r.htm http://www.slideshare.net/dataminingtools/r-apply-functions http://nsaunders.wordpress.com/2

[R] R-forge is down?

2010-12-30 Thread Shige Song
I realized that r-forge has been down for a couple of days. Does anybody know when it will come back? Shige __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posti

[R] Problem with my analysis

2010-12-30 Thread Yemi Oyeyemi
Dear R-users,   I have problem or at cross-road on using discrminant analysis for my set of data. All my dependent variables are all categorical, hence the normalty assumption is no longer valid. Is it still right to use discrminant analysis or is there any non-parametric tec

Re: [R] please Help me on a repeated measures anova

2010-12-30 Thread soileil
So far I've done this: > tableau = read.table("Classeur1.txt", h=T) > tableau Temps.s. Modalite AchE 1 15 ER 0,1 2 15 ER 0,112 3 15T+0,5 0,078 4 15T+0,5 0,053 5 15 TED 0,107 6 15 TED 0,117 7 15 TED

Re: [R] using lapply and split to plot up subsets of a vector

2010-12-30 Thread karmakiller
Hi again, I have spent the last couple of days trying to build a function that will allow me to add to the multiple plots that I created with your advice. I have changed to plot(ln.o2con~lnbm,data=df) in my function and this works fine. On an individual plot I can fit quantile regressions u

[R] Discriminant analysis

2010-12-30 Thread Yemi Oyeyemi
Dear R-helpers     I am having problem or reservation analyzing my data using discrminant analysis. The problem is that all my dependent variables are categorical which means that the normalty assumption is no longer valid. Can one still use discrminant analysis for such dat

Re: [R] linear regression for grouped data

2010-12-30 Thread Michael Dewey
At 02:23 29/12/2010, Entropi ntrp wrote: Hi, I have been examining large data and need to do simple linear regression with the data which is grouped based on the values of a particular attribute. For instance, consider three columns : ID, x, y, and I need to regress x on y for each distinct val

Re: [R] Writing a single output file

2010-12-30 Thread Hadley Wickham
It looks like you have csv files, so use read.csv instead of read.table. Hadley On Thu, Dec 30, 2010 at 12:18 AM, Amy Milano wrote: > Dear sir, > > At the outset I sincerely apologize for reverting back bit late as I was out > of office. I thank you for your guidance extended by you in response

Re: [R] predict.lrm vs. predict.glm (with newdata)

2010-12-30 Thread Stefan Th. Gries
Hi all Trying again with this question. (If it's really that stupid a question, I'd be happy to just receive a link or one or two words to Google that I haven't thought of before): I have run into a case where I don't understand why predict.lrm and predict.glm don't yield the same results. # My

Re: [R] rgl.snapshot() : no longer works?

2010-12-30 Thread Duncan Murdoch
On 30/12/2010 2:19 AM, Yihui Xie wrote: Hi, Is there any progress so far? It seems R 2.12.1 under Windows still does not have the rgl.snapshot() support. This has been fixed, but the new version has not yet appeared on CRAN. The problem was that it's a little tricky to do the dual-architectur

Re: [R] Sorting data.frame datewise in a descending order

2010-12-30 Thread Vincy Pyne
Dear sir, Thanks a lot for your great guidance. It worked fantastically. Regards Vincy Pyne --- On Thu, 12/30/10, Henrique Dallazuanna wrote: From: Henrique Dallazuanna Subject: Re: [R] Sorting data.frame datewise in a descending order To: "Vincy Pyne" Cc: r-help@r-project.org Received: Thu

Re: [R] Sorting data.frame datewise in a descending order

2010-12-30 Thread Henrique Dallazuanna
Try this: mydat[order(as.Date(mydat$date, "%m/%d/%Y"), decreasing = TRUE),] On Thu, Dec 30, 2010 at 9:27 AM, Vincy Pyne wrote: > Dear 'HTH' R friends > > I have a small dataframe as given below. I need to sort this database based > on date in a decending order. I am not sure whether I have defi

[R] Sorting data.frame datewise in a descending order

2010-12-30 Thread Vincy Pyne
Dear 'HTH' R friends I have a small dataframe as given below. I need to sort this database based on date in a decending order. I am not sure whether I have defined the date column in a proper format. mydat<-data.frame(date = (c("1/31/2010", "2/28/2010", "3/31/2010", "4/30/2010", "5/31/2010", "

Re: [R] How to create an array of lists of multiple components?

2010-12-30 Thread Marius Hofert
Dear Gabor, *perfect*, precisely what I was looking for. Many thanks, Marius On 2010-12-29, at 23:19 , Gabor Grothendieck wrote: > On Wed, Dec 29, 2010 at 4:58 PM, Marius Hofert wrote: >> Dear Jim, >> >> thanks for your quick response. Here is what I try to achieve: >> >> ## list containing

[R] function()

2010-12-30 Thread Stat Consult
Dear All I can not understand how defined function in apply works? could I ask you to explain it for me. Regards, [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

Re: [R] please Help me on a repeated measures anova

2010-12-30 Thread soileil
In fact, the imbalance of repetitions is a time effect. Indeed, some measures have been carried out in the morning and another in the afternoon. And we could show this difference with a Friedman. So the question I ask myself after what I had just read is that there is no difference? Increasing the