Re: [R] Return value associated with a factor

2010-06-21 Thread Joris Meys
and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be

Re: [R] ctree

2010-06-21 Thread Joris Meys
-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be --- Disclaimer : http://helpdesk.ugent.be/e

Re: [R] {Spam?} Re: mgcv, testing gamm vs lme, which degrees of freedom?

2010-06-21 Thread Joris Meys
__ 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-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University

Re: [R] Root mean square on binned GAM results

2010-06-19 Thread Joris Meys
by the cut function. cut splits a numeric vector in bins of equal size. In this case the vector is d and the amount of bins is round(length(d)/5). Cheers Joris On Sun, Jun 20, 2010 at 1:24 AM, Joris Meys jorism...@gmail.com wrote: On Sat, Jun 19, 2010 at 4:29 AM, David Jarvis thanga...@gmail.com wrote

Re: [R] question about boosting(Adaboosting. M1)

2010-06-19 Thread Joris Meys
]] __ 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-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty

Re: [R] Problems using allEffects() (package effect)

2010-06-18 Thread Joris Meys
, prod) : index out of range In the example given in the help page there are factor variables and numeric variables so I don't think the problem comes from here. Any help is welcome here. Cheers, Jonas Joris Meys a écrit : Please, read the posting guide: - provide a minimal example - tell

Re: [R] Problems using allEffects() (package effect)

2010-06-18 Thread Joris Meys
with treatment 1, and in batch 8 there is no mouse treated with treatment 3. Maybe the error come from here, even if lm() is fine with this ? Cheers, Jonas Joris Meys a écrit : Could you then at least give the summary of the lm? It's really impossible to tell where your problem is without

Re: [R] double integral

2010-06-18 Thread Joris Meys
and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be

Re: [R] Extract estimates from each dataset: MI package

2010-06-18 Thread Joris Meys
code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be --- Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php

Re: [R] Reading data from xls..........please help

2010-06-18 Thread Joris Meys
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department

Re: [R] Extract estimates from each dataset: MI package

2010-06-18 Thread Joris Meys
/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics

Re: [R] plotting radial dendrograms

2010-06-18 Thread Joris Meys
-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be --- Disclaimer : http://helpdesk.ugent.be/e

Re: [R] mgcv, testing gamm vs lme, which degrees of freedom?

2010-06-18 Thread Joris Meys
commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be

Re: [R] Fitting Gamma distribution

2010-06-18 Thread Joris Meys
. __ 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-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent

Re: [R] mgcv, testing gamm vs lme, which degrees of freedom?

2010-06-18 Thread Joris Meys
-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be --- Disclaimer : http

Re: [R] extract date time from a text file

2010-06-18 Thread Joris Meys
. __ 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-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty

Re: [R] mgcv, testing gamm vs lme, which degrees of freedom?

2010-06-18 Thread Joris Meys
__ 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-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical

Re: [R] question in R

2010-06-18 Thread Joris Meys
that your calculations are correct. Cheers Joris -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be --- Disclaimer

Re: [R] Error: cannot allocate vector of size 31.8 Mb

2010-06-18 Thread Joris Meys
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. See also : http://www.google.com/search?btnG=1pws=0q=R+memory+management first three hits. If that doesn't solve it, please provide us with a bit more information. Cheers -- Joris Meys

Re: [R] inverse function of melt

2010-06-18 Thread Joris Meys
]] __ 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-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical

Re: [R] mgcv, testing gamm vs lme, which degrees of freedom?

2010-06-18 Thread Joris Meys
and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be

Re: [R] Non-procedural access to columns of a matrix

2010-06-18 Thread Joris Meys
list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering

Re: [R] Non-procedural access to columns of a matrix

2010-06-18 Thread Joris Meys
131 [2,] 21 22 233 [3,] 31 37 332 [4,] 46 42 431 [5,] 51 52 583 only changes the last three rows. Quite puzzling in fact... Cheers Joris On Sat, Jun 19, 2010 at 2:07 AM, Joris Meys jorism...@gmail.com wrote: diag(x[,x[,4]]) [1] 11 23 32 diag(x[,x[,4

Re: [R] questions on some operators in R

2010-06-18 Thread Joris Meys
Perl ;-) . Cheers Joris -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be --- Disclaimer : http://helpdesk.ugent.be/e

Re: [R] How to calculate the robust standard error of the dependent variable

2010-06-18 Thread Joris Meys
... The summary of linmod shows the standard error of the coefficients. How can we get the sd of y and the robust standard errors in R? sd(y) mad(y) But I guess that's not your question. Cheers Joris -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering

Re: [R] varIdent error using gam function in mgcv

2010-06-18 Thread Joris Meys
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be

Re: [R] Root mean square on binned GAM results

2010-06-18 Thread Joris Meys
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department

Re: [R] Multiple plots in a single page and stripplot()

2010-06-17 Thread Joris Meys
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be

Re: [R] Subtraction of group means using AGGREGATE and MERGE

2010-06-17 Thread Joris Meys
-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be --- Disclaimer : http

Re: [R] big big problem

2010-06-17 Thread Joris Meys
instead of 0 in the code series=ddply(X,.(variable,CLUSTER),transform,series=rev(value2-c(0,cumsum(rev(value1[-1]) but I get Table 2 instead of table 1. Thanks a lot for your attention and sorry for my english and my scary example -- Joris Meys Statistical consultant Ghent

Re: [R] Plotting different symbols in R for different values in a vector

2010-06-17 Thread Joris Meys
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87

Re: [R] simulating data from a multivariate dist

2010-06-17 Thread Joris Meys
/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics

Re: [R] Problems using allEffects() (package effect)

2010-06-17 Thread Joris Meys
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be

Re: [R] R licensing query

2010-06-17 Thread Joris Meys
Worst case scenario you can install R as a user as well, you don't need administration rights. Regarding data analysis in Excel : http://www.pages.drexel.edu/~bdm25/excel2007.pdf : peer reviewed Other sources : http://www.coventry.ac.uk/ec/~nhunt/pottel.pdf

Re: [R] RKWARD

2010-06-17 Thread Joris Meys
, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be --- Disclaimer : http://helpdesk.ugent.be/e

Re: [R] R software

2010-06-16 Thread Joris Meys
]] __ 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-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical

Re: [R] generating samples from multivariate distributions

2010-06-16 Thread Joris Meys
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department

Re: [R] Question

2010-06-16 Thread Joris Meys
]] __ 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-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical

Re: [R] error message stops for command

2010-06-16 Thread Joris Meys
code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be --- Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php

Re: [R] lme, spline

2010-06-15 Thread Joris Meys
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be

Re: [R] Prime Numbers Pkgs

2010-06-15 Thread Joris Meys
-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience

Re: [R] Large Data

2010-06-14 Thread Joris Meys
And this one is only from last week. Please, read the posting guides carefully. Cheers Joris -- Forwarded message -- From: Joris Meys jorism...@gmail.com Date: Sat, Jun 5, 2010 at 11:04 PM Subject: Re: [R] What is the largest in memory data object you've worked with in R

Re: [R] Large Data

2010-06-14 Thread Joris Meys
mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering

Re: [R] logistic regression with 50 varaibales

2010-06-14 Thread Joris Meys
commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be --- Disclaimer

Re: [R] Html help

2010-06-14 Thread Joris Meys
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m

Re: [R] how to ignore rows missing arguments of a function when creating a function?

2010-06-14 Thread Joris Meys
values. How can I tell R to do this only if there is a missing problem? Thanks a lot for your help! Working on your previous replies has been very helpful in understanding how R works. Cheers, Edmund. 2010/6/13 Joris Meys jorism...@gmail.com  Next to that, Off course you have to use

Re: [R] Get a list of installed commands

2010-06-13 Thread Joris Meys
-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process

Re: [R] How to output text to sink from data frame line by line without column names

2010-06-13 Thread Joris Meys
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied

Re: [R] Clustering algorithms don't find obvious clusters

2010-06-13 Thread Joris Meys
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel

Re: [R] glm-test?

2010-06-11 Thread Joris Meys
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be

Re: [R] glm-test?

2010-06-11 Thread Joris Meys
list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering

Re: [R] Unable to load an object

2010-06-11 Thread Joris Meys
, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be --- Disclaimer : http

Re: [R] lm without error

2010-06-11 Thread Joris Meys
mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering

Re: [R] lm without error

2010-06-11 Thread Joris Meys
(rnorm(1000), nrow=10, ncol=100) y[,28]= rep(NA, 10) x=rnorm(10) getOut - which(colSums(is.na(y))==dim(y)[1]) lm( y[-getOut] ~ x ) Cheers Joris -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process

Re: [R] lm without error

2010-06-11 Thread Joris Meys
did it again... it has to be getOut - which(colSums(is.na(y))==dim(y)[1]) lm( y[,-getOut] ~ x ) off course. Cheers Joris On Sat, Jun 12, 2010 at 2:22 AM, Joris Meys jorism...@gmail.com wrote: On Fri, Jun 11, 2010 at 5:28 PM, ivo welch ivo.we...@gmail.com wrote: thanks, everybody. joris

Re: [R] comparing two regression models with different dependent variable

2010-06-10 Thread Joris Meys
-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience

Re: [R] comparing two regression models with different dependent variable

2010-06-10 Thread Joris Meys
, Jun 10, 2010 at 12:33 PM, Joris Meys jorism...@gmail.com wrote: This is only valid in case your X matrix is exactly the same, thus when you have an experiment with multiple response variables (i.e. paired response data). When the data for both models come from a different experiment, it ends

Re: [R] To give column names of a data-frame

2010-06-10 Thread Joris Meys
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be

Re: [R] comparing two regression models with different dependent variable

2010-06-10 Thread Joris Meys
On Thu, Jun 10, 2010 at 2:04 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: On Thu, Jun 10, 2010 at 5:33 AM, Joris Meys jorism...@gmail.com wrote: This is only valid in case your X matrix is exactly the same, thus The poster did not give a full explanation so the best that can be done

Re: [R] ANOVA of a sort

2010-06-10 Thread Joris Meys
mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering

Re: [R] Finding distance matrix for categorical data

2010-06-10 Thread Joris Meys
deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris

Re: [R] Finding distance matrix for categorical data

2010-06-10 Thread Joris Meys
correction. See ?daisy in the PACKAGE cluster. *slaps head* cheers Joris On Thu, Jun 10, 2010 at 7:02 PM, Joris Meys jorism...@gmail.com wrote: see ?daisy in the library cluster Cheers Joris On Thu, Jun 10, 2010 at 6:12 PM, kapil mahant kapil_mah...@yahoo.com wrote: All, How can we find

Re: [R] how to ignore rows missing arguments of a function when creating a function?

2010-06-09 Thread Joris Meys
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control

Re: [R] equivalent of stata command in R

2010-06-09 Thread Joris Meys
code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be --- Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php

Re: [R] Please help me

2010-06-09 Thread Joris Meys
thanks for you. Sincerely, Xiongqing --- On *Tue, 6/8/10, Joris Meys jorism...@gmail.com* wrote: From: Joris Meys jorism...@gmail.com Subject: Re: [R] Please help me To: Xiongqing Zhang xqzhan...@yahoo.com Cc: r-help@r-project.org Date: Tuesday, June 8, 2010, 11:22 AM

Re: [R] ordisurf (pkg vegan) gives implausible result

2010-06-09 Thread Joris Meys
-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience

Re: [R] Read in dataset without saving it

2010-06-09 Thread Joris Meys
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel

Re: [R] Efficiency question

2010-06-09 Thread Joris Meys
and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be

Re: [R] equivalent of stata command in R‏

2010-06-09 Thread Joris Meys
list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department

Re: [R] Help needed on switch function

2010-06-09 Thread Joris Meys
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics

Re: [R] Help needed on switch function

2010-06-09 Thread Joris Meys
PS : use a single = instead of a double. It's an assignment you do, not a comparison. Cheers Joris On Wed, Jun 9, 2010 at 2:14 PM, Joris Meys jorism...@gmail.com wrote: R is confused about the type in the switch, reads it as numeric instead of a character. Try :              temp1.name

Re: [R] correcting a few data in an unreshaped data frame

2010-06-09 Thread Joris Meys
at Nabble.com. __ 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-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys

Re: [R] Odp: strange issue with which on seq

2010-06-09 Thread Joris Meys
/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics

Re: [R] OOP and passing by value

2010-06-09 Thread Joris Meys
]] __ 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-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty

Re: [R] OOP and passing by value

2010-06-09 Thread Joris Meys
, Jun 9, 2010 at 2:36 PM, Joris Meys jorism...@gmail.com wrote: by returning the object ? setMethod(setData,test,  function(this,fcn,k){   t...@t - as.numeric(seq(-k,k))/(2*k+1)   t...@f - sapply(t...@t,FUN=fcn)   #changed!   return(this)                                          #changed

Re: [R] OOP and passing by value

2010-06-09 Thread Joris Meys
 0.2727273  0.3636364  0.4545455 On Wed, Jun 9, 2010 at 2:36 PM, Joris Meys jorism...@gmail.com wrote: by returning the object ? setMethod(setData,test,  function(this,fcn,k){   t...@t - as.numeric(seq(-k,k))/(2*k+1)   t...@f - sapply(t...@t,FUN=fcn)   #changed!   return

Re: [R] equivalent of stata command in R‏‏

2010-06-09 Thread Joris Meys
not that experienced in R. one last help of yours would be quite helpful to get rid of this silly problem! Thanx again... -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87

Re: [R] comparing two regression models with different dependent variable

2010-06-09 Thread Joris Meys
]] __ 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-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent

Re: [R] cross-validation

2010-06-08 Thread Joris Meys
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control

Re: [R] how to read CSV file in R?

2010-06-08 Thread Joris Meys
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be

Re: [R] Please help me

2010-06-08 Thread Joris Meys
]] __ 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-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty

Re: [R] constructing a contingency table (ftable, table)

2010-06-08 Thread Joris Meys
, Stefan __ 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-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris

Re: [R] Convert a data frame to a 2D array?

2010-06-08 Thread Joris Meys
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87

Re: [R] cor.test() -- how to get the value of a coefficient

2010-06-08 Thread Joris Meys
-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience

Re: [R] restructuring by output for use with write.table

2010-06-08 Thread Joris Meys
, reproducible code. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be --- Disclaimer : http://helpdesk.ugent.be/e

Re: [R] paste together a string object later to be utilized in a function

2010-06-07 Thread Joris Meys
discovered yet how I can pass this so f$strata is created. This could easily be done in stata appending to a macro, but as I am a recent convertee I dont know how  to do this in R. (yet...?) Regards, //M On Mon, Jun 7, 2010 at 2:50 AM, Joris Meys jorism...@gmail.com wrote: Wild guess

Re: [R] R2HTML problem

2010-06-07 Thread Joris Meys
line. Cheers Joris On Mon, Jun 7, 2010 at 2:00 PM, Joris Meys jorism...@gmail.com wrote: It must be something with your version of R, I tried it both in Eclipse and in Tinn-R, and I get exactly what should come out (see attached file). Try updating R and R2HTML first, the problem might

Re: [R] raw data form .CEL file

2010-06-07 Thread Joris Meys
All questions about manipulations of sequence data (guess that's the CEL file you're talking about...) can better be asked on the specific mailing list of BioConductor : http://www.bioconductor.org/docs/mailList.html And please, don't swear in church any more. We don't put things in Excel files.

Re: [R] mgcv

2010-06-07 Thread Joris Meys
. -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 joris.m...@ugent.be --- Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php

Re: [R] Error Bar Issues

2010-06-06 Thread Joris Meys
On Sun, Jun 6, 2010 at 12:51 AM, beloitstudent schu...@beloit.edu wrote: Thanks for the suggestion...but R still doesn't like it.  Now I have 3 error messages.  It seems to dislike my *err=y* command.  I'm going to continue trying.  Thanks for your help!  If you happen to spot anything else,

Re: [R] spatstat sub-selection

2010-06-06 Thread Joris Meys
You can't specify it in rthin, which I can understand for the simple reason that this violates the independence of the sampling. If you put a fixed limit on your resampling, the chance of being selected depends on when some point is selected. You could do it by hacking the object : rthin.exact -

Re: [R] I need help in analyzing

2010-06-06 Thread Joris Meys
This help list is not intended for solving your assignments. But you're honest about it, so I'll describe for you shortly what the output is. How to interprete that output is up to you. see inline comments. On Sun, Jun 6, 2010 at 12:38 PM, wojak121 rotworm...@op.pl wrote: I'm sory for my weak

Re: [R] Cumulative frequency percentage and library (equate)

2010-06-06 Thread Joris Meys
For cumulative frequencies, see ?cumsum https://stat.ethz.ch/pipermail/r-help/2007-September/141499.html To access the _package_ equate, you have to install it first. Then, you just use library(equate). Cheers Joris On Sun, Jun 6, 2010 at 3:26 PM, ying_chen wang gracedrop.w...@gmail.com wrote:

Re: [R] paste together a string object later to be utilized in a function

2010-06-06 Thread Joris Meys
Wild guess, but it looks like you are looking at : ts - list(a=1:5) names(ts$a) - letters[1:5] v-paste(rep(names(ts$a[,1:b,]),ts$a[,1:b,]),sep=) sapply(v,function(x){eval(parse(,text=x))}) $`rep(names(ts$a[1]),ts$a[1])` [1] a $`rep(names(ts$a[2]),ts$a[2])` [1] b b

Re: [R] Loading an image/picture (png/jpeg/...) to screen...

2010-06-06 Thread Joris Meys
There might be a way doing that in R, but if you really need to take measures of a picture in some standardized way, I suggest you take a look at ImageJ. More than R that seems the right tool for the job. Some people have been experimenting with connecting ImageJ and R, but even without connection

Re: [R] prettyR

2010-06-06 Thread Joris Meys
Very simple as explained in the help files: X - 1:5 X [1] 1 2 3 4 5 add.value.labels(X,letters[1:5]) [1] 1 2 3 4 5 attr(,value.labels) a b c d e 1 2 3 4 5 X [1] 1 2 3 4 5 X didn't change. X - add.value.labels(X,letters[1:5]) X [1] 1 2 3 4 5 attr(,value.labels) a b c d e 1 2 3 4 5 X

Re: [R] R2HTML problem

2010-06-06 Thread Joris Meys
Take a look at eclipse : http://www.splusbook.com/R_Eclipse_StatET.pdf And yes, your program should work. The editor doesn't do anything else but sending your code to R. It is R that decides what to do with it. Cheers Joris On Sun, Jun 6, 2010 at 7:25 PM, RGtk2User iagoco...@gmail.com wrote:

Re: [R] Prediction in discriminant analysis

2010-06-05 Thread Joris Meys
You use the function predict for that. You give a data frame with the new observations, and make sure the variables have exactly the same name. # run example library(MASS) Class - as.factor(rep(c(A,B,C),each=30)) X1 - c(rnorm(30),rnorm(30,3,2),rnorm(30,-3,1)) X2 -

Re: [R] Help on ARFIMA modeling

2010-06-05 Thread Joris Meys
Read the posting guides please and give us a tiny little bit more information. http://www.R-project.org/posting-guide.html Cheers Joris On Sat, Jun 5, 2010 at 4:39 PM, ERIC AIDOO eaogo...@gmail.com wrote: Dear R Users, Please I have applied the arfima  procedure in the forecast package to my

Re: [R] What is the largest in memory data object you've worked with in R?

2010-06-05 Thread Joris Meys
You have to take some things into account : - the maximum memory set for R might not be the maximum memory available - R needs the memory not only for the dataset. Matrix manipulations require frquently double of the amount of memory taken by the dataset. - memory allocation is important when

<    1   2   3   4   5   >