Re: [R] About upgrade R

2010-11-14 Thread csrabak
Em 14/11/2010 18:24, Tal Galili escreveu: Hi John, thank you for that input. It could be that the code I wrote here: http://www.r-statistics.com/2010/04/changing-your-r-upgrading-strategy-and-the-r-code-to-do-it-on-windows/ Should be updated so every time you install a new R version, you run the

Re: [R] L-shaped boxes with lattice graphs?

2010-11-14 Thread Felix Andrews
Hi John, Here is an example with plot borders on the left and bottom only. ## hide the usual panel and strip borders by using "transparent" NA sty <- list() sty$axis.line$col <- NA sty$strip.border$col <- NA sty$strip.background$col <- NA xyplot(11:14 ~ 1:4 | rep(c("A", "B"), 2), scales=list

Re: [R] About upgrade R

2010-11-14 Thread Tal Galili
Hi Stephen, It doesn't exist before you'll make it (that's one of the thing the code in my post does) Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistic

Re: [R] About upgrade R

2010-11-14 Thread Stephen Liu
Hi Josh and all, > I think .Rprofile is something you have to create yourself No, it is a file on Linux OS Start R as Admin > update.packages(checkBuilt=TRUE) --- Please select a CRAN mirror for use in this session --- Warning: unable to access index for repository http://www.stats.ox.ac.uk

[R] Problem in installing and starting Rattle

2010-11-14 Thread kgorahava
Hello, I am trying to install and run Rattle on my Dell Laptop and I have Windows 7 OS. The following three commands executed successfully : install.packages("RGtk2") install.packages("rattle") library(rattle) Rattle: Graphical interface for data mining using R. Version 2.5.47 Copyright (c)

Re: [R] About upgrade R

2010-11-14 Thread stephen sefick
Sorry for the confusion. My post applies to *NIX. I am sorry for not reading your post thoroughly and also not specifying the system that I am using. Stephen On Sun, Nov 14, 2010 at 8:15 PM, Stephen Liu wrote: > Hi Stephen and folks > >> mv .Rprofile Rprofile > > I can't find .Rprofile on Win7

Re: [R] About upgrade R

2010-11-14 Thread Joshua Wiley
Hi Stephen, I think .Rprofile is something you have to create yourself. It is not needed, but you can create it and then put your customizations in it (just put it in the same directory as the directory R starts in. Cheers, Josh On Sun, Nov 14, 2010 at 6:15 PM, Stephen Liu wrote: > Hi Stephen

Re: [R] LAPACK lib problem, lme4, lastest R, Linux

2010-11-14 Thread Ron Burns
With help from Dirk Eddelbuettel we found that I needed to explicitly install libatlas-base-dev. After doing this everything worked with no further fuss. Best Regards, Ron On 11/13/2010 11:10 AM, Ron Burns wrote: I just dumped Vista off a laptop and installed Ubuntu 10.10 (latest release

Re: [R] About upgrade R

2010-11-14 Thread Stephen Liu
Hi Stephen and folks > mv .Rprofile Rprofile I can't find .Rprofile on Win7 even with [uncheck] Hide extension for known file types on Windows Explorer. Nor I can search for it. Would it be under another name in Windows? B.R. Stephen L - Original Message From: stephen sefick To

Re: [R] About upgrade R

2010-11-14 Thread Stephen Liu
Hi Ajay > wont it make more common sense to make updating packages also as part > of every base version install BY Default.. just saying I also have this doubt? The packages have been updated. Are those packages updated belong to version 2.12 OR still version 2.11.1 In Linux/Unix if the l

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Stephen Liu
Hi Josh, Start "Command Prompt" as Admin C:\Windows\system32>cd C:\Users\satimis C:\Users\satimis>dir Volume in drive C has no label. Volume Serial Number is EC2D-3F1A Directory of C:\Users\satimis 11/14/2010 05:52 PM . 11/14/2010 05:52 PM .. 11/14/2010 01:58 PM

Re: [R] sum in vector

2010-11-14 Thread Henrique Dallazuanna
Try this: rowsum(value, paste(factor1, factor2, factor3)) On Sun, Nov 14, 2010 at 5:21 PM, km wrote: > Hi all, > >> > >> On Sun, Nov 14, 2010 at 10:06 PM, Henrique Dallazuanna < > www...@gmail.com> wrote: > >>> Try this: > >>> > >>> rowsum(price, market) > does it work with multiple factor

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Stephen Liu
Hi Duncun, Thanks for your advice. Start Window Explorer as Admin -> Organize -> Folder and Search Option -> View Under Advanced settings: [uncheck] Hide extension for known file types -> OK .RData shown up. Also it can be searched. B.R. Stephen L - Original Message From: Duncan

Re: [R] How to permanently remove [Previously saved workspace re

2010-11-14 Thread Stephen Liu
>> That is a nice reply, Duncan, and an excellent explanation of why >> ".Rdata" has no name! I also like the final sentence. >> I would only add: > If you're sane, and want to stay sane, think about not using Windows. Hi Ted, >10 years ago, I have stopped running Windows for production. I only

Re: [R] RCurl and cookies in POST requests

2010-11-14 Thread Duncan Temple Lang
Hi Christian Thanks for finding this. The problem seems to be that the finalizer on the curl handle seems to disappear and so is not being called when the handle is garbage collected. So there is a bug somewhere and I'll try to hunt it down quickly. In the meantime, you can achieve the same e

Re: [R] Extracting from data.frame

2010-11-14 Thread Bill.Venables
It's because in this instance R (and S before it) behaves a bit like Microsoft and tries to guess what you really wanted rather than listen to what you asked for. If you ask for a single column from a data frame, e.g. df[,1] then by default this behaves like df[[1]] and you get a single compon

Re: [R] Extracting from data.frame

2010-11-14 Thread William Dunlap
Use df[1,,drop=FALSE] if you want the output to be a data.frame, no matter how many columns df has. The effective default value for drop is TRUE if the output has a single column. This does not depend on whether or not you subscripted rows or columns or both. Bill Dunlap Spotfire, TIBCO Softwa

Re: [R] Full path to currently executed script file

2010-11-14 Thread Henrik Bengtsson
See findSourceTraceback() in the R.utils package. It's been discussed before, e.g. http://www.mail-archive.com/r-help@r-project.org/msg112375.html http://www.mail-archive.com/r-help@r-project.org/msg111871.html Beware, if you find yourself having to do this, it may be that you are doing somethin

[R] Extracting from data.frame

2010-11-14 Thread James Hirschorn
Can someone please explain the following behavior? df1 and df2 are data.frames. Suppose I want a subset of the rows (observations) using extraction, say just the first row. What I want to know is why if df1 has just one column then df1[1,] returns a vector, whereas if df2 has 2 or more columns

Re: [R] Problems loading xlsx

2010-11-14 Thread jim holtman
If you are running on WIndows, I would suggest that you use the RODBC package and the "odbcConnectExcel2007" function. I have had reasonable success with this. On Sun, Nov 14, 2010 at 3:23 PM, Paolo Rossi wrote: > Hi all, > > I am trying to run the package xlsx to read Excel 2007 files and I am

[R] L-shaped boxes with lattice graphs?

2010-11-14 Thread John Maindonald
Can anyone suggest an equivalent, for lattice graphs, of the base graphics argument bty="l"? NB that I am leaving off the box around the strip, with a strip function: stripfun <- function(which.given,which.panel, factor.levels=as.expression(levlist), ...){ panel.tex

[R] Kevin Long wants to stay in touch on LinkedIn

2010-11-14 Thread Kevin Long
LinkedIn I'd like to add you to my professional network on LinkedIn. - Kevin Long Kevin Long Environmental Scientist at WorleyParsons MEG Calgary, Canada Area Confirm that you know Kevin Long https://www.linkedin.com/e/j2w180-ggikhybj-3x/isd/1903753444/xYvORBoR/ -- (c) 20

Re: [R] cannot see the y-labels (getting cut-off)

2010-11-14 Thread jim holtman
increase the margins on the plot: > par(mar=c(4,7,2,1)) > plot(1:5,y,ylab='',yaxt='n' ); > axis(2, at=y, labels=formatC(y,big.mark=",",format="fg"),las=2,cex=0.1); > On Sun, Nov 14, 2010 at 6:03 PM, wrote: > > Hi All, > > When I run the following code, I cannot see the entire number. As opposed

[R] Re : interpretation of coefficients in survreg AND obtaining the hazard function for an individual given a set of predictors

2010-11-14 Thread Biau David
Dear Prof Lumley, This is a very clear, precise, and useful answer to all my questions. Thank you very much. David Biau. De : Thomas Lumley Cc : r help list Envoyé le : Dim 14 novembre 2010, 23h 54min 23s Objet : Re: [R] interpretation of coefficients in

Re: [R] interpretation of coefficients in survreg AND obtaining the hazard function for an individual given a set of predictors

2010-11-14 Thread Thomas Lumley
On Sun, Nov 14, 2010 at 6:51 AM, Biau David wrote: > Dear R help list, > > I am modeling some survival data with coxph and survreg (dist='weibull') using > package survival. I have 2 problems: > > 1) I do not understand how to interpret the regression coefficients in the > survreg output and it is

[R] cannot see the y-labels (getting cut-off)

2010-11-14 Thread sachinthaka . abeywardana
Hi All, When I run the following code, I cannot see the entire number. As opposed to seeing 1,000,000,000. I only see 000,000 because the rest is cut off. The cex option doesn't seem to be doing anything at all. y<-seq(1e09,5e09,1e09); plot(1:5,y,ylab='',yaxt='n' ); axis(2, at=y, labels=formatC

Re: [R] sum in vector

2010-11-14 Thread lgpeco
thx all for help this function works fine aggregate(price,list(market),sum) i also find another one sapply(x, function) -- View this message in context: http://r.789695.n4.nabble.com/sum-in-vector-tp3041661p3042089.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] About upgrade R

2010-11-14 Thread Tal Galili
Hi John, thank you for that input. It could be that the code I wrote here: http://www.r-statistics.com/2010/04/changing-your-r-upgrading-strategy-and-the-r-code-to-do-it-on-windows/ Should be updated so every time you install a new R version, you run the code for it to: 1) copy all packages from t

[R] Problems loading xlsx

2010-11-14 Thread Paolo Rossi
Hi all, I am trying to run the package xlsx to read Excel 2007 files and I am getting the error below. > library(xlsx) Loading required package: xlsxjars Loading required package: rJava Error : .onLoad failed in loadNamespace() for 'xlsxjars', details: call: .jinit() error: cannot obtain Clas

Re: [R] About upgrade R

2010-11-14 Thread stephen sefick
update.packages has always worked well for me. I have a customized .Rprofile file and just update from linux repos, or build from source mv .Rprofile Rprofile update all packages mv Rprofile .Rprofile It only takes a couple of minutes and everything is up I like being in control of what happ

[R] Problems loading xlsx

2010-11-14 Thread Paolo Rossi
Hi all, I am trying to run the package xlsx to read Excel 2007 files and I am getting the error below. > library(xlsx) Loading required package: xlsxjars Loading required package: rJava Error : .onLoad failed in loadNamespace() for 'xlsxjars', details: call: .jinit() error: cannot obtain Clas

Re: [R] About upgrade R

2010-11-14 Thread John C Frain
The current method allows one to easily retain several versions working in parallel. This particularly important if some package is not available in the new version. A few years ago there were problems such as these during a major overhaul of the rmetrics group of packages. My current practice is t

[R] Correction on last post

2010-11-14 Thread Chris Carleton
Hi again List, By 'discrete' variable in the last email, I meant 'categorical'. Also, the data I sent is one of the samples of the main data frame, which I mentioned in a round-about way, but I thought that it might be confusing after reading the email again. Thanks again for any help, Chris

[R] GeneGobi

2010-11-14 Thread chinling
Recently, i saw lot of news about GeneGobi. Anyone know where to download and how install it? -- View this message in context: http://r.789695.n4.nabble.com/GeneGobi-tp3041938p3041938.html Sent from the R help mailing list archive at Nabble.com. __ R-

Re: [R] JGR install problem

2010-11-14 Thread chinling
thanks! i installed and it can run already. -- View this message in context: http://r.789695.n4.nabble.com/JGR-install-problem-tp3039013p3041935.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https:/

Re: [R] Integrate to 1? (gauss.quad)

2010-11-14 Thread Douglas Bates
I don't know about the statmod package and the gauss.quad function but generally the definition of Gauss-Hermite quadrature is with respect to the function that is multiplied by exp(-x^2) in the integrand. So your example would reduce to summing the weights. On Sun, Nov 14, 2010 at 11:18 AM, Dora

Re: [R] sum in vector

2010-11-14 Thread km
Hi all, >> >> On Sun, Nov 14, 2010 at 10:06 PM, Henrique Dallazuanna >> wrote: >>> Try this: >>> >>>  rowsum(price, market)  does it work  with multiple factors/groups ?  using multiple factors such as c(factor1,factor2,factor3,...) as second arg with  rowsum() doesnt seem to work!  am i miss

Re: [R] as.matrix behaves weird

2010-11-14 Thread Charles C. Berry
On Sun, 14 Nov 2010, Feng Mai wrote: ncol is not an argument for as.matrix() Perhaps this is more than Alexx wanted to know, but ... Things can get a wee bit tricky when the function is a 'generic'. More precisely: 'ncol' is not an argument for any method for as.matrix() that is on your s

[R] R package 'np' problems

2010-11-14 Thread Chris Carleton
Hi List, I'm trying to get a density estimate for a point of interest from an npudens object created for a sample of points. I'm working with 4 variables in total (3 continuous and 1 unordered discrete - the discrete variable is the character column in training.csv). When I try to evaluate the den

Re: [R] sum in vector

2010-11-14 Thread Feng Mai
to be more general you can also use aggregate: aggregate(price,list(market),sum) Henrique Dallazuanna wrote: > > Try this: > > rowsum(price, market) > > On Sun, Nov 14, 2010 at 10:02 AM, lgpeco wrote: > >> >> hy guys i have one question :) >> >> i have two vectors markets and price >> >>

Re: [R] as.matrix behaves weird

2010-11-14 Thread Feng Mai
ncol is not an argument for as.matrix() Alexx Hardt gmx.de> writes: > > Hi, > can someone tell me why x is still a 2x1-matrix in the last step? > __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the pos

Re: [R] dnorm and qnorm

2010-11-14 Thread Edwin Sun
Thank you all for the great help. I think the optimize function and approach solves my problem well. Edwin Sun -- View this message in context: http://r.789695.n4.nabble.com/dnorm-and-qnorm-tp3040427p3041962.html Sent from the R help mailing list archive at Nabble.com. ___

[R] as.matrix behaves weird

2010-11-14 Thread Alexx Hardt
Hi, can someone tell me why x is still a 2x1-matrix in the last step? > x <- 1:2 > x [1] 1 2 > t(x) [,1] [,2] [1,]12 > x <- as.matrix(x,ncol=2) > x [,1] [1,]1 [2,]2 I figured out that if I use "x <- matrix(x,ncol=2)", instead of as.matrix(), it works fine. What exactl

Re: [R] score test for logistic regression

2010-11-14 Thread peter dalgaard
On Nov 14, 2010, at 18:15 , David Winsemius wrote: > > On Nov 14, 2010, at 11:29 AM, Wang, Ying wrote: > >> Dear R experts, >> >> I'm trying to find a code to calculate the p-value from the score test for >> the logistic regression. My fit is like this: logit=beta0+beta1*x1+beta2*x2 >> +

Re: [R] About upgrade R

2010-11-14 Thread Uwe Ligges
On 14.11.2010 17:59, Ajay Ohri wrote: wont it make more common sense to make updating packages also as part of every base version install BY Default.. just saying At least I do not like the idea: If I just want to try a beta version, I do not want that everything is updated and I can't s

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Joshua Wiley
@Stephen Sorry, Duncan's right, it is likely not a protected/hidden file issue. At the risk of nuking the fridge, you could also open an elevated command prompt then navigate to the relevant directory and delete the file: > cd C:\Users\satimis > del .RData > exit Probably too much trouble for d

[R] Integrate to 1? (gauss.quad)

2010-11-14 Thread Doran, Harold
Does anyone see why my code does not integrate to 1? library(statmod) mu <- 0 s <- 1 Q <- 5 qq <- gauss.quad(Q, kind='hermite') sum((1/(s*sqrt(2*pi))) * exp(-((qq$nodes-mu)^2/(2*s^2))) * qq$weights) ### This does what's it is supposed to myNorm <- function(theta) (1/(s*sqrt(2*pi))) * exp(-((th

Re: [R] score test for logistic regression

2010-11-14 Thread David Winsemius
On Nov 14, 2010, at 11:29 AM, Wang, Ying wrote: Dear R experts, I'm trying to find a code to calculate the p-value from the score test for the logistic regression. My fit is like this: logit=beta0+beta1*x1+beta2*x2 ++ betak* xk. And my H0 is beta1=beta2=...=betak =0. Any help will

[R] score test for logistic regression

2010-11-14 Thread Wang, Ying
Dear R experts, I'm trying to find a code to calculate the p-value from the score test for the logistic regression. My fit is like this: logit=beta0+beta1*x1+beta2*x2 ++ betak* xk. And my H0 is beta1=beta2=...=betak =0. Any help will be highly appreciated. Thank you! Ying ___

Re: [R] About upgrade R

2010-11-14 Thread Ajay Ohri
wont it make more common sense to make updating packages also as part of every base version install BY Default.. just saying Websites- http://decisionstats.com http://dudeofdata.com Linkedin- www.linkedin.com/in/ajayohri 2010/11/14 Uwe Ligges : > Upgrading is mentioned in the FAQs / R

Re: [R] How to permanently remove [Previously saved workspace re

2010-11-14 Thread Ted Harding
On 14-Nov-10 16:43:18, Duncan Murdoch wrote: > On 14/11/2010 10:42 AM, Joshua Wiley wrote: >> On Sun, Nov 14, 2010 at 3:40 AM, Stephen Liu >> wrote: >>> Hi Joshua, >>> list.files(path = getwd(), all.files = TRUE) >>> [3] >>> ".RData" >>> [4] >>> ".Rhistory" >>> .Rhistory and .RDate are th

Re: [R] About upgrade R

2010-11-14 Thread Tal Galili
Hi Stephen, I just happened to have upgraded my R today. Tips: 1) Make sure the folder has full permissions so that you'll be able to install/update packages on it. 2) I still find the advices (and code) I gave in that article to be worthwhile. And do pay attention to the directory into which you

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Duncan Murdoch
On 14/11/2010 10:42 AM, Joshua Wiley wrote: On Sun, Nov 14, 2010 at 3:40 AM, Stephen Liu wrote: Hi Joshua, list.files(path = getwd(), all.files = TRUE) [3] ".RData" [4] ".Rhistory" .Rhistory and .RDate are there. Note that these files start with a "." But I can't find .RDate on Wind

Re: [R] sum in vector

2010-11-14 Thread Henrique Dallazuanna
Try this: rowsum(price, market) On Sun, Nov 14, 2010 at 10:02 AM, lgpeco wrote: > > hy guys i have one question :) > > i have two vectors markets and price > > market <- c(1, 5, 7, 9, 9, 6, 5, 4, 4, 3, 1, 2, 1) > price <- c(100, 20, 30, 10, 50, 23, 23, 33, 96, 6, 4, 38, 96) > i would like sum

Re: [R] About upgrade R

2010-11-14 Thread Stephen Liu
Hi Uwe, > If you have your additionally installed packages in a separate library > (not the R base library) you can simply run > update.packages(checkBuilt=TRUE) I have following packages installed in addition to R base rcom RExcel statconnDCOM IIRC statconnDCOM and RExcel are on different di

Re: [R] Problem on update

2010-11-14 Thread Stephen Liu
Hi Uwe, Your advice noted. I'll upgrade R to version 2.12.0 B.R. Stephen L - Original Message From: Uwe Ligges To: Stephen Liu Cc: r-help@r-project.org Sent: Sun, November 14, 2010 11:02:00 PM Subject: Re: [R] Problem on update On 14.11.2010 15:34, Stephen Liu wrote: > Hi all, >

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Stephen Liu
Hi Joshua, >> But I can't find .RDate on Windows Explorer. Only .Rhistory is there. > This is likely a "feature" of Windows Explorercertain types of > files are hidden by default (like those that start with "."). You can > adjust this behavior in the folder options (if the idea of .. I

Re: [R] replace a row in a matrix

2010-11-14 Thread John Kane
Indexing (xx <- matrix(1:4, nrow=2)) vec <- 5:6 xx[2,] <- vec xx --- On Sun, 11/14/10, cassie jones wrote: > From: cassie jones > Subject: [R] replace a row in a matrix > To: r-help@r-project.org > Received: Sunday, November 14, 2010, 10:59 AM > Dear all, > > > I created a n*2 matrix and

Re: [R] kalman filter

2010-11-14 Thread gpetris
Hi, There are a few packages that I would suggest to run Kalman filter. Take a look at dlm and KFAS. If you need more help you should be more precise in formulating your problem, providing a small example, as required by the posting guide. Best, Giovanni Petris Quoting Garten Stuhl :

Re: [R] replace a row in a matrix

2010-11-14 Thread Joshua Wiley
Hi Cassie, If your matrix is named "X", and your vector "y", then: X[i, ] <- y Please read the documentation for the extraction operator. You can pull this up by entering the following command at the R console: ?"[" You would also probably benefit from a careful reading of this manual: http:/

[R] kalman filter

2010-11-14 Thread Garten Stuhl
Hello, I would like use Kalman filter for estimating parameters of a stochastic model. I have developed the state space model but I don’t know the correct way use Kalman filter for parameter estimation. Has anybody experience in work with Kalman filter in R. I don’t know the correct function.

Re: [R] Define a glm object with user-defined coefficients (logistic regression, family="binomial")

2010-11-14 Thread Jürgen Biedermann
Hi David, Thank you very much for your answer. It helps me a lot. The offset argument was the key (I didn't understand the description in the R-help file) Rereading my email I found a mistake in the definition of my formula. Instead of p(y) = exp(a + c1*x1 + c2*x2), it has to be: p(y) = exp(a

[R] replace a row in a matrix

2010-11-14 Thread cassie jones
Dear all, I created a n*2 matrix and I want to replace the ith row with a vector. Can anyone suggest me what is the simple way to do it? Sorry for bothering you with such simple question. I appreciate any hints or advice. Thanks in advance. Cassie [[alternative HTML version deleted]]

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Joshua Wiley
On Sun, Nov 14, 2010 at 3:40 AM, Stephen Liu wrote: > Hi Joshua, > >> list.files(path = getwd(), all.files = TRUE) >  [3] > ".RData" >  [4] > ".Rhistory" > .Rhistory and .RDate are there. Note that these files start with a "." > > But I can't find .RDate on Windows Explorer.  Only .Rhistory is t

Re: [R] Define a glm object with user-defined coefficients (logistic regression, family="binomial")

2010-11-14 Thread David Winsemius
On Nov 14, 2010, at 8:35 AM, Jürgen Biedermann wrote: Hi David, Thank you very much for your answer. It helps me a lot. The offset argument was the key (I didn't understand the description in the R- help file) Rereading my email I found a mistake in the definition of my formula. Instead o

Re: [R] About upgrade R

2010-11-14 Thread Uwe Ligges
Upgrading is mentioned in the FAQs / R for Windows FAQs. If you have your additionally installed packages in a separate library (not the R base library) you can simply run update.packages(checkBuilt=TRUE) If not ... Uwe Ligges On 14.11.2010 15:51, Stephen Liu wrote: Hi all, Win 7 64-bit

Re: [R] sum in vector

2010-11-14 Thread John Kane
Have a look at the reshape2 package. http://had.co.nz/reshape/ reshape2 is, to the user a slight modification of rehape but the author says it is much faster. The code below seems to do what you want. - xx <- data.frame(market, price) l

Re: [R] Problem on update

2010-11-14 Thread Uwe Ligges
On 14.11.2010 15:34, Stephen Liu wrote: Hi all, Win7 64 bit R version 2.11.1 (2010-05-31) Ran R as admin update.packages(ask='graphics') --- Please select a CRAN mirror for use in this session --- Here you selected a CRAN mirror. Fine. Warning: unable to access index for repository h

Re: [R] Number above the bar?

2010-11-14 Thread Juliet Hannah
Check out ggplot2, specifically geom_bar and geom_text. http://had.co.nz/ggplot2/ You have to get used to its syntax, which can take some time, but after that it can make things a lot easier. Here is an example. library(ggplot2) df <- data.frame(xvar = factor(c(1, 2)), yvar = c(1, 5)) p <- ggp

Re: [R] Sweave question

2010-11-14 Thread Duncan Murdoch
On 13/11/2010 10:31 PM, Ralf B wrote: Thank you. The article you cited explains on the last page how this is done and shows how Sweave is run from within R and it says that it creates the .tex file. My last remaining question is now if there is a way to execute this Sweave tex output by executin

[R] About upgrade R

2010-11-14 Thread Stephen Liu
Hi all, Win 7 64-bit R version 2.11.1 (2010-05-31) I want to upgrade R to version 2.12.0 R-2.12.0 for Windows (32/64 bit) http://cran.r-project.org/bin/windows/base/ I found steps on following site; How to upgrade R on windows – another strategy (and the R code to do it) http://www.r-statistics.

[R] Problem on update

2010-11-14 Thread Stephen Liu
Hi all, Win7 64 bit R version 2.11.1 (2010-05-31) Ran R as admin > update.packages(ask='graphics') --- Please select a CRAN mirror for use in this session --- Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows64/contrib/2.11 It is this site in proble

[R] RCurl and cookies in POST requests

2010-11-14 Thread Christian M.
7;t, # then the script will retrive the same URL as before, which # will reply with ZZZ if XXX was sent. # # If XXX and ZZZ are in "cookies.txt", this should be removed # to test again (otherwise the script will find both cookies # and won't do anything). library(R

Re: [R] how to find names referring to "parts" of an R object. particlualry w.r.t capscale

2010-11-14 Thread Uwe Ligges
Use str(object) in order to inspect what elements object consists of. Uwe Ligges On 14.11.2010 12:28, Nevil Amos wrote: This is both a very general, and a specific question. either answer will help me a lot. I know the object$part syntax is used to retrieve parts of an object for instance myM

Re: [R] sum in vector

2010-11-14 Thread Alexx Hardt
Am 14.11.2010 13:02, schrieb lgpeco: hy guys i have one question :) i have two vectors markets and price market<- c(1, 5, 7, 9, 9, 6, 5, 4, 4, 3, 1, 2, 1) price<- c(100, 20, 30, 10, 50, 23, 23, 33, 96, 6, 4, 38, 96) i would like sum prices: market 1: (100+4+96), market 2: (38),..., market 9: (1

Re: [R] sum in vector

2010-11-14 Thread Andrew Dolman
tapply(price, market, sum) andydol...@gmail.com On 14 November 2010 13:02, lgpeco wrote: > > hy guys i have one question :) > > i have two vectors markets and price > > market <- c(1, 5, 7, 9, 9, 6, 5, 4, 4, 3, 1, 2, 1) > price <- c(100, 20, 30, 10, 50, 23, 23, 33, 96, 6, 4, 38, 96) > i would

[R] sum in vector

2010-11-14 Thread lgpeco
hy guys i have one question :) i have two vectors markets and price market <- c(1, 5, 7, 9, 9, 6, 5, 4, 4, 3, 1, 2, 1) price <- c(100, 20, 30, 10, 50, 23, 23, 33, 96, 6, 4, 38, 96) i would like sum prices: market 1: (100+4+96), market 2: (38),..., market 9: (10+50) ao i would like get this resul

[R] problem with chartSeries

2010-11-14 Thread yoda55
Hi All, I came across some trouble with this function when trying to plot intraday data. I can't manage to plot candelsticks I get a line instead and I don't understand why. I put below data sample and code. > head(x) open high low close 2010-10-27 08:59:59

[R] Full path to currently executed script file

2010-11-14 Thread Ralf B
I am looking for a way to determine the full filepath to the currently executed script. Any ideas? Ralf __ 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/posting-g

[R] Fetching data

2010-11-14 Thread Maithula Chandrashekhar
Dear all R users, I am wondering is there any procedure exists on R to fetch data directly from "http://www.ncdex.com/Market_Data/Spot_price.aspx"; and save it in some time series object, without filling any field in that website. Can somebody point me whether it is possible? Thanks and regards,

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Stephen Liu
Hi Joshua, > list.files(path = getwd(), all.files = TRUE) [1] "." [2] ".." [3] ".RData"

[R] jackknife-after-bootstrap

2010-11-14 Thread ufukbeyaztas
Hi dear all, Can someone help me about detection of outliers using jackknife after bootstrap algorithm? -- View this message in context: http://r.789695.n4.nabble.com/jackknife-after-bootstrap-tp3041634p3041634.html Sent from the R help mailing list archive at Nabble.com. [[alternativ

[R] how to find names referring to "parts" of an R object. particlualry w.r.t capscale

2010-11-14 Thread Nevil Amos
This is both a very general, and a specific question. either answer will help me a lot. I know the object$part syntax is used to retrieve parts of an object for instance myMantel$signif will return the the p value of mantel() and myMantel$statistic the mantel r. Is there any way of listing

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Joshua Wiley
On Sun, Nov 14, 2010 at 2:00 AM, Stephen Liu wrote: > Hi folks, > > Tks for your advice. > > Summing up all your advice I performed following steps without success. > > 1) >> rm (list = ls( )) >> q() > save working image > > 2) >> rm (list = ls(all=TRUE)) >> q() > save working image > > 3) >> getw

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Stephen Liu
Hi folks, Tks for your advice. Summing up all your advice I performed following steps without success. 1) > rm (list = ls( )) > q() save working image 2) > rm (list = ls(all=TRUE)) > q() save working image 3) > getwd() [1] "C:/Users/satimis" .Rhistory > list.files(path="C:\Users\satimis", all

Re: [R] Do loop

2010-11-14 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 13.11.2010 16:17:47: > Re: [R] Do loop > > Gud evening sir ,I want do the cluster analysis algorithm in r software can > u guide me sir ??cluster gives you bunch of methods > > My mail id is :sundars...@gmail.com > > And I want the brief explanati

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Joshua Wiley
Hi, On Sun, Nov 14, 2010 at 1:14 AM, Yuliya Matveyeva wrote: > Good afternoon, >  I am actually concerned with this issue too. What if I run R at work and I > simply do not have the necessary access-rights in order to delete the .Rdata One wonders how it was created in the first place; with writ

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Prof Brian Ripley
On Sun, 14 Nov 2010, Yuliya Matveyeva wrote: Good afternoon, I am actually concerned with this issue too. What if I run R at work and I simply do not have the necessary access-rights in order to delete the .Rdata file. Do I really have only 3 choices: ask the admin to delete it, live with it alw

Re: [R] Reverting to previous version

2010-11-14 Thread gtg
not sure about Mac but in windows simply reinstalling the old version will work. Different version of R are installed in different directories. -- View this message in context: http://r.789695.n4.nabble.com/Reverting-to-previous-version-tp3040344p3041572.html Sent from the R help mailing list ar

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Yuliya Matveyeva
Good afternoon, I am actually concerned with this issue too. What if I run R at work and I simply do not have the necessary access-rights in order to delete the .Rdata file. Do I really have only 3 choices: ask the admin to delete it, live with it always reloading the previous workspace, resave an

Re: [R] gettng the row number based on column conditions

2010-11-14 Thread Joshua Wiley
Hi, You should use the logical "and", i.e., "&" to tell R that you need condition 1 (first column equals 1) AND condition 2 (second column equals 1) to be true: which(X[, 1] == 1 & X[, 2] == 1) HTH, Josh On Sun, Nov 14, 2010 at 12:39 AM, gtg wrote: > > Hi all, I would like to get the row numb

[R] gettng the row number based on column conditions

2010-11-14 Thread gtg
Hi all, I would like to get the row numbers in X where col1 and col2 are both 1 I tried this: which(X[,c(1,2)]==1) but it gives me the row numbers where either col1 or col2 = 1 What should I do? Thank you. -- View this message in context: http://r.789695.n4.nabble.com/gettng-the-row-number-base