[R] Bug report for package foreign anf functon write.foreign

2024-06-06 Thread Julien JOLY
on of the function and add these few lines : validvarname <- match.arg(validvarname) nmax <- if(validvarname == "V7") 32L else 8L if(any(nchar(x) > nmax) || any(duplicated(x))) I hope I send the message to the good place and that it will help you improve the package.

[R] Unobtainable source code of specific functions

2019-03-14 Thread julien . lacroix
ions are "C_R_igraph_finalizer", "C_R_igraph_get_graph_id" and "C_R_igraph_shortest_paths". My question is therefore the following, how or where could I find these source code ? (Note : I have the package Igraph installed) Thanks a lot for the help, Julien Lacr

Re: [R] Map with no political border

2014-07-30 Thread Julien Million
Fantastic Jim! Thanks a lot Julien ___ Julien Million Independent Fisheries Consultant On 30/07/14 11:31, "Jim Lemon" wrote: >On Wed, 30 Jul 2014 11:18:13 AM Julien Million wrote: >> Hi, >> >> I would like to plot a map without politi

[R] Map with no political border

2014-07-30 Thread Julien Million
Julien __ 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.

Re: [R] Retrieve Axis coordinates from map

2014-07-25 Thread Julien Million
Thanks you both, very useful! On 25/07/14 03:20, "David Winsemius" wrote: > >On Jul 24, 2014, at 2:05 PM, Julien Million wrote: > >> Hi, >> >> i want to automatise the creation of some maps with R, however, I would >>need >> to be able

[R] Retrieve Axis coordinates from map

2014-07-24 Thread Julien Million
map(regions="France") map.axes() legend(-150,40, "blablabla") mapcountry <- function(country) { map(regions=country) map.axes() legend(, , "blablabla") } I want to be able to extract the and automatically to be able to generate the legend within th

[R] Variance of predictions from lme4 models at existing levels?

2014-05-20 Thread Julien Riou
Dear contributors, I know that this has been widely discussed, but even after having read many discussions on this matter, I'm still not sure if I'm understanding properly. So I have a dataset of studies reporting prevalence in several settings, here is an exemple: data<-data.frame(id_study=c("U

Re: [R] Meta-analysis of prevalence at the country level with mgcv/gamm4

2014-04-16 Thread Julien Riou
country at the median age of the country population. Should I go back to this approach? If I'm not mistaken, this could be interpreted as age-adjusted pooled prevalence at the country level. In this case, should I use the model with the study-level random effect? Tkanks again for your time, J

Re: [R] Meta-analysis of prevalence at the country level with mgcv/gamm4

2014-04-10 Thread Julien Riou
> > Message: 11 > Date: Wed, 09 Apr 2014 18:39:30 +0100 > From: Michael Dewey > To: Julien Riou , r-help@r-project.org > Subject: Re: [R] Meta-analysis of prevalence at the country level with > mgcv/gamm4 > Message-ID: > Content-Type: text/plain; charset="

[R] Meta-analysis of prevalence at the country level with mgcv/gamm4

2014-04-08 Thread Julien Riou
e point it is sometimes almost uninformative (prevalence between 0 and 15%, but if it is the way it is...). Moreover, the study-level RE model seems to be more stable when outliers are excluded. *So, my questions are:* - Did I properly extract the weights from the metaprop() function and

Re: [R] Problem with plot in several cases, font issue?

2013-07-16 Thread Alice Julien-Laferrière
Thanks for the help. As indicated into the R-admin manual, it was an ubuntu install problem. But it only shows in R, as I do not use special fonts usually. Le 15/07/2013 18:17, Prof Brian Ripley a écrit : On 15/07/2013 15:59, Alice Julien-Laferrière wrote: Dear all, I am having problem

[R] Problem with plot in several cases, font issue?

2013-07-15 Thread Alice Julien-Laferrière
Dear all, I am having problem on plots in R for some cases. For example: plot( 1:10 ) text( 1:10, letters[1:10], cex = 1) works well but : plot(1:10) text(1:10, letters[1:10], cex = 0.9) returns : Erreur dans text.default(1:10, letters[1:10], cex = 0.9) : impossible de charger la polic

[R] How to reference to the `stats` package in academical paper

2013-03-05 Thread Julien Mvdb
The question is in the title. Then, I would like to know how I should refer to the documentation regarding the use of each functions. Thanks, Julien Mehl Vettori [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] stepwise variable selection method wanted

2013-01-25 Thread Julien Mehl Vettori
Dear Herry, I would like to know if you found an answer elsewhere to your question. I'm trying to get information around the nodes of a CA (daisy() followed by agnes()) made on plant trait using the gower metric for taxonomic purpuse. I'm not an expert in statistic but I understood that your way m

[R] Cluster Analysis and PCoA (mixt variables)

2013-01-19 Thread Julien Mvdb
ried to figured most of the things out of what I know today in "data analysis and R software" world. So, I'm really sorry for asking so simple things that do not exactly focus on the R issues but I tried in many ways but I just can't figure it out. Thank you Julien Mehl Vettori

[R] Spatial AND Temporal Dependency with lme, or other function?

2012-12-04 Thread Anne-Sophie Julien
Hi, I've got a new dataset which I don't know how to analyze with R. My knowledge about R is limited for this kind of problem. I've tried to find a solution with some spatio temporel packages and lme/lmer functions, but didn't find any similar example. I've got 10 locations on a coast on which

Re: [R] Why the result is coming as NULL?

2012-08-01 Thread Julien Moeys
df[ 2, "References" ] # NULL ## Notice the extra 's' ## -- If that does not fix your error, can you send us the output from head(x) # and dput(head(x)) So we have an idea what your table looks like? All the best Julien ___

[R] functions of vectors : loop or vectorization

2012-07-15 Thread Julien Salanie
form identically. Am I missing something ? Is there a better way to vectorize the problem to gain time ? How is it that my loop performs as well as "outer" ? Thanks in advance for your help. All the best, Julien -- View this message in context: http://r.789695.n4.nabble.com/functions-

[R] Results from mixed linear models

2012-07-12 Thread Julien Leblud
<- lm(Petal.Length~Sepal.Length + Sepal.Length:Species - 1 , data=iris) summary(reg02) ...But results is meaningless for me... Any idea to fit a model like this? Thanks a lot ! Julien -- ***** Julien Leblud Numerical Ecology of Aquatic Systems Mons Univ

[R] S3 / S4 Method for print and frames

2012-07-06 Thread Julien-Laferriere Alice
lt;- function(x){ aa <- sys.nframe() print(aa) } print(testobject) #2 setMethod("print", signature='test', definition=function(x){ aa <- sys.nframe() print(aa) }) print(testob

Re: [R] sqlSave()

2012-06-29 Thread Julien Moeys
odbcClose( con ) # Generally speaking, if you want relevant answers to your questions, it is always a good idea to say which package you are using and which database you are working with. Knowing the structure of your table and providing the output of your sessi

Re: [R] Very simple question R5 setRefClass and Initialize

2012-06-25 Thread Julien Cochennec
Help anyone? Is this impossible? I tried to use the initFields method but it did not change anything. Le 25/06/2012 10:55, Julien Cochennec a écrit : Hi, New to this list, and glad I found R5 which si a great improvement to R for my work. Something seems odd anyway, when I do a setRefClass

[R] Very simple question R5 setRefClass and Initialize

2012-06-25 Thread Julien Cochennec
Hi, New to this list, and glad I found R5 which si a great improvement to R for my work. Something seems odd anyway, when I do a setRefClass, the initialize method execute at the class definition. I would like it to execute only when an instance is created. How can I do that? I found no way to

Re: [R] trouble for parsing HTML files

2012-03-23 Thread Julien Velcin
still here :(. Any other suggestion? Must I buy a PC? Julien __ 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,

Re: [R] trouble for parsing HTML files

2012-03-23 Thread Julien Velcin
-4 Thank you! Julien On Mar 22, 2012, at 10:12 PM, R. Michael Weylandt wrote: Please give sessionInfo() so we can know your version of XML. Michael On Thu, Mar 22, 2012 at 2:04 PM, Julien Velcin wrote: I use mac OS 10.5.8 with this version of R: R version 2.14.1 (2011-12-22) Platform: i386

Re: [R] trouble for parsing HTML files

2012-03-22 Thread Julien Velcin
I use mac OS 10.5.8 with this version of R: R version 2.14.1 (2011-12-22) Platform: i386-apple-darwin9.8.0/i386 (32-bit) I've tried the command "RSiteSearch", but with no result. BTW, I recall that the code I've posted works for some websites. Julien 2012/3/22, Milan

Re: [R] trouble for parsing HTML files

2012-03-22 Thread Julien Velcin
Sorry for the multiple messages. -- I use mac OS 10.5.8 with this version of R: R version 2.14.1 (2011-12-22) Platform: i386-apple-darwin9.8.0/i386 (32-bit) I've tried the command "RSiteSearch", but with no result. BTW, I recall that the code I've posted works for so

[R] trouble for parsing HTML files

2012-03-22 Thread Julien Velcin
ute (null) is not defined I've searched a lot on the Internet, but it's really difficult to find something useful for R. Thanks for your help! Julien __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEA

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-02-04 Thread Julien Velcin
THANK YOU ! Actually, the key is to disable AWT before loading the R packages. At last, it works with just a few warnings. Julien On Feb 2, 2012, at 4:36 PM, Zhou Zhou wrote: The Sys.setenv(NOAWT=TRUE) code indeed solved my problem which was excatly what Julien described. The key is

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-16 Thread Julien Velcin
Yes, I've tried to repair the permissions through Disk Utility. But it doesn't work. Julien The fact that the OP knows how to log in as root an a Mac suggests that he probably already knows that the Disk Utility.app program is the typical way to check and repair permissi

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-16 Thread Julien Velcin
erent version of R: 2.12, 2.13, 2.4). Julien I think you'd better have a look at R packages in /Library/Frameworks/ and check that Snowball, RWeka and RWekajars files have correct permissions (particularly the jars/ subdirectories). You should also try reinstalling these packages, just i

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-16 Thread Julien Velcin
lib/libtcl8.5.dylib Referenced from: /Library/Frameworks/R.framework/Versions/2.14/ Resources/library/tcltk/libs/x86_64/tcltk.so Reason: image not found Julien On Jan 16, 2012, at 11:47 AM, Milan Bouchet-Valat wrote: Le lundi 16 janvier 2012 à 11:27 +0100, Julien Velcin a écrit : I had alr

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-16 Thread Julien Velcin
n! Stemmer 'porter' unknown! Stemmer 'english' unknown! Stemmer 'porter' unknown! Stemmer 'english' unknown! Stemmer 'porter' unknown! Stemmer 'english' unknown! BTW, thank you very much for your assistance. Julien On Jan 16, 2012, at 10:40 A

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-15 Thread Julien Velcin
I use the version 1.6: $ java -version java version "1.6.0_26" Julien On Jan 15, 2012, at 8:55 PM, Milan Bouchet-Valat wrote: Le dimanche 15 janvier 2012 à 16:32 +0100, Julien Velcin a écrit : Unfortunately, it doesn't work. I've installed JGR and launched my script. I s

[R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-13 Thread Julien Velcin
uters <- tm_map(reuters, as.PlainTextDocument) reuters <- tm_map(reuters, removePunctuation) reuters <- tm_map(reuters, tolower) reuters <- tm_map(reuters, removeWords, stopwords("english")) reuters <- tm_map(reuters, removeNumbers) reuters <- tm_map(reuters, stripWhitespace)

[R] Error when using foreach package for parralelization

2012-01-03 Thread Julien Textoris
an object of a basic class ("integer") with no slots. I think it is because when parallelizing, object are sent to child R session, but i don't understand how i have to write things to get it work. If someone have a clue, it would be really appreciated and would let me

Re: [R] Glmnet Logistic Variable Questions

2011-10-25 Thread julien giami
The reason i use glmnet is that it makes the handling of 400,000 observations easier to handle in terms of memory, I am looking on sparse matrices but i dont understand how to build interacting using sparse matrices On Tue, Oct 25, 2011 at 12:34 PM, Marc Schwartz wrote: > > On Oct 25, 2011, at

[R] Glmnet Logistic Variable Questions

2011-10-25 Thread julien giami
We are workin on building a logistic regression using 1. We are doing a logistic regression with binary outcome variable using a set of predictors that include 8 continuous and 8 category predictors 2. We are trying to implement interaction between two variables (continuous and category or just c

Re: [R] Conditional plots in the soiltexture package

2011-08-30 Thread Julien Moeys
TT.plot( tri.data = my.text, pch = my.text[,"parent"] ) ### Is that what you need? All the best Julien From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of samuel-rosa [alessandrosam...@yahoo.com.br]

[R] centroid representation and MANOVA

2011-04-27 Thread julien colomb
, people doing a MANOVA and representing it in a centroid plot (they used Matlab to do it). I would like to do the same with R, but don't know what to do after the MANOVA... and nothing can be found in the Archives. Any suggestions? -- Dr. Julien Colomb FB Biologie, Chemie, Pharmazie Ins

[R] Beginner needs help with plotting a generalized pareto distribution with R

2011-02-09 Thread Julien Martin
Hello, I have installed and loaded the "POT" R package. I am now trying to plot a generalized pareto distribution but I am not sure how to do it. Can anyone please help me with my first steps with R? Thanks in advance, Julien. [[alternative HTML versi

[R] Cox model output & hazard ratios

2010-11-17 Thread Julien Vezilier
ween C (i) and A (i). My question is very simple: *what are the hazard ratios for the interaction terms stated (line 4) and (line 5), and how are they calculated ?* Thanks a lot in advance, Julien. [[alternative HTML version deleted]] __ R-help@r

[R] Zero truncated Poisson distribution & R2WinBUGS

2010-11-15 Thread julien martin
I am using a binomial mixture model to estimate abundance (N) and detection probability (p) using simulated count data: -Each site has a simulated abundance that follow a Poisson distribution with lambda = 5 -There are 200 simulated sampled sites -3 repeated counts at each site - only 50 percent of

Re: [R] R & VBA

2010-10-31 Thread julien cuisinier
Many thanks for the feedback & the mailing list reference - will do Obviously I am feeling very stupid now, not sure I missed that =0 sorry for that silly question Rgds, Julien On Oct 30, 2010, at 8:56 PM, RICHARD M. HEIBERGER wrote: > Look at the macro > RInterface.PutAr

[R] R & VBA

2010-10-30 Thread julien cuisinier
;test" >> So it would be something like: Call RInterface.PutArray("test", DblArray) >> But as could be expected I have an error because the RInterface.PutArray() >> is expecting an Excel range as second argument Any hint very appreciated! Thanks & regards

Re: [R] histograms resulting from call to soil.texture

2010-10-21 Thread Julien Moeys
s a rather comprehensive reference manual http://cran.r-project.org/web/packages/soiltexture/soiltexture.pdf) all the best Julien ### R code example (I have cut some rows out) soil.dat<-read.table(textConnection( "Field_Num Region Region_Num Region_Sym Region_Col Date Location Locat

[R] point.in.polygon() in sp package: accuracy problems?

2010-05-14 Thread Julien Moeys
but it is good to know what cause the problem! Thanks for any help Julien # --- --- --- --- require(sp) # Dummy ternary data to be plotted & classified as in or out a polygon # All should be on the border test.bug <- data.frame( # 1 2 3 4 5 6

Re: [R] Derivative of a smooth function

2010-04-04 Thread Julien Gagneur
es(fit) lines(fitd, col="red") Hope this helps, Julien On Fri, Apr 2, 2010 at 2:06 PM, FMH wrote: > > Dear All, > > I've been searching for appropriate codes to compute the rate of change and > the curvature of nonparametric regression model whish wa

[R] Adjacency matrix of higher order (from winbugs to to R)

2010-03-02 Thread Julien Beguin
at other tools have to exist. Your help would be greatly appreciated. Best regards, Julien __ 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-gu

[R] pallet with open intervals

2010-02-26 Thread Julien Mullet
? Thanks, Julien -- View this message in context: http://n4.nabble.com/pallet-with-open-intervals-tp1570791p1570791.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] for loop Vs apply function Vs foreach (REvolution enhancement)

2010-02-16 Thread julien cuisinier
t really worth going down that route? Has anyone extensive experience with this matter (using foreach to boost for loop running time)? any feedback welcome. Have all a nice day! Rgds, Julien __

[R] R2WinBUGS trap

2010-01-25 Thread julien martin
I am generating 1000 replicate data sets in R, each data set is then analyzed with WinBUGS in batch mode using R2WinBUGS. Unfortunately, occasionally some data sets lead WinBUGS to open a "trap" window; and the simulations are interrupted as result of the message. Is there any ways to set R2WinBUGS

[R] R2WinBUGS/ trap

2010-01-25 Thread julien martin
I am generating 1000 replicate data sets in R, each data set is then analyzed with WinBUGS in batch mode using R2WinBUGS. Unfortunately, occasionally some data sets lead WinBUGS to open a "trap" window; and the simulations are interrupted as result of the message. Is there any ways to set R2WinBUGS

[R] factorial analysis influenced by data skewness

2009-12-30 Thread julien
LM on factors. thank you very much in advance. Julien. -- View this message in context: http://n4.nabble.com/factorial-analysis-influenced-by-data-skewness-tp991087p991087.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-projec

Re: [R] Counting

2009-10-13 Thread Julien Grassot
Or try this : x1=c(1,1,0,0,0,1,0) x2=c(1,0,1,1,0,1,1) DF=cbind(x1,x2) ifelse(DF[,1]==DF[,2],1,0) your n1 is : sum(ifelse(DF[,1]==DF[,2],1,0)) your n2 is : dim(DF)[1]-sum(ifelse(DF[,1]==DF[,2],1,0)) Maybe not an elegant way, but hope this help. Julien GRASSOT Data Analysis Department Flamel

[R] R CMD BATCH question under Ubuntu 9.04

2009-08-18 Thread julien cuisinier
ar/www$ R CMD BATCH /var/www/test.R bash: R CMD BATCH /var/www/test.R: No such file or directory I am not sure how this possible...any idea? for the background, I try to run this command from php through exec function...hence I start from the folder /var/www... many thanks for any feedback

Re: [R] merging two data frame with colomns of different length

2009-07-31 Thread Julien Beguin
I forgot to mention that I tried with "merge" and "join" (package analogue) without success... Julien Selon Julien Beguin , 31.07.2009: > Dear all, > > I am trying to merge two data frames based on a common column but for this > common column both data frame

[R] merging two data frame with colomns of different length

2009-07-31 Thread Julien Beguin
d01) # data frame 2 Id2 <- c(1,2,3,3) Habit2 <- c('a','b','d','d') Id02 <- paste(Id2, Habit2,sep=".") Area <- c(10,2,3,5) data2 <- data.frame(cbind(Id02, Area)) # result that I would like Area2 <- c(10, 0, 0, 2, 0, 0, 3, 5, 0) result &

Re: [R] Relative paths in R?

2009-07-30 Thread julien cuisinier
It does obviously - very silly of me to ask PathUpload <- paste(getwd(),"/uploads",sep="") Many thanks Julien > CC: r-help@r-project.org > From: mailinglist.honey...@gmail.com > To: j_cuisin...@hotmail.com > Subject: Re: [R] Relative paths in R? >

[R] Relative paths in R?

2009-07-30 Thread julien cuisinier
#x27;./uploads'" (as in php in this example) I could not find anything in help or previous posts...any feedback on feasibility appreciated Thanks & regards, Julien ¿Quieres conocerte mejor? ¡Conoce lo que Windows Live tiene especialmente para ti! __

[R] Relative paths in R?

2009-07-30 Thread julien cuisinier
'./uploads'" (as in php in this example) I could not find anything in help or previous posts...any feedback on feasibility appreciated Thanks & regards, Julien _

[R] Write in file matrices of sifferent size

2009-07-20 Thread julien cuisinier
Matrix B (Matrix B element 1,1), (Matrix B element 1,2), ... (Matrix B element 2,1), (Matrix B element 2,2), ... ... " Write or write.table or write.csv did not help as it complains the matrices are not of equal size Any help/directi

Re: [R] multcomp: contrasts for count data

2009-06-15 Thread Julien Gagneur
only for the contrast of interest and not all the pair- wise ones. summary( glht(fit, linfct = mcp( x=c(0, -1, 1)) ) )$test$pvalues instead of: summary( glht(fit, linfct = mcp(x = "Tukey") ) )$test$pvalues Julien On Jun 15, 2009, at 16:21 , Westfall, Peter wrote: P-values are un

[R] multcomp: contrasts for count data

2009-06-15 Thread Julien Gagneur
l get it. Is there an issue in using multcomp for count data? My final real case will be with quasipoisson data. Thanks for your help, Julien seed(0) pvals = t( sapply( 1:100, function(i){ x = factor(sample( c("A", "B",

[R] Problem to get a simple Analysis of Variance table with lmer()

2009-04-23 Thread Julien Beguin
t.poisson) summary(fit.poisson) fit.binomial<-lmer(y.binary~x1*x2 + (1|z1/z2/x1), data=data.test, family=binomial(link = "logit")) anova(fit.binomial) summary(fit.binomial) ------- Thank's in advance for you amsw

[R] anova table with lmer

2009-04-21 Thread Julien Beguin
regards, Julien -- Julien Beguin Etudiant au doctorat Faculté de Foresterie et de Géomatique Université Laval, local 2113 2405 rue de la Terrasse, G1V 0A6 Québec (Qc) Tel: (418) 656-2131 poste 2620 http://www.cen.ulaval.ca/anticosti/jbeguin.html

[R] F test in lmer quasipoisson

2009-03-04 Thread Julien Vezilier
write: > anova(model,model2,test="F") but R keeps performing a Chi square instead of the F test I want... Any ideas why ? Thank you very much !!! Julien. -- Julien Vézilier Génétique et Evolution des Maladies Infectieuses (UMR 2724 CNRS-IRD) Centre de Recherche IRD 911 Aven

[R] modifying legend in scatterplot matrix R

2009-02-19 Thread Julien Beguin
quot; (for No and Yes) and appear in my "per default" legend that is located in the buttomright of my 3x3 scatterplot. I would like to replace N by a list of character: "unfenced" and Y by "fenced", as well as moving the legend in another place in my graphic... is so

[R] OO programming & S3/S4 paradigm - General question

2009-01-30 Thread julien cuisinier
ich one is best to use? Is R.oo useful? what are the main difference between the two? Any feedback helpful. Many thanks in advance & have a nice weekend! Julien _ charlas. [[alternative HTML v

[R] Saving plot into file without showing it

2009-01-28 Thread julien cuisinier
;s keep the example of saving in pdf format here...I do not have target file type for saving the graphics. The point is that I would have another piece of code (HTML I guess, not developed yet) fetching all the charts and presenting it nicely. Any feedback is app

Re: [R] Introduction to R (in french)

2009-01-05 Thread Julien Barnier
the past, everything should be working with the given url right now : http://alea.fr.eu.org/j/intro_R.html May I use this message to submit the document to the french contributed documentation section on CRAN again ? Thanks in adavance for any feedback, -- Julien Barnier Groupe de recherche

[R] Introduction to R (in french)

2008-12-16 Thread Julien Barnier
ld be happy to receive any feedback on the document. Sincerely, Julien -- Julien Barnier Groupe de recherche sur la socialisation ENS-LSH - Lyon, France __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do rea

Re: [R] French IRC channel and mailing list ?

2008-12-09 Thread Julien Barnier
feeling I've got from the questions I see in #R on freenode. So maybe a «localized» support mailing list would target a different public, whereas R-help would stay the reference list for more complex questions. Thanks for sharing your thoughts, Julien -- Julien _

[R] French IRC channel and mailing list ?

2008-12-08 Thread Julien Barnier
dvance for your answers, Sincerely, Pierre-Yves Chibon Julien Barnier __ 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

Re: [R] problem with function "rep"

2008-06-12 Thread Julien Hunt
0.1),4)) } x=x/0.0001 y=rnorm(length(x),0,1) t=rep(y,x) return(sum(x),length(t)) } The intuition is that sum(x) and length(t) should be the same. furthermore, rounding x seems since all is done for it to be an integer. Nevertheless, I will try Berwin Turlach's method. Regards, Julien

[R] problem with function "rep"

2008-06-12 Thread Julien Hunt
you need more information on my specific program. Thanks for your time and help, Best regards, Julien Hunt Julien Hunt, PhD student and teaching assistant, Institute of Statistics, Université Catholique de Louvain, Voie du Roman pays 20 B-1348 Louvain-La-Neuve, Belgium E-mail: [EMAIL PROTECTED

[R] individual analysis

2008-05-28 Thread julien . jung
an be quantified). Does anyone knwows which test is appropriate for such an individual analysis ? Which package is necessary to perform the analysis ? Thanks a lot for your help, Julien __ R-help@r-project.org mailing list https://stat.ethz.ch/ma

[R] writing a table in the device (pdf in this case)

2008-05-10 Thread Julien Colomb
? example: pdf("example.pdf") layout (matrix(1:2,1,2)) plot (groups, scores) Result <- cbind (samplesize, mean_score, sem_score) #calculated before ??? dev.off () -- ___ Dr. Julien Colomb Genes et Dynamique des Systemes de Memoire CNRS UMR

[R] Get inside a function the name of a variable called as argument?

2008-04-29 Thread Julien Roux
name of this object as a string. Is it possible to achieve this? Thanks a lot for your help Julien -- Julien Roux, PhD student http://www.unil.ch/dee/page22707.html Department of Ecology and Evolution Biophore, University of Lausanne, 1015 Lausanne, Switzerland tel: +41 21 692 4221fax: +4

[R] Legend problem when exporting a plot to PDF

2008-04-29 Thread Julien Roux
adjusted relative to the size of the plot. If you know one good tutorial to help creating ready-to-publish graphics, I would appreciate the reference. Thanks for your help Julien PS: R version 2.6.2 (2008-02-08) i386-apple-darwin8.10.1 -- Julien Roux, PhD student http://www.unil.ch/dee/page227

Re: [R] another matrix question

2008-04-21 Thread Julien Barnier
),nrow=3,ncol=3) n <- matrix(c(1,2,0,3,0,4,0,5,6),nrow=3,ncol=3) mn <- ifelse(m==0 | n==0, m+n,(m+n)/2) Hope that helps, -- Julien Barnier Groupe de recherche sur la socialisation ENS-LSH - Lyon, France __ R-help@r-project.org mailing list http

[R] CRAN packages hosting policy

2008-04-17 Thread Julien Barnier
to upload and to host this kind of package to CRAN ? Or is it better, as it is quite a private tool and not really designed for widespread adoption, to set up my own repository ? Thanks in advance, -- Julien Barnier Groupe de recherche sur la socialisation ENS-LSH - Lyon, France

Re: [R] pie graphic

2008-04-07 Thread Julien Barnier
investigations by perceptual psychologists. ` So an alternative could be to use dotchart() instead of pie(). HTH, Julien -- Julien Barnier Groupe de recherche sur la socialisation ENS-LSH - Lyon, France __ R-help@r-project.org mailing list https://st

[R] Overdispersion, AIC and mixed models

2008-02-19 Thread Julien Martin
mixed model calculate the variance inflation factor (sensu Burnham and Anderson, chisquare/DF)? Or should I use another approach to evaluate overdispersion in mixed model? Thanks Julien Checked by AVG Free Edition. 10:55 __ R-help@r

Re: [R] store variable as tab-del. txt-file

2008-01-24 Thread Julien Barnier
Hi, > Now I want to store t12 as a tab-delimited txt-file to use it in other > programm. How can I realize this? Did you take a look at the write.table() function ? You can supply «\t» as «sep» argument to get a tab-delimited file. Hope that helps, Julien -- Julien Barnier Gro

Re: [R] hello

2008-01-24 Thread Julien Barnier
postscript. For example, to generate your plot into a pdf file, you can use : pdf(file="filename.pdf") plot(...) dev.off() Hope that helps, Julien -- Julien Barnier Groupe de recherche sur la socialisation ENS-LSH - Lyon, France __ R-help@

[R] Chronological data manipulation question

2007-10-16 Thread Julien Barnier
year=c(2000,2001,2002,2003,1996,1997,1998,1999,2000), variable=c(0,0,1,0,0,0,1,0,0)) -- Julien Barnier Groupe de recherche sur la socialisation ENS-LSH - Lyon, France __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] Odp: Data manipulation question

2007-10-10 Thread Julien Barnier
ing row names : R> d idx y 1 0001 21 2 0002 13 3 0003 0001 45 4 0004 71 5 0005 0003 20 R> rownames(d) <- d$id R> d$z <- NA R> d$z <- d[d$x,"y"] R> d idx y z 0001 0001 21 NA 0002 0002 13 NA 0003 0003 0001 45 21 0004 0004 71 NA 0005 0005

[R] Data manipulation question

2007-10-10 Thread Julien Barnier
? Thanks in advance for any help, Julien Here is the R code to reproduce the first data.frame : id <- c("0001","0002","0003","0004","0005") x <- c(NA, NA, "0001", NA, "0003") y <- c(21,13,45,71,20) d <- data.fr

Re: [R] Sweave and LaTeX

2007-10-04 Thread Julien Barnier
Snw file ? Because you must do it first to get a .tex file which will be passed to latex. If you directly run TeX on your Snw file, it can't work. HTH, Julien -- Julien Barnier Groupe de recherche sur la socialisation ENS-LSH - Lyon, France _

Re: [R] convert a tar.gz to a Windows zip

2007-10-02 Thread Julien Barnier
Hi, > Is there a simple way to convert a Linux produced tar.gz file (a > package) to a Windows binary zip package, please? If you're on Windows and don't want to do this automatically with a command line, you can use 7zip : http://www.7-zip.org/ HTH, Julien -- Julien B

Re: [R] Am I misunderstanding the ifelse construction?

2007-09-25 Thread Julien Barnier
e an R instruction like «gc_content <- -gc_content». Maybe you could try the following : dataframe$numdir <- 1 dataframe$numdir[dataframe$dir=="-"] <- -1 d <- dataframe$gc_content * dataframe$numdir HTH, Julien -- Julien Barnier Groupe de recherche sur la socialis

Re: [R] Sweave and ggplot2

2007-09-25 Thread Julien Barnier
;>= print(ggplot(d,aes(y=t,x=u)) + geom_point(colour=alpha('black', 0.05))) @ made the whole thing work. Thanks a lot ! Julien -- Julien Barnier Groupe de recherche sur la socialisation ENS-LSH - Lyon, France __ R-help@r-project.or

Re: [R] Sweave and ggplot2

2007-09-24 Thread Julien Barnier
eave which is close from something like "warning : semitransparency not supported by this device". When I try at home (with the given sessionInfo), I got no warning but in both the cases the result is the same : an empty pdf file for the figure and an error dur

[R] Sweave and ggplot2

2007-09-24 Thread Julien Barnier
) @ But the following doesn't work (and this is what I would like to do) : \SweaveOpts{echo=FALSE,pdf.version=1.4} <>= ggplot(d,aes(y=t,x=u)) + geom_point(colour=alpha('black', 0.05)) @ Does anyone have an idea about this ? Thanks in advance, Julien -- Julien Barnier

Re: [R] Data manipulations with numbers which are in 'comma' format

2007-09-24 Thread Julien Barnier
mmas with dots. A very dirty way to do it could be the following, but there may be a better one : v$a <- as.numeric(gsub(",",".",as.character(v$a))) HTH, Julien -- Julien Barnier Groupe de recherche sur la socialisation ENS-LSH - Lyon, France

Re: [R] fail to recover decimal value from data frame

2007-09-12 Thread Julien Barnier
-FAQ.html#How-do-I-convert-factors-to-numeric_003f HTH, Julien -- Julien Barnier Groupe de recherche sur la socialisation ENS-LSH - Lyon, France __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the post

[R] Title and labelos in ggplot2

2007-09-12 Thread Julien Barnier
nd the elements for the axis labels. Here is my code : p <- ggplot(d03, aes(x=cs,y=taille)) + geom_hline(data=temp.df) + geom_boxplot() + facet_grid(.~sexe) p$title <- "Wonderful title" print(p) Thanks in advance for any help. -- Julien Barnier Groupe de recherche sur la socia