Re: [R] Error with Source()

2011-11-13 Thread Mario Valle
Normally is a missing comma in a function command list. Ciao! mario On 10-Nov-11 19:02, jim holtman wrote: You have a syntax error in your script. Take a look around line 884 On Thu, Nov 10, 2011 at 9:27 AM, ftoninif_ton...@hotmail.com wrote: Hi everybody, I started to

Re: [R] proportional area venn diagrams?

2011-11-13 Thread Jim Lemon
On 11/12/2011 01:26 AM, Michael Friendly wrote: In http://finzi.psych.upenn.edu/R/Rhelp02a/archive/14637.html some rudimentary R functions were given for drawing proportional area venn diagrams with area of each intersection ~ the count in a 2 x 2 x 2 table. I'm interested in this, for

Re: [R] Second-order effect in Parametric Survival Analysis

2011-11-13 Thread David Winsemius
On Nov 13, 2011, at 12:51 AM, ryusuke wrote: Thank you Dr. David. I try to summarize it. Assumes x and z are two covariates: x = dummy variable (1 or 0) z = factors (people name) x*z = x + z + x*z Actually I said = x + z + x:z And interaction formula of a two level dummy with a

Re: [R] identify duplicate from more than one column

2011-11-13 Thread David Winsemius
On Nov 13, 2011, at 1:19 AM, Joshua Wiley wrote: Hi Carlos, Here is one option: ## read in your data dat - read.table(textConnection( obs unithome zsex age 1 015029 18 11 053 2 015029 18 12 049 3

Re: [R] LOESS function Newton optimization

2011-11-13 Thread David Winsemius
On Jul 12, 2011, at 7:53 PM, KenjiPsyD wrote: I have a question about running an optimization function on an existing LOESS function defined in R. I have a very large dataset (1 million observations) and have run a LOESS regression. Now, I want to run a Newton-Raphson optimization to

Re: [R] dev.new() within a loop

2011-11-13 Thread Giovanni Azua
Hello David, On Nov 13, 2011, at 5:20 AM, David Winsemius wrote: However, when executing plot_raw which invokes dev.new(..) all windows come out blank whereas if I execute each file outside of a loop then I can see the plots properly. Perhaps ...(you did not say what package this plot_raw

Re: [R] Error in drawing

2011-11-13 Thread Guy Nason
Dear all, Thanks. I will add it to my list. Sincerely, Guy Nason On 10 Nov 2011, at 04:34, R. Michael Weylandt wrote: It's not a problem with your data or use of the functions -- rather I think there's just a little bug in the package (and I've cc'd the maintainer): draw.wd leads to a

[R] Indirect references

2011-11-13 Thread Back2Numbers
Hi All, I would like to work with symbols referenced by strings: I would like to manipulate data/symbols referencing to them by the string name of the symbol. An example will be clearer. Let's I get a time series through quantmod getSymbols(GLD) This will create a new symbol GLD with the

Re: [R] dev.new() within a loop {SOLVED]

2011-11-13 Thread David Winsemius
In a private communication this poster has indicated that he eventually found the answer by Googling the question. (The solution was as described in the FAQ.) -- David. On Nov 13, 2011, at 5:21 AM, Giovanni Azua wrote: Hello David, On Nov 13, 2011, at 5:20 AM, David Winsemius wrote:

[R] 2^k experiment generator

2011-11-13 Thread Giovanni Azua
Hello, While looking for info on 2^k experimental design and anova I remember I saw somewhere there was a function to generate all the experiments. I can't find the function anymore can anyone suggest? The function takes as input the factors and levels and generates all the experiments. I

Re: [R] dev.new() within a loop

2011-11-13 Thread Giovanni Azua
On Nov 13, 2011, at 3:23 PM, David Winsemius wrote: Please read both my comments and the FAQ more carefully . You are inadequately considering the information that has been offered to you. Ok you wanted to make sure I have to read the FAQ well I didn't have to :) Googling using your

Re: [R] 2^k experiment generator

2011-11-13 Thread Bryan Hanson
Check out the Task View on Experimental Design: http://cran.at.r-project.org/web/views/ExperimentalDesign.html but perhaps packages rsm or qualityTools have what you want. Bryan *** Bryan Hanson Professor of Chemistry Biochemistry DePauw University On Nov 13, 2011, at 9:25 AM,

Re: [R] 2^k experiment generator

2011-11-13 Thread Giovanni Azua
Never mind, found it, it is the expand.grid function. On Nov 13, 2011, at 3:25 PM, Giovanni Azua wrote: Hello, While looking for info on 2^k experimental design and anova I remember I saw somewhere there was a function to generate all the experiments. I can't find the function anymore

Re: [R] Indirect references

2011-11-13 Thread Duncan Murdoch
On 11-11-13 8:10 AM, Back2Numbers wrote: Hi All, I would like to work with symbols referenced by strings: I would like to manipulate data/symbols referencing to them by the string name of the symbol. An example will be clearer. Let's I get a time series through quantmod getSymbols(GLD)

[R] New PLYR issue

2011-11-13 Thread Neotropical bat risk assessments
Issue with PLYR. Now using R 2.14 and this data and plyr command line worked with 2.13 I am also loading the same saved data that worked previously, but now some issue. library(plyr) UNESCO - dget('C:/Carbon-GJ/BZE_ecosys.robj') df2 - ddply(df, UNESCO, summarise, total_ha = sum(Ha)) *Error

[R] issue using package sos

2011-11-13 Thread Neotropical bat risk assessments
Issue with sos package I am now using R 2.14 and the sos package did work with 2.13 library(sos) Loading required package: brew Attaching package: 'sos' The following object(s) are masked from 'package:JGR': installPackages The following object(s) are masked from 'package:utils':

Re: [R] dev.new() within a loop

2011-11-13 Thread David Winsemius
On Nov 13, 2011, at 9:35 AM, Giovanni Azua wrote: On Nov 13, 2011, at 3:23 PM, David Winsemius wrote: Please read both my comments and the FAQ more carefully . You are inadequately considering the information that has been offered to you. Ok you wanted to make sure I have to read the

[R] [R-pkgs] Roxygen2: version 2.2

2011-11-13 Thread Hadley Wickham
# Roxygen2 The premise of `roxygen2` is simple: describe your functions in comments next to where their definitions and `roxygen2` will process your source code and comments to produce R compatible Rd files. Here's a simple example from the `stringr` package:     #' The length of a string (in

Re: [R] issue using package sos

2011-11-13 Thread Ben Bolker
Neotropical bat risk assessments neotropical.bats at gmail.com writes: Issue with sos package I am now using R 2.14 and the sos package did work with 2.13 library(sos) Loading required package: brew Attaching package: 'sos' The following object(s) are masked from 'package:JGR':

Re: [R] New PLYR issue

2011-11-13 Thread Jeff Newmiller
Not reproducible. Read the posting guide. Provide enough data to reproduce the problem. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#.

Re: [R] Myriam Saavedra M. Sc. Questions about maximun radius distance

2011-11-13 Thread Ben Bolker
Myriam fantasmita1948 at yahoo.fr writes: Dear Mr. Baddeley   I just graduated from a Masters in Applied Mathematics on Jun19th. My thesis was about spatial distribution /a nalysis of some trees in a part of  the Congo Basic Forest. In my thesis I used your spatial package in R, and today

[R] locator not-interactive

2011-11-13 Thread Heverkuhn Heverkuhn
Hello everyone, I have these 2 vectors in a type=s plot ( reported below) I would like to check the value of y at z=seq(0,1440, by=60) I think that I can do it calculating a vector that report the position of the value of y = z for which the difference to z is minimal. But I also guess

Re: [R] R v2.13.2 - Cannot find Rcmd on path?

2011-11-13 Thread Uwe Ligges
On 12.11.2011 15:56, jack306 wrote: Dear all: I could not able to find rcmd using the following path: either R version (2.13.2 or 2.14.0); either rtools version (2.13 or 2.14). My os is winxp. The variables set in path are as follows. c:\Rtools\bin;c:\Rtools\MinGW\bin;C:\Perl\bin;

Re: [R] With an example - Re: rbind.data.frame drops attributes for factor variables

2011-11-13 Thread Sammy Zee
dataset[ nrow(dataset), ] - c (Male, 5, bad) The above seems to have worked to append a row in place of a rbind(). This method does not drop the custom attributes from the column. Do yo see any issue with this method. Thanks, Sammy On Sat, Nov 12, 2011 at 10:16 PM, David Winsemius

Re: [R] R v2.13.2 - Cannot find Rcmd on path?

2011-11-13 Thread Gabor Grothendieck
On Fri, Oct 21, 2011 at 5:07 PM, Hardy Griesbauer hgriesba...@hotmail.com wrote: Hello, I recently updated to R version 2.13.2.  With R version 2.10.0, I often created and installed R packages, however, I cannot do this since updating. In other words, when I type in Rcmd build -binary

Re: [R] Has anyone used SIAR package add on?

2011-11-13 Thread Mark Difford
On Nov 12, 2011 at 8:29pm Alex wrote: Has anyone used SIAR package add on? I posted a reply to an earlier question from you on this subject. See http://r.789695.n4.nabble.com/Errors-in-SIAR-td4029804.html. In it I note that there are problems with the function from siar (not SIAR) you are

[R] cannot load zoo package

2011-11-13 Thread hawkhandler
Using: Mac OS 10.7.2 R version 2.13.2 I cannot load the zoo package. The install runs fine but when trying to load it i get the following error: /Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/Users/ntyhurst/Library/R/2.13/library/zoo/libs/i386/zoo.so':

[R] Generate the distribution

2011-11-13 Thread Anban
Hi everyone, i really need some help with one task. I simply cant understand what i really have to do. The task is: Generate the distribution of maximum on samples of size 200 from beta with shape parameters 5 and 5 distribution. Plot a histogram of simulated values and overlay at least one

Re: [R] cannot load zoo package

2011-11-13 Thread Gabor Grothendieck
On Sun, Nov 13, 2011 at 11:23 AM, hawkhandler ntyhu...@gmail.com wrote: Using: Mac OS 10.7.2 R version 2.13.2 I cannot load the zoo package.  The install runs fine but when trying to load it i get the following error: /Error in dyn.load(file, DLLpath = DLLpath, ...) :  unable to load

Re: [R] R v2.13.2 - Cannot find Rcmd on path?

2011-11-13 Thread Uwe Ligges
On 13.11.2011 17:29, Gabor Grothendieck wrote: On Fri, Oct 21, 2011 at 5:07 PM, Hardy Griesbauer hgriesba...@hotmail.com wrote: Hello, I recently updated to R version 2.13.2. With R version 2.10.0, I often created and installed R packages, however, I cannot do this since updating. In

Re: [R] cannot load zoo package

2011-11-13 Thread Achim Zeileis
There was a problem with @rpath within R.app on the Mac. Either starting R within a shell (instead of R.app) or updating R.app should both resolve the problem. See https://stat.ethz.ch/pipermail/r-sig-mac/2011-November/008757.html for details. Z On Sun, 13 Nov 2011, hawkhandler wrote:

Re: [R] To moderator

2011-11-13 Thread Ted Harding
No. But it has not been posted either. You got that message because you sent your message to the wrong address. You should have sent it to r-help@r-project.org You had probably sent it to r-help-requ...@r-project.org which would have had the effect that the server would have tried to

[R] R development master class: NYC, Dec 12-13

2011-11-13 Thread Hadley Wickham
Hi all, I hope you don't mind the slightly off topic email, but I'm going to be teaching an R development master class in New York City on Dec 12-13. The basic idea of the class is to help you write better code, focused on the mantra of do not repeat yourself. In day one you will learn powerful

Re: [R] To moderator

2011-11-13 Thread Ted Harding
My apologies for sending the message with the above subject to R-help. I can only assume that it was the result of mis-mousing! (It should only have gone to the original sendar, and to r-help-owner). Best wishes to all, Ted.

Re: [R] R development master class: NYC, Dec 12-13

2011-11-13 Thread Alex Ruiz Euler
What, no discount codes for us?! No seriously, as much as I'm for free enterprise, it feels awkward to see you promote an (expensive!) course in a list where people offer not only their knowledge, but also the tools you use, for free. I ignore whether this goes against posting rules, but even

Re: [R] Generate the distribution

2011-11-13 Thread Ben Bolker
Anban nino.zajc at gmail.com writes: [snip] i really need some help with one task. I simply cant understand what i really have to do. [snip] Generate the distribution of maximum on samples of size 200 from beta with shape parameters 5 and 5 distribution. Plot a histogram of simulated

Re: [R] R v2.13.2 - Cannot find Rcmd on path?

2011-11-13 Thread Yihui Xie
I remember I was torn into pieces a few months back when I made a wishlist here that R adds its bin path to PATH on Windows during installation. People had tons of reasons of objection. Although I do not use these batchfiles (usually I do not actually use Windows), I see there is a motivation

[R] How to change the font of any help page

2011-11-13 Thread Christofer Bogaso
Dear all, when I open the help page of any R function, the help page opens with my default browser. However I am not happy with Font of the help page, which probably set as 'Times new roman'. How can I change this Font style? I want to see any help content with the 'Calibri' font. Is it possible?

Re: [R] identify duplicate from more than one column

2011-11-13 Thread jour4life
Thanks Jim and David! It seems like both were great options. Both of your suggestions of pasting both IDs together worked well, keeping the pasting as a character is better. Though, Jim's example was interesting, it gave me the following error: Error in `$-.data.frame`(`*tmp*`, coupleid, value =

Re: [R] R v2.13.2 - Cannot find Rcmd on path?

2011-11-13 Thread Hardy Griesbauer
For what it's worth: the fix was to put the x64 folder FIRST in the path. -Original Message- From: xieyi...@gmail.com [mailto:xieyi...@gmail.com] On Behalf Of Yihui Xie Sent: November-13-11 10:16 AM To: Uwe Ligges Cc: Gabor Grothendieck; r-help@r-project.org; Hardy Griesbauer Subject:

[R] Understand Ncells and Vcells, from gc()

2011-11-13 Thread Lafaye de Micheaux
Dear all, I am working on a 64 bits Linux system. I issue the following R commands: rm(list=ls()) # To remove all objects in the workspace. gc() # To free memory. used (Mb) gc trigger (Mb) max used (Mb) Ncells 124250 6.7 35 18.7 35 18.7 Vcells 124547 1.0 786432 6.0 476934 3.7 gc() #

[R] Function not found, maybe respective package has to be put in environment?

2011-11-13 Thread Andreas Klein
Hello everybody, I have a problem and would like to start with an example: library(snow) library(tseries) fn - function(x) adf.test(x) clusterApply(cl=cl, x=x , fun=fn) R cannot find the function adf.test() because it is inside the function fn(). This problem does not occur when, for

Re: [R] Function not found, maybe respective package has to be put in environment?

2011-11-13 Thread Uwe Ligges
You have to load tseries on the nodes, not only on the master, i.e.: clusterEvalQ(cl, library(tseries)) Best, Uwe Ligges On 13.11.2011 19:34, Andreas Klein wrote: Hello everybody, I have a problem and would like to start with an example: library(snow) library(tseries) fn- function(x)

Re: [R] How to change the font of any help page

2011-11-13 Thread Uwe Ligges
Each package comes with its own R.css these days and it can be tweaked by the package. If it is the standard on, it uses your browser's default font for displaying the plain text in the body of a help page. Best, Uwe Ligges On 13.11.2011 19:46, Christofer Bogaso wrote: Dear all, when I

Re: [R] Kolmogorov-smirnov test

2011-11-13 Thread karlheinz037
I recently gave a presentation at the 50th Army Operational Research Symposium at Ft Lee describing an implementation of Conover's exact calculation method for the KS test applied to discrete distributions. My implementation was done in Matlab script as opposed to R. Multiple Monte-Carlo trials

Re: [R] R development master class: NYC, Dec 12-13

2011-11-13 Thread Hadley Wickham
No seriously, as much as I'm for free enterprise, it feels awkward to see you promote an (expensive!) course in a list where people offer not only their knowledge, but also the tools you use, for free. You might have a point if I taught this course instead of offering knowledge and code for

Re: [R] R development master class: NYC, Dec 12-13

2011-11-13 Thread Alex Ruiz Euler
Ha! Point publicly acknowledged. Best, A. On Sun, 13 Nov 2011 13:41:36 -0600 Hadley Wickham had...@rice.edu wrote: No seriously, as much as I'm for free enterprise, it feels awkward to see you promote an (expensive!) course in a list where people offer not only their knowledge, but also

Re: [R] R development master class: NYC, Dec 12-13

2011-11-13 Thread Steve Lianoglou
Though I can't speak for Alex, I suspect this was a case of him either (1) not realizing you were actually the poster of the original email, or (2) he is relatively new to the woRld and hasn't yet connecting your name to your (enumerable) contributions. Also: Some of the money I earn from these

Re: [R] identify duplicate from more than one column

2011-11-13 Thread Joshua Wiley
Hi Carlos, Am I Jim? (I ask because there are at least two quite active Jim's on this list and one could have conceivably replied to you offlist). Regarding your error, it is rather difficult to tell without knowing exactly what your data is like and what you did. For _just_ the unit, home, and

Re: [R] Generate the distribution

2011-11-13 Thread Dennis Murphy
Google is an amazing resource for getting information. Try Googling 'simulation in R' - I got several useful hits on the first page. HTH, Dennis On Sun, Nov 13, 2011 at 7:41 AM, Anban nino.z...@gmail.com wrote: Hi everyone, i really need some help with one task. I simply cant understand what

Re: [R] R development master class: NYC, Dec 12-13

2011-11-13 Thread Sarah Goslee
On Sun, Nov 13, 2011 at 2:55 PM, Steve Lianoglou mailinglist.honey...@gmail.com wrote: Some of the money I earn from these courses goes to pay for my summer salary and supports student research. It also gives me confidence that if I don't get tenure because I've been writing R packages instead

Re: [R] R v2.13.2 - Cannot find Rcmd on path?

2011-11-13 Thread Gabor Grothendieck
On Sun, Nov 13, 2011 at 1:38 PM, Hardy Griesbauer hgriesba...@hotmail.com wrote: For what it's worth: the fix was to put the x64 folder FIRST in the path. Of course that only fixes it for now. Every time you upgrade R you have to change it all over again. With the batch files there is

Re: [R] R development master class: NYC, Dec 12-13

2011-11-13 Thread Joshua Wiley
On Sun, Nov 13, 2011 at 11:55 AM, Steve Lianoglou mailinglist.honey...@gmail.com wrote: Some of the money I earn from these courses goes to pay for my summer salary and supports student research. It also gives me confidence that if I don't get tenure because I've been writing R packages instead

Re: [R] Simulation over data repeatedly for four loops

2011-11-13 Thread R. Michael Weylandt
Perhaps you might want to abstract your code a bit and try something like: X = rnorm(500) # Some Data replicate(1e4, mean(sample(X, 500, replace = T))) Obviously you can set up a loop over your data sets as needed. Michael On Sat, Nov 12, 2011 at 6:46 PM, Francesca francesca.panco...@gmail.com

Re: [R] R development master class: NYC, Dec 12-13

2011-11-13 Thread Spencer Graves
On 11/13/2011 12:58 PM, Sarah Goslee wrote: On Sun, Nov 13, 2011 at 2:55 PM, Steve Lianoglou mailinglist.honey...@gmail.com wrote: Some of the money I earn from these courses goes to pay for my summer salary and supports student research. It also gives me confidence that if I don't get tenure

Re: [R] R v2.13.2 - Cannot find Rcmd on path?

2011-11-13 Thread Duncan Murdoch
On 11-11-13 1:15 PM, Yihui Xie wrote: I remember I was torn into pieces a few months back when I made a wishlist here that R adds its bin path to PATH on Windows during installation. People had tons of reasons of objection. Although I do not use these batchfiles (usually I do not actually use

[R] sum of squares function

2011-11-13 Thread covfish87
hi, basic question how do i write a function that sums the squares of elements in a vector of any length? thanks Adam -- View this message in context: http://r.789695.n4.nabble.com/sum-of-squares-function-tp4037402p4037402.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] identify duplicate from more than one column

2011-11-13 Thread jour4life
Hi Josh, I'm sorry, it was meant for you. I guess for now that error doesn't matter...for now. Essentially, I want to repeat the conditions that state the following, and continue doing so for several variables. At the end of the day, I'm only going to keep the couple ID and remove the

[R] libary(Rweka) J48 design tree

2011-11-13 Thread RMSOPS
Hello everybody I'm having some difficulties to design the decision tree algorithm J48. I am using the following code and when I run it gives me the following message plot(m1) Error in plot.Weka_tree(m1) : Plotting of trees with multi-way splits is currently not implemented. #The code

[R] Running totals

2011-11-13 Thread Mark Carter
I have a table which looks like this:   ACC    BAL 1 hal -171245.33 2 opn  -50487.63 3 pga  213440.38 4 prt   0.18 5 rbs    8292.54 How do I create a column which shows the running totals of the BAL columns? [[alternative HTML version deleted]]

Re: [R] With an example - Re: rbind.data.frame drops attributes for factor variables

2011-11-13 Thread David Winsemius
On Nov 13, 2011, at 11:28 AM, Sammy Zee wrote: dataset[ nrow(dataset), ] - c (Male, 5, bad) The above seems to have worked to append a row in place of a rbind(). This method does not drop the custom attributes from the column. Do yo see any issue with this method. Only that it wipes out

Re: [R] sum of squares function

2011-11-13 Thread Joshua Wiley
Hi Adam, You're in luck, arithmetic operations in R are vectorized so it does not take any extra effort. x - 1:10 sum(x^2) cheers, Josh On Sun, Nov 13, 2011 at 12:20 PM, covfish87 covfis...@hotmail.co.uk wrote: hi, basic question how do i write a function that sums the squares of elements

Re: [R] Running totals

2011-11-13 Thread R. Michael Weylandt michael.weyla...@gmail.com
Table is not a regular data structure in R so I can't help further without a bit of clarification, but try ?cumsum and ?cbind. Michael On Nov 13, 2011, at 4:18 PM, Mark Carter mcturra2...@yahoo.co.uk wrote: I have a table which looks like this: � ACC��� BAL 1 hal -171245.33 2 opn�

Re: [R] Running totals

2011-11-13 Thread Joshua Wiley
Hi Mark, Take a look at ?cumsum and see if this is what you want: ## your data output via dput() (easy to copy and paste from email to R) dat - structure(list(ACC = c(hal, opn, pga, prt, rbs), BAL = c(-171245.33, -50487.63, 213440.38, 0.18, 8292.54)), .Names = c(ACC, BAL ), class = data.frame,

[R] issue plotting TukeyHSD

2011-11-13 Thread Giovanni Azua
Hello, When I try to use TukeyHSD in the following way it shows the confidence interval corresponding to the last factor only. throughput.aov - aov(Throughput~No_databases+Partitioning+No_middlewares+Queue_size,data=throughput) plot(TukeyHSD(throughput.aov)) # I expected here to see the

[R] 2^k*r (with replications) experimental design question

2011-11-13 Thread Giovanni Azua
Hello, I have one replication (r=1 of the 2^k*r) of a 2^k experimental design in the context of performance analysis i.e. my response variables are Throughput and Response Time. I use the aov function and the results look ok: str(throughput) 'data.frame': 286 obs. of 7 variables: $ Time

Re: [R] 2^k*r (with replications) experimental design question

2011-11-13 Thread Dennis Murphy
I'm guessing you have nine replicates of a 2^5 factorial design with a couple of missing values. If so, define a variable to designate the replicates and use it as a blocking factor in the ANOVA. If you want to treat the replicates as a random rather than a fixed factor, then look into the nlme or

Re: [R] 2^k*r (with replications) experimental design question

2011-11-13 Thread Giovanni Azua
Hi Denis, Thank you again :) what do you exactly mean with blocking factor, that it will be like the others? I'd prefer not to treat the replicates as random but rather account for the experimental error using the replicates. Ahhh I see what you mean, so the experimental error will show up as

Re: [R] identify duplicate from more than one column

2011-11-13 Thread William Dunlap
You might find reshape() useful here. Use sex as the 'time' variable so you get a row for each couple containing the age and other data for each member of the couple. That format makes it easy to compare the ages (or migration status, etc.) of members of one couple. You need to define an idvar

Re: [R] issue plotting TukeyHSD

2011-11-13 Thread David Winsemius
On Nov 13, 2011, at 7:22 PM, Giovanni Azua wrote: Hello, When I try to use TukeyHSD in the following way it shows the confidence interval corresponding to the last factor only. throughput.aov - aov(Throughput~No_databases+Partitioning +No_middlewares+Queue_size,data=throughput)

Re: [R] help with ggplot backgrounds

2011-11-13 Thread Hadley Wickham
You are more likely to receive helpful responses if you: a) Provide a reproducible example (e.g. https://github.com/hadley/devtools/wiki/Reproducibility) b) Post to the ggplot2 mailing list. Hadley On Fri, Oct 28, 2011 at 5:03 PM, RanRL rnr...@gmail.com wrote: Hi, I have two questions

Re: [R] R v2.13.2 - Cannot find Rcmd on path?

2011-11-13 Thread Yihui Xie
Well, I just mean to give the user an option during installation -- like you did in Rtools. I have decided not to argue on this issue any more. Thanks a lot anyway! Regards, Yihui -- Yihui Xie xieyi...@gmail.com Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State

Re: [R] libary(Rweka) J48 design tree

2011-11-13 Thread Achim Zeileis
On Sun, 13 Nov 2011, RMSOPS wrote: Hello everybody I'm having some difficulties to design the decision tree algorithm J48. I am using the following code and when I run it gives me the following message plot(m1) Error in plot.Weka_tree(m1) : Plotting of trees with multi-way splits is currently

Re: [R] Odp: Error in matrix, not ordered vectors or numerical value, and SIAR.

2011-11-13 Thread Petr PIKAL
Hi Hello Petr, The demo's don't run either, with the same errors. In that case you shall contact the package maintainer and in a meantime you could try to debug the function yourself if you are in desperate need for the result. Petr Thanks for your help. Best wishes. --

Re: [R] With an example - Re: rbind.data.frame drops attributes for factor variables

2011-11-13 Thread Petr PIKAL
dataset[ nrow(dataset), ] - c (Male, 5, bad) The above seems to have worked to append a row in place of a rbind(). This No. It overwrites your last row. You maybe meant dataset[ nrow(dataset)+1, ] - c (Male, 5, bad) Regards Petr method does not drop the custom attributes from the

Re: [R] Problem with simple random slope in gam and bam (mgcv package)

2011-11-13 Thread Simon Wood
Martijn, This was a problem in summary.gam handling re terms with largish datasets: I've uploaded a fix for this in mgcv_1.7-11. Hopefully on cran in the next few days. best, Simon On 09/11/11 12:41, Martijn Wieling wrote: Dear useRs, This is the first time I post to this list and I would

Re: [R] R development master class: NYC, Dec 12-13

2011-11-13 Thread peter dalgaard
On Nov 13, 2011, at 20:53 , Alex Ruiz Euler wrote: Ha! Point publicly acknowledged. Best, A. At any rate, R-help has always allowed R-related course announcements, commercial or not. The position has been that as long as it is of interest for R users and not overly intrusive, it is

[R] What is the CADF test criterion=BIC report?

2011-11-13 Thread p99323005
Hello: I am a rookie in using R. When I used the unit root test in CADFtest, I got the different t-test statistics between using criterion=BIC and no using criterion. But when I checked the result with eviews, I find out that no using criterion is correct. Why after using criterion=BIC,

Re: [R] identify duplicate from more than one column

2011-11-13 Thread jour4life
Hi William, This worked like a charm! I was thinking about using reshape(), but was unsure on how to approach it. Though I have a whole lot of variables, I decided to keep only those variables that contained both sexes' characteristics, reshape it into wide format, and merge with the rest of the

Re: [R] rJava .jinit() : Cannot create Java virtual machine (-1)

2011-11-13 Thread ahwangyuwei
Hi, I have the same problem in R, and I want to ask you that how to solve the problem. Thank you very much. Wang 2011-11-14 ahwangyuwei [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Confused with an error message related to plotrix library in the newer versions of R.

2011-11-13 Thread Prasanth V P
Dear R Users, Greetings! I am confused with an error message related to plotrix library in the newer versions of R. I used to run an R script without fail in the earlier versions (R 2.8.1) of R; but the same script is now throwing up an error message in the newer versions (Now I have R