[R] need help converting data.frame to time series

2009-02-03 Thread Somani, Dinesh K
Hi I am a new R user and need some help converting a data frame object to time series. 1. My input is a CSV file, contents something like these: DATE ,STOCK ,RETURN-A ,RETURN-B, etc. 2009/02/02,A ,0.01 ,0.011 2009/01/30,A ,0.01 ,0.011 2009/01/29,A ,0.

Re: [R] reading .odf spreadsheet into R

2009-02-03 Thread Dieter Menne
stephen sefick gmail.com> writes: > I have searched the archives and I did not find the answer to my > question. Is there a way to read in a .odf spreadsheet without > modification to a .csv file. I am analyzing my classes scores on > their first exam, and would like to read the grade book in w

Re: [R] The Origins of R

2009-02-03 Thread Mark Difford
>> Indeed. The postings exuded a tabloid-esque level of slimy nastiness. Indeed, indeed. But I do not feel that that is necessarily the case. Credit should be given where credit is due. And that, I believe is the issue that is getting (some) people hot and bothered. Certainly, Trevor Hastie in h

Re: [R] factor

2009-02-03 Thread Peter Dalgaard
kayj wrote: I am looking into change the numeric order in the level of the factor x<-c("A","B","C") fx<-factor(x) fx [1] A B C Levels: A B C factor(x) [1] A B C Levels: A B C as.numeric(fx) [1] 1 2 3 I want to change the order of the numeric into 3 corresponds to “A” level, 2 correspond

Re: [R] Sweave

2009-02-03 Thread cameron.bracken
Kjetil Halvorsen wrote: > > The other problem refered to above comes from this source lines: > > bubble(NURE.orig, "ppm", col = c("#00ff0088", "#00ff0088")) > You may have to escape the # character (i.e. put \# instead). I know this must be done for backslashes. -- View this message in con

Re: [R] cronbachs alpha - score.items(psych) vs reliability(Rcmdr)

2009-02-03 Thread William Revelle
Dear Andreas, I agree with John that it is straight forward to just include your own function to do what both Rcmdr and psych do for finding alpha. psych does not have any function to do the alpha if deleted option, mainly because I think alpha is not a particularly good (although very popu

Re: [R] factor

2009-02-03 Thread Rolf Turner
On 4/02/2009, at 2:09 PM, kayj wrote: I am looking into change the numeric order in the level of the factor x<-c("A","B","C") fx<-factor(x) fx [1] A B C Levels: A B C factor(x) [1] A B C Levels: A B C as.numeric(fx) [1] 1 2 3 I want to change the order of the numeric into 3 corresponds

[R] factor

2009-02-03 Thread kayj
I am looking into change the numeric order in the level of the factor > x<-c("A","B","C") > fx<-factor(x) > fx [1] A B C Levels: A B C > factor(x) [1] A B C Levels: A B C > as.numeric(fx) [1] 1 2 3 I want to change the order of the numeric into 3 corresponds to “A” level, 2 corresponds to “B”

Re: [R] Time series plots with ggplot

2009-02-03 Thread hadley wickham
On Tue, Feb 3, 2009 at 12:58 PM, Harsh wrote: > Hi, > I am newbie user of ggplot and would like some assistance in > implementing time series plots. > > I'd like to know how the tsdiag plot can be made in ggplot? It's not particularly easy because the code for tsdiag interweaves computing statist

Re: [R] The Origins of R

2009-02-03 Thread Rolf Turner
On 4/02/2009, at 2:00 PM, Thomas Adams wrote: John, I certainly had that same impression of "mischief making" — I would call it trolling with the intent of trying to discredit R, its developers & contributors. "Mischief making" indeed! Regards, Tom John Maindonald wrote: In another threa

[R] Generic functions with models? 'predict', 'residuals', 'fitted', ...?

2009-02-03 Thread John McHenry
Hi WizaRds! I don't know if my understanding of models is screwed up or if there's a fundamental limitation to the way they are used in R. Here's what I'd like to do: create a model and then test data against that model using generics like 'predict' and 'residuals'. The problem is that generics

Re: [R] The Origins of R

2009-02-03 Thread Thomas Adams
John, I certainly had that same impression of "mischief making" — I would call it trolling with the intent of trying to discredit R, its developers & contributors. "Mischief making" indeed! Regards, Tom John Maindonald wrote: In another thread on this list, various wild allegations have been

[R] Target Plot?

2009-02-03 Thread Jason Rupert
I've done a little snooping around the R Gallery Site (http://addictedtor.free.fr/graphiques/) and the "Statistics with R" site (http://zoonek2.free.fr/UNIX/48_R/all.html), but I can't seem to find what I'm looking for.  Here is the type of plot I would like to draw: (1) 2-D three axis plot wh

Re: [R] cronbachs alpha - score.items(psych) vs reliability(Rcmdr)

2009-02-03 Thread John Fox
Dear Andreas, I don't know whether there's another comparable function, but reliability() from the Rcmdr package is very simple; here it is printed out (as you could have done simply by typing its name -- I added the assignment arrow): reliability <- function (S) { reliab <- function(S, R) {

[R] cronbachs alpha - score.items(psych) vs reliability(Rcmdr)

2009-02-03 Thread achristoffersen
Dear all, I like the way the Rcmdr package computes reliability. E.g reliability(cov(d[,c("q1", "q2", "q3", "q4", "q5", "q6")], use="complete.obs")) will not only give me the alpha score, but also for each variable, alpha.score if deleted. However - when writing scripts it's very tiresome to lo

Re: [R] Numeric class and sasxport.get

2009-02-03 Thread Sebastien Bihorel
Frank, It is a non existing issue for me if the variables of class "labelled" (and only "labelled") can only be numerical variables (integer or numeric). Sebastien Frank E Harrell Jr wrote: Sebastien Bihorel wrote: Dear R-users, The sasxport.get function (from the Hmisc package) automatica

Re: [R] Numeric class and sasxport.get

2009-02-03 Thread Frank E Harrell Jr
Sebastien Bihorel wrote: Frank, It is a non existing issue for me if the variables of class "labelled" (and only "labelled") can only be numerical variables (integer or numeric). Sebastien 'labelled' can apply to any type of vector. I'm not clear on the problem this causes you. Please pr

[R] Calling "compiled" functions

2009-02-03 Thread rkevinburton
In the scripts I see lots of calls like .Call(.). But if I replace this exact string in my own R script I get not found. I was wondering what the scopting rules are for these functions. How just for testing (I don't want to build a full blown package) to I use .Call and .C or .Fortr

[R] Problem recoding several variables into one

2009-02-03 Thread Christopher David Desjardins
Hi, I am running the following code: ret <- data.frame(V1=rep(NA,dim(hhm)[1])) years <- c("grade04","grade05","grade06","grade07","grade08") for(i in 1:(length(years)-1)){ ret[,i] <- ifelse(hhm[,years[i+1]]==hhm[,years[i]],1,0)} ret$ret.s <- ifelse(ret$V1==1 | ret$V2==1 | ret$V3==1 | ret $V

Re: [R] testing for bimodal distribution

2009-02-03 Thread Albyn Jones
dip {diptest} is Hartigan's dip test. albyn On Tue, Feb 03, 2009 at 05:42:34PM -0500, Andrew Yee wrote: > I'm not sure where to begin with this, but I was wondering if someone could > refer me to an R package that would test to see if a distribution fits a > bimodal distribution better than a uni

[R] The Origins of R

2009-02-03 Thread John Maindonald
In another thread on this list, various wild allegations have been made, relating to the New York Times article on R. I object both to the subject line and to the content of several of the messages, and will not repeat or quote any of that content. It smacks to me of mischief making. Di

Re: [R] Problems in Recommending R

2009-02-03 Thread Mike Lawrence
One of my colleagues is a interdisciplinary PhD in Design and Psychology and he has an "in" with a design school where we might be able to get students to take on the redesign of the website. He asks: "In order to ensure efficient consumption of resources and maximize our return on investment, ple

[R] testing for bimodal distribution

2009-02-03 Thread Andrew Yee
I'm not sure where to begin with this, but I was wondering if someone could refer me to an R package that would test to see if a distribution fits a bimodal distribution better than a unimodal distribution. Thanks, Andrew [[alternative HTML version deleted]] __

Re: [R] Difference between a[[i]] and a[i]

2009-02-03 Thread Carl Witthoft
I think the thing that escaped me for quite a while was tracking down the syntax to specify elements of a list element: x[[5]][3:7] to get items from within the 5th element of x. Seems IIRC there are some types of variables for which the form x$thing[3:7] fails and others for which it work

Re: [R] Numeric class and sasxport.get

2009-02-03 Thread Frank E Harrell Jr
Sebastien Bihorel wrote: Dear R-users, The sasxport.get function (from the Hmisc package) automatically defines the class of imported variables. I have noticed that the class of theoretically numeric variables is simply "labelled", although character variables might end up been defined as "la

Re: [R] executing R batch files

2009-02-03 Thread joseph . g . boyer
Thank you, I appreciate your reply. I have managed to get Shell("c:\TEMP\Rbatch.bat") to work. What solved the problem was saving the Rbatch.bat file as type "All files" as opposed to as a text file. Why that worked, I have no idea. Joe Boyer Statistical Sciences Renaissance Bldg 510, 3233-D

[R] overlaying plots from a list of data frames

2009-02-03 Thread Timothy W. Hilton
Hello R list, I have a list of data frames, in the form (dump output for an example list follows message): $site1 yeardata 1 2000 0.03685042 2 2001 0.02583885 6 2005 0.02480015 7 2006 0.03458745 $site2 year data 1 2002 4.071134e-03 2 2003 -4.513524e-08 3 2004 8.336272e

Re: [R] sub question

2009-02-03 Thread Peter Dalgaard
Wacek Kusnierczyk wrote: But can you be sure that there is no legitimate reason for expecting the current behaviour? you surely know the answer. Actually, I don't. I was just pointing out the generic risk of fixing something that isn't broken by breaking something that works. There's a

Re: [R] sem package and AMOS

2009-02-03 Thread Anthony Dick
Hi John- Thanks. You were right--AMOS was not reading the sample size correctly (i.e., I was not telling it correctly). When I corrected the problem, I got the same estimates. Thanks for pointing me in the right direction. Anthony John Fox wrote: Dear Anthony, sem() does FIML estimation, n

[R] Numeric class and sasxport.get

2009-02-03 Thread Sebastien Bihorel
Dear R-users, The sasxport.get function (from the Hmisc package) automatically defines the class of imported variables. I have noticed that the class of theoretically numeric variables is simply "labelled", although character variables might end up been defined as "labelled" "Date" or "labelle

Re: [R] Tunnelling X for R graphics

2009-02-03 Thread Prof Brian Ripley
On Tue, 3 Feb 2009, Adam D. I. Kramer wrote: Thanks very much for the reassurance. Really, I can just open a new X11 device on the same display, since the display (localhost:10) is effectively "reconnected" when I ssh in again. We are not taiking about the DISPLAY variable, but the X11 struct

Re: [R] Tunnelling X for R graphics

2009-02-03 Thread Adam D. I. Kramer
Thanks very much for the reassurance. Really, I can just open a new X11 device on the same display, since the display (localhost:10) is effectively "reconnected" when I ssh in again. I'll reply again to this post if I find other parts of R working poorly after the disconnection. --Adam On Tue,

Re: [R] list.files changed in 2.7.0

2009-02-03 Thread Henrik Bengtsson
Hi, I've verified in "R version 2.8.1 Patched (2008-12-22 r47296)" using both Rterm and Rgui, and list.files(path="C:") list the files that are in the current working directory of C: and this *can* be changed by setwd(), that is, it does not just depend on which directory you started R in. The

[R] [R-pkgs] survey 3.11

2009-02-03 Thread Thomas Lumley
Version 3.11 of the survey package is making its way through CRAN. Since the last announcement on this list, of version 3.9, last September, there have been many minor bug fixes and usability improvements. The main new features are - loglinear models with svyloglin() - database-backed design

Re: [R] sub question

2009-02-03 Thread Wacek Kusnierczyk
Peter Dalgaard wrote: > Wacek Kusnierczyk wrote: > >>> >>> (a) do not descend recursively into the function part (first element) >>> of a call >>> (b) do descend, unless it is a name >> >> if it is a name, how would you descend? > > By calling a recursive function which has it as the argument. It

Re: [R] How to subtract 2 days from a variable storing particular date

2009-02-03 Thread Suresh_FSFM
Great ! Thanks a lot for prompt and positive response. Best Regards, Suresh Gabor Grothendieck wrote: > > Try this: > > now <- Sys.time() > seq(now, length = 2, by = "-2 days")[2] > > and see R News 4/1 for more on dates. > > > On Tue, Feb 3, 2009 at 2:48 PM, Suresh_FSFM > wrote: >> >> D

Re: [R] How to subtract 2 days from a variable storing particular date

2009-02-03 Thread Gabor Grothendieck
Try this: now <- Sys.time() seq(now, length = 2, by = "-2 days")[2] and see R News 4/1 for more on dates. On Tue, Feb 3, 2009 at 2:48 PM, Suresh_FSFM wrote: > > Dear R- Exerts, > Seek your help. > > Suppose I have a variable "X" that stores a date: "2008-12-15 CET" > Now, I want to subtract 2

[R] How to subtract 2 days from a variable storing particular date

2009-02-03 Thread Suresh_FSFM
Dear R- Exerts, Seek your help. Suppose I have a variable "X" that stores a date: "2008-12-15 CET" Now, I want to subtract 2 days (better two working days) from value stored in "X". Please let me know how to do so. Another variable "Y" stores timestamp as: 2008-11-28 00:09:00 I want to subtract

[R] Forecasting function

2009-02-03 Thread diego Diego
Dear R-experts: Does anybody knows how the CI of the "forecast" (forecasting package) are calculated (at least in the ES and Arima cases)??? Thanks [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] lm function

2009-02-03 Thread RORAM
Hi, I do not use R lenguage for programming, hence Im trying to understand how are specified the models below. I been reading some webpages with information about the notation in the "lm" function, but havent understand exactly what does the ":" do. Can some one give me an explenation of the mode

Re: [R] Problems in Recommending R

2009-02-03 Thread Warren Young
Neil Shephard wrote: Why make the human tell the computer things it already knows? Because sometimes the human has a better idea as to what they want than the computer? I think the computer can guess the right answer in the solid majority of cases. Up in the 90th percentile certainly, pro

Re: [R] R installation in a multiple-user Windows environment

2009-02-03 Thread Uwe Ligges
Jonathan Greenberg wrote: Hmm, perhaps I'm missing the relevant section in the R Installation and Administration manual -- here is the error I'm getting: package 'akima' successfully unpacked and MD5 sums checked package 'gam' successfully unpacked and MD5 sums checked The downloaded package

Re: [R] R installation in a multiple-user Windows environment

2009-02-03 Thread Jonathan Greenberg
Hmm, perhaps I'm missing the relevant section in the R Installation and Administration manual -- here is the error I'm getting: package 'akima' successfully unpacked and MD5 sums checked package 'gam' successfully unpacked and MD5 sums checked The downloaded packages are in C:\Documents

Re: [R] R installation in a multiple-user Windows environment

2009-02-03 Thread Prof Brian Ripley
On Tue, 3 Feb 2009, Uwe Ligges wrote: Jonathan Greenberg wrote: We're having some issues with installing R in a multiple user Windows environment (e.g. when a user installs a package, there are errors linked to attempting to install certain files into restricted directories). Is there a re

[R] Time series plots with ggplot

2009-02-03 Thread Harsh
Hi, I am newbie user of ggplot and would like some assistance in implementing time series plots. I'd like to know how the tsdiag plot can be made in ggplot? Thanks Harsh Singhal Decisions Systems, Mu Sigma Inc. __ R-help@r-project.org mailing list http

Re: [R] Package manuals.

2009-02-03 Thread Rolf Turner
On 3/02/2009, at 8:23 PM, Prof Brian Ripley wrote: If I do this on the top-level directry of a package, I get tystie% R CMD Rd2dvi --pdf RODBC Hmm ... looks like a package ... and it does so by looking for a 'foo/DESCRIPTION' file, and it does give an index. I think you probably do need to u

Re: [R] R installation in a multiple-user Windows environment

2009-02-03 Thread Uwe Ligges
Jonathan Greenberg wrote: We're having some issues with installing R in a multiple user Windows environment (e.g. when a user installs a package, there are errors linked to attempting to install certain files into restricted directories). Is there a readme for how to install R properly for

Re: [R] unable to install packages

2009-02-03 Thread Vaz Joao (QPT TO EPA)
Hi, Sorry, just one correction: the error message that appears is: Warning: unable to access index for repository http://ftp5.gwdg.de/pub/misc/cran/bin/windows/contrib/2.8 Cumprimentos, Joao Vaz Product Engineer QPT Product Engineering Qimonda Portugal S.A. -

[R] R: unable to install packages

2009-02-03 Thread Vaz Joao (QPT TO EPA)
Hi, I'm running R version 2.8.1 on Windows and I'm having quite a lot of trouble just to install package RODBC. When I run command install.packages("RODBC"), the following error message appears: Warning: unable to access index for repository http://cran.pt.r-project.org/bin/windows/contrib/2.

[R] Model (Y) from left-censored independant variable (s)

2009-02-03 Thread Boucher Etienne
Hi all; I'm trying to model a response variable (Y) from one (and eventually more...) independant left-censored variable (X*) In other words, X* is a random variable with values 0 -> inf. Thus, let c=0 X*= x if x>= c X*= c if x< c Does anyone knows a function or package in [R] enabling to model

[R] R installation in a multiple-user Windows environment

2009-02-03 Thread Jonathan Greenberg
We're having some issues with installing R in a multiple user Windows environment (e.g. when a user installs a package, there are errors linked to attempting to install certain files into restricted directories). Is there a readme for how to install R properly for multiple users? Thanks! --

[R] SOM package:How to fine tune parameters in two steps?

2009-02-03 Thread Gabriel Ibarra
Hi all:I am trying to fit a SOM which is usually carried out in two steps. At each step, different parameters (learning rate, neighbourhood and number of epochs) need to be used.The SOM package is based on SOM-PAK (http://www.cis.hut.fi/research/papers/som_tr96.ps.Z). In the HTML help different

Re: [R] Beveridge Nelson Decomposition

2009-02-03 Thread ezivot
AFAIK there is no function to automatically compute the BN decomposition from a univariate time series in R. However, it is easy to compute by brute force from the output of an arima model fit to your data. A more elegant way would be to put your model in state space form and use the technique des

Re: [R] Problems in Recommending R

2009-02-03 Thread Patrick Burns
Ajay ohri wrote: How much time do you think is needed to read 133 pages of FAQ. About 132.5 / 133 more times longer than most people are wanting to spend. Patrick Burns patr...@burns-stat.com +44 (0)20 8525 0696 http://www.burns-stat.com (home of "The R Inferno" and "A Guide for the Unwilli

Re: [R] How to show variables used in lm function call?

2009-02-03 Thread Gabor Grothendieck
Pick off the names in the first two lines of the function body and then paste them into a formula, converting to a real formula object and then make your call: mylm <- function(dep, indep, env = parent.frame()) { depnm <- deparse(substitute(dep)) indepnm <- deparse(substitute(indep

Re: [R] ThinkCell type waterfall charts in R?

2009-02-03 Thread Greg Snow
Without knowing how your data is formatted or how you intend to link the information together, all we can do is reconsctruct the plot from scratch. Here is one way to do that (change whatever values you want to tweek the look): plot( c(1,10), c(0,95), type='n', axes=F, xlab='', ylab='', xlim=c(

Re: [R] Problems in Recommending R

2009-02-03 Thread Ajay ohri
How much time do you think is needed to read 133 pages of FAQ. Regards, Ajay www.decisionstats.com On Tue, Feb 3, 2009 at 10:04 PM, Uwe Ligges wrote: > Hadley wickham wrote: > >> The most useful thing (and quite rightly so) on the front page is the link >>> the the FAQ which should be the st

[R] How to show variables used in lm function call?

2009-02-03 Thread Pele
Hello R users, I am new to R and am wondering if anyone can help me out with the following issue: I wrote a function to build ts models using different inputs, but when R displays the call for a model, I cannot tell which variables it is using because it shows the arguments instead of the real

Re: [R] how to rotate y-axis tick labels

2009-02-03 Thread Marc Schwartz
on 02/03/2009 11:01 AM Hong Qin wrote: > Hello, > > I need advice on how to rotate the y-axis tick labels by 90 degree > clockwise. This must be a question that has been asked frequently, but I did > not find it in the archived R-help messages. See ?par and take note of 'las': # Default 'las =

[R] how to rotate y-axis tick labels

2009-02-03 Thread Hong Qin
Hello, I need advice on how to rotate the y-axis tick labels by 90 degree clockwise. This must be a question that has been asked frequently, but I did not find it in the archived R-help messages. Thanks, Hong [[alternative HTML version deleted]]

Re: [R] R-CPCA

2009-02-03 Thread Peter Dalgaard
Ben Bolker wrote: Rino Ragno uniroma1.it> writes: Dear Ben Bolker, searching for a R code able to do the CPCA [...] For amusement, try googling that acronym... -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014

[R] 5 Courses*** R/Splus Fundamentals & R Advanced Programming: March - April 2009 at USA locations by XLSolutions Corp

2009-02-03 Thread s...@xlsolutions-corp.com
XLSolutions Corporation (www.xlsolutions-corp.com) is proud to announce our*** R/Splus Fundamentals and Programming Techniques and R Advanced Programming***courses at USA locations for March - April 2009. (1) R/Splus Fundamentals and Programming Techniques http://www.xlsolutions-corp.com/rplus.

Re: [R] Problems in Recommending R

2009-02-03 Thread Uwe Ligges
Hadley wickham wrote: The most useful thing (and quite rightly so) on the front page is the link the the FAQ which should be the starting point for anyone looking at any new software, and answers/explains everything thats pertinent! (At least thats what I read first when I start using new softwa

Re: [R] Large file size while persisting rpart model to disk

2009-02-03 Thread tan
Dear Prof. Ripley, Thanks for the quick reply. I do notice an in the print output. I assume it is used to keep copies of the initial data used for the model. - Is it safe to assume that it would not affect any other functionality, apart from the usage of those particular functions? - Is there

Re: [R] Problems in Recommending R

2009-02-03 Thread Neil Shephard
Warren Young wrote: > > Yyeahhh...look how much that sort of stance has helped the cause of > Linux on the desktop. World domination has been a year or two away for > the last 10 years. (Speaking as one who uses Linux every day, and used > it as his main desktop at home for many years befor

Re: [R] Problems in Recommending R

2009-02-03 Thread Neil Shephard
hadley wrote: > >> The most useful thing (and quite rightly so) on the front page is the >> link >> the the FAQ which should be the starting point for anyone looking at any >> new >> software, and answers/explains everything thats pertinent! (At least >> thats >> what I read first when I start

[R] ANOVA in R

2009-02-03 Thread Samor Gandhi
Hi, I'm using a repeated measures ANOVA in R using lme(). The SAS code would be: PROC MIXED DATA=[data set below]; CLASS pid treat period time seq; MODEL Y = seq period treat time treat*time; REPEATED time / SUBJECT=pid TYPE=cs;RUN, I donot have SAS, instead I have R and I would li

Re: [R] R-CPCA

2009-02-03 Thread Ben Bolker
Rino Ragno uniroma1.it> writes: > > Dear Ben Bolker, > > searching for a R code able to do the CPCA I found a message by you on > https://stat.ethz.ch/. > > In that message you said you have something I am looking for. Would you > share with me? I ma stuck with a commercial software (GOLPE)

Re: [R] lapply and aggregate function

2009-02-03 Thread hadley wickham
> # Second > set.seed(321) > myD <- data.frame( Light = sample(LETTERS[1:2], 10, replace=T), >value=rnorm(20) ) > > w1 <- tapply(myD$value, myD$Light, mean) > w1 > # > w1 > # A B > # 0.4753412 -0.2108387 > > myfun <- function(x) (myD$value > w1[x] & myD$value <

[R] R-CPCA

2009-02-03 Thread Rino Ragno
Dear Ben Bolker, searching for a R code able to do the CPCA I found a message by you on https://stat.ethz.ch/. In that message you said you have something I am looking for. Would you share with me? I ma stuck with a commercial software (GOLPE) that is not developed anymore, therefore I'd lik

Re: [R] Problems in Recommending R

2009-02-03 Thread hadley wickham
> The most useful thing (and quite rightly so) on the front page is the link > the the FAQ which should be the starting point for anyone looking at any new > software, and answers/explains everything thats pertinent! (At least thats > what I read first when I start using new software and have ques

Re: [R] Problems in Recommending R

2009-02-03 Thread Mike Lawrence
One of my colleagues is a interdisciplinary PhD in Design and Psychology and he has an "in" with a design school where we might be able to get students to take on the redesign of the website. He asks: "In order to ensure efficient consumption of resources and maximize our return on investment, ple

Re: [R] Problems in Recommending R

2009-02-03 Thread hadley wickham
On Tue, Feb 3, 2009 at 9:03 AM, Peter Dalgaard wrote: > hadley wickham wrote: 1. avoid clicking on the "R version 2.8.1" link - that takes you to a directory listing of strangely named files > > Yes, this is of course much harder than avoiding to read the two bullet > points labele

Re: [R] sub question

2009-02-03 Thread Peter Dalgaard
Wacek Kusnierczyk wrote: (a) do not descend recursively into the function part (first element) of a call (b) do descend, unless it is a name if it is a name, how would you descend? By calling a recursive function which has it as the argument. It's not a problem unless you want it to be (

Re: [R] Problems in Recommending R

2009-02-03 Thread John C Frain
Having listened to the complains I would like to say that I disagree. I like the Cran web set up. Given the amount of material it contains it is relatively easy to find things. It would be helpful if one read some of the material such as the FAQ or the R for windows FAQ or even the descriptions

[R] OT: Reference for SIC/BIC

2009-02-03 Thread JLucke
Generally smart people, I need a recent reference for using the Schwarz/Bayesian information criterion for model fitting in a frequentist stepwise regression. Joe [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://

[R] South West\Wales User Group

2009-02-03 Thread Richard Weeks
Hello R users, I've come to the conclusion there are no R user groups in the South West and Wales area (UK), i.e. somewhere where regular users of R can simply meet up, discuss R problems, new R technologies, etc on a social level. If there are such groups, could someone please post the informatio

Re: [R] Problems in Recommending R

2009-02-03 Thread Warren Young
Neil Shephard wrote: Perhaps this is a deliberate design and serves as an "intelligence" test. If you can't navigate through to find the correct download you're really going to struggle getting started with R ;-D Yyeahhh...look how much that sort of stance has helped the cause of Linux on t

Re: [R] lapply and aggregate function

2009-02-03 Thread David Freedman
You might want to look at the doBy package For (1), you could use summaryBy(value~Light+Feed,data=myD, FUN=mean) and for (2), the transformBy function would be helpful David Freedman Patrick Hausmann wrote: > > Dear list, > > I have two things I am struggling... > > # First > set.seed(123)

Re: [R] lapply and aggregate function

2009-02-03 Thread ONKELINX, Thierry
Have a look at cast() form the reshape package. library(reshape) set.seed(123) myD <- data.frame( Light = sample(LETTERS[1:2], 10, replace=T), Feed = sample(letters[1:5], 20, replace=T), value=rnorm(20) ) cast(myD, Light ~ ., fun = mean) cast(myD, Feed ~ ., fun = m

Re: [R] Problems in Recommending R

2009-02-03 Thread Neil Shephard
hadley wrote: > > Have you ever used the R website? > > To download the latest version for R for windows you have to: > No I don't use windows and install R via the package management system of my chosen distribution (http://www.gentoo.org/). That said I have installed from source in the pa

Re: [R] reading .odf spreadsheet into R

2009-02-03 Thread Gabor Grothendieck
If you do look at that you might be able to modify read.xls in gdata package. It uses perl code to read xls files so you would already have the infrastructure R code all set out for you. On Tue, Feb 3, 2009 at 10:09 AM, Marc Schwartz wrote: > I have not used it, but if you are at all comfortable

[R] lapply and aggregate function

2009-02-03 Thread Patrick Hausmann
Dear list, I have two things I am struggling... # First set.seed(123) myD <- data.frame( Light = sample(LETTERS[1:2], 10, replace=T), Feed = sample(letters[1:5], 20, replace=T), value=rnorm(20) ) # Mean for Light myD$meanLight <- unlist( lapply( myD$Ligh

Re: [R] reading .odf spreadsheet into R

2009-02-03 Thread Marc Schwartz
I have not used it, but if you are at all comfortable with Perl, you might want to look at the Spreadsheet::Read module: http://search.cpan.org/~HMBRAND/Spreadsheet-Read/Read.pm There is a wiki article here: http://howto.wikia.com/wiki/Howto_read_OpenOffice_OpenDocument_spreadsheets_in_Perl t

Re: [R] sub question

2009-02-03 Thread Wacek Kusnierczyk
Peter Dalgaard wrote: > Wacek Kusnierczyk wrote: >> Gabor Grothendieck wrote: >>> This comes from the all.vars function and would indicate >>> a bug in that base R function. >>> >>> >> >> hush! a user bug, i presume? but indeed, >> >> all.vars(expression(foo(bar)())) >> # character(0) >> all.n

Re: [R] Problems in Recommending R

2009-02-03 Thread Peter Dalgaard
hadley wickham wrote: 1. avoid clicking on the "R version 2.8.1" link - that takes you to a directory listing of strangely named files Yes, this is of course much harder than avoiding to read the two bullet points labeled "Getting Started" 2. recognise that you need to click on an CRAN (

Re: [R] Problems in Recommending R

2009-02-03 Thread Duncan Murdoch
On 2/3/2009 9:32 AM, Gabor Grothendieck wrote: On Tue, Feb 3, 2009 at 9:20 AM, hadley wickham wrote: Again I'd disagree, perhaps the most widely used suite of software has a very simple and clean web-site with few bells and whistles, ditto for one of the most popular text-editors. I am of cour

Re: [R] Problems in Recommending R

2009-02-03 Thread Wacek Kusnierczyk
Gabor Grothendieck wrote: > On Tue, Feb 3, 2009 at 9:20 AM, hadley wickham wrote: > >>> Again I'd disagree, perhaps the most widely used suite of software has a >>> very simple and clean web-site with few bells and whistles, ditto for one of >>> the most popular text-editors. I am of course re

Re: [R] axes

2009-02-03 Thread Duncan Murdoch
On 2/3/2009 9:18 AM, Montserrat, Francesc wrote: Hello there, Is there a functionality or command that generates axes in the shape of a capital Greek letter gamma (upside down L) ? I use these for making sediment profiles. I have read through help-lists, tried different things and asked several

Re: [R] Problems in Recommending R

2009-02-03 Thread Mark Difford
Hi All, Before these things be set in stone, it should be noted that it would be a real mistake to have a miscalculated statistical object on R's Homepage. Imagine if SAS found out! Fact is, the manner in which the percentage contribution of each PC to the overall inertia is calculated in the co

Re: [R] color and fontfamily in lattice

2009-02-03 Thread Sundar Dorai-Raj
Try this: dados <- data.frame(varsep = factor(rep(1:2,10)), i = runif(20)) library(lattice) font.settings <- list( font = 2, cex = 2, fontfamily = "serif") my.theme <- list( box.umbrella = list(col = "red"), box.rectangle = list(col

Re: [R] Problems in Recommending R

2009-02-03 Thread hadley wickham
>> 1. avoid clicking on the "R version 2.8.1" link - that takes you to a >> directory listing of strangely named files >> >> 2. recognise that you need to click on an CRAN (what is a cran?) >> >> 3. successfully select a mirror that is up-to-date (with no >> information about which mirrors are u

Re: [R] sub question

2009-02-03 Thread Peter Dalgaard
Wacek Kusnierczyk wrote: Gabor Grothendieck wrote: This comes from the all.vars function and would indicate a bug in that base R function. hush! a user bug, i presume? but indeed, all.vars(expression(foo(bar)())) # character(0) all.names(expression(foo(bar)())) # "foo" "bar" Semantic

Re: [R] reading .odf spreadsheet into R

2009-02-03 Thread Erich Neuwirth
Using unoconv (http://dag.wieers.com/rpm/packages/unoconv/) might be a solution. stephen sefick wrote: > I have searched the archives and I did not find the answer to my > question. Is there a way to read in a .odf spreadsheet without > modification to a .csv file. I am analyzing my classes scor

Re: [R] Automatic creation of columns in zoo object

2009-02-03 Thread Gabor Grothendieck
That's not really in the spirit of R. Normally one works with whole objects at a time. You might wish to rethink your entire approach to this. On Tue, Feb 3, 2009 at 9:11 AM, Sergey Goriatchev wrote: > Dear Gabor, > > Yes, these extra columns are of value as I later write code that fills > in t

Re: [R] Problems in Recommending R

2009-02-03 Thread Gabor Grothendieck
On Tue, Feb 3, 2009 at 9:20 AM, hadley wickham wrote: >> Again I'd disagree, perhaps the most widely used suite of software has a >> very simple and clean web-site with few bells and whistles, ditto for one of >> the most popular text-editors. I am of course referring to the suite of GNU >> utili

Re: [R] Automatic creation of columns in zoo object

2009-02-03 Thread Sergey Goriatchev
It works perfectly! Thank you, Gabor, for the quick solution and for letting me learn sub() function. Supreme! :-) Regards, Sergey On Tue, Feb 3, 2009 at 15:05, Gabor Grothendieck wrote: > Not sure why you need to have all these extra columns if they are only > zero anyways. Could you not appe

Re: [R] Problems in Recommending R

2009-02-03 Thread hadley wickham
> Again I'd disagree, perhaps the most widely used suite of software has a > very simple and clean web-site with few bells and whistles, ditto for one of > the most popular text-editors. I am of course referring to the suite of GNU > utilities (http://www.gnu.org/) that make a working GNU/Linux di

Re: [R] Problems in Recommending R

2009-02-03 Thread Wacek Kusnierczyk
Warren Young wrote: > Far more serious problems: > > - Use of frames. The usability problems of frames are well known, and > are justified only in a few special cases. A content-heavy site like > r-project.org is not one of them, if only because of the bookmarking > issue. the framing problem ha

[R] axes

2009-02-03 Thread Montserrat, Francesc
Hello there, Is there a functionality or command that generates axes in the shape of a capital Greek letter gamma (upside down L) ? I use these for making sediment profiles. I have read through help-lists, tried different things and asked several people but never got a satisfactory result. I'

  1   2   >