[R] Adding two data.frames.

2010-09-29 Thread Joel
8 9 9 8 7 6 5 4 3 2 1 Thx for your help //Joel -- View this message in context: http://r.789695.n4.nabble.com/Adding-two-data-frames-tp2718771p2718771.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] Adding two data.frames.

2010-09-29 Thread Joel
Thx for the help works very well for me. -- View this message in context: http://r.789695.n4.nabble.com/Adding-two-data-frames-tp2718771p2718901.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] change y axis distance

2010-09-21 Thread Joel
Hi I got a barplot that has values between 0-150 and the y-axis shows the steps 0 50 100 and 150 but I would like to change it to 0 10 20 30... ...130 140 150 Dont really know the word in english so sry about it beeing abit confusing :) Thx for your help Joel -- View this message in context

Re: [R] change y axis distance

2010-09-21 Thread Joel
Thx for all your help! -- View this message in context: http://r.789695.n4.nabble.com/change-y-axis-distance-tp2548363p2548461.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] Saveing plot to multiple locations

2010-09-13 Thread Joel
Hi Im trying to save a plot both to a pdf and as just a picture but without success so if someone can help me I would be happy :) my code: require(party) irisct - ctree(Species ~ .,data = iris) data(iris) attach(iris) pdf('/home/joel/Skrivbord/mammamu.pdf') try(png('/home/joel

Re: [R] Saveing plot to multiple locations

2010-09-13 Thread Joel
Thx for all the help! Dave: Its the second ones so now it looks like this and works but its abit ugly as you have to plot the same thing two times but dossent seem to be any other way or? try(png('/home/joel/Skrivbord/mammamu2.png')) plot(irisct) dev.off() pdf('/home/joel/Skrivbord/mammamu.pdf

[R] Passing aruments with source

2010-09-08 Thread Joel
the file. (without the argument part it can). Anyone know how to make it work? //Joel Damberg -- View this message in context: http://r.789695.n4.nabble.com/Passing-aruments-with-source-tp2531012p2531012.html Sent from the R help mailing list archive at Nabble.com

Re: [R] Passing aruments with source

2010-09-08 Thread Joel
//Joel Damberg -- View this message in context: http://r.789695.n4.nabble.com/Passing-aruments-with-source-tp2531012p2531087.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] Passing aruments with source

2010-09-08 Thread Joel
Thats an idea will try it out and see how it works Thanks a lot for your help. Joel -- View this message in context: http://r.789695.n4.nabble.com/Passing-aruments-with-source-tp2531012p2531138.html Sent from the R help mailing list archive at Nabble.com

[R] NA Replacement by lowest value?

2010-01-28 Thread Joel Fürstenberg-Hägg
) { min.val = min(mData, na.rm = T) # Find the smallest value in the dataset col[col == NA] = (min.val / 10) # Doesn't work... col # Column index } Does any of you have any suggestions? Best regards, Joel

Re: [R] NA Replacement by lowest value?

2010-01-28 Thread Joel Fürstenberg-Hägg
Thanks a lot Paul!! Best, Joel Date: Thu, 28 Jan 2010 10:48:37 +0100 From: p.hiems...@geo.uu.nl To: joel_furstenberg_h...@hotmail.com CC: r-help@r-project.org Subject: Re: [R] NA Replacement by lowest value? Joel Fürstenberg-Hägg wrote: Hi all, I need to replace

Re: [R] NA Replacement by lowest value?

2010-01-28 Thread Joel Fürstenberg-Hägg
Hi Jim, That's what Pauls suggested too, works great! Best, Joel Date: Thu, 28 Jan 2010 20:57:57 +1100 From: j...@bitwrit.com.au To: joel_furstenberg_h...@hotmail.com CC: r-help@r-project.org Subject: Re: [R] NA Replacement by lowest value? On 01/28/2010 08:35 PM, Joel

Re: [R] problem with odfWeave

2010-01-27 Thread Joel GOMBIN
question is : how can I get rid of these text:soft-page-break/ tags that appeared for no apparent reason ? Is there a way to configure OpenOffice Writer so that he won't put such tags ? Thanks a lot, Joel On Wed, Jan 27, 2010 at 1:54 PM, Ista Zahn istaz...@gmail.com wrote: Hi Joel, Can you

[R] Remove part of string in colname and calculate mean for columns groups

2010-01-15 Thread Joel Fürstenberg-Hägg
names. Anyone who can help me? Best regards, Joel _ Nya Windows 7 - Hitta en dator som passar dig! Mer information. http://windows.microsoft.com/shop [[alternative HTML

[R] How to delete matrix rows based on NA frequency?

2010-01-15 Thread Joel Fürstenberg-Hägg
(is.na(exprdata)) But is there a shorter way to remove the rows based on (1-freqNA)0.1 than looping through the whole matrix using a for loop? All the best, Joel _ Hitta kärleken i

[R] How to calculate the row wise means for grouped columns in matrix?

2010-01-15 Thread Joel Fürstenberg-Hägg
the best, Joel _ Lagra alla dina foton på Skydrive. Det är enkelt och säkert! http://www.skydrive.live.com [[alternative HTML version deleted

[R] problem with odfWeave

2010-01-06 Thread Joel GOMBIN
Hello, I have encountered problems using odfdWeave. I actually have the same error message as was reported in this message ( http://tolstoy.newcastle.edu.au/R/e6/help/09/01/0872.html), but I don't quite understand the answer made by Max Kuhn (You need to cat the results using odfCAt, otherwise

[R] Exchange NAs for mean

2009-12-17 Thread Joel Fürstenberg-Hägg
[j,i]=mean(X[1:p, i]) # Change missing value to the mean of the column } } } All the best, Joel _ Hitta hetaste singlarna på MSN Dejting! http://dejting.se.msn.com

[R] Get rid of automatic title from Anova plots

2009-12-10 Thread Joel Fürstenberg-Hägg
=fieldTrial[idx0809, c(14)] for (i in colnames(df)) { print(i) print(summary(aov(df[,i] ~ cat))) plot(aov(df[,i] ~ cat)) mtext(text=paste(Anova test for, i, with different anthocyanin scores), cex=1.5, side=3, outer=TRUE) } dev.off() Best regards, Joel

[R] Multiple regression script

2009-12-07 Thread Joel Fürstenberg-Hägg
, such as R square etc? All the best, Joel _ Hitta kärleken i vinter! http://dejting.se.msn.com/channel/index.aspx?trackingid=1002952 [[alternative HTML version deleted

Re: [R] Lattice: multiple data sets on same plot

2009-12-03 Thread Joel Thomas
make much sense. Example data set is same as before except, pop - data.frame(var1=runif(2000, 0, 360), var2=runif(2000, 0, 360)) Thanks Joel 2009/12/3 Felix Andrews fe...@nfrac.org: library(reshape)  ## the easy way xx - melt(x) head(xx) densityplot(~ value | cat1 * cat2, xx, groups = paste

[R] Lattice: multiple data sets on same plot

2009-12-02 Thread Joel Thomas
Hi, I have two data sets; one is a population and the other a sample of that population. I am trying to plot both on the same trellis display. # Example data set with two numerical attributes and two categorical pop - data.frame(var1=rnorm(2000, 2000, 500), var2=rnorm(2000, 2000, 500))

[R] Decision trees with factors and numericals

2009-11-24 Thread Joel Fürstenberg-Hägg
, is there another alternative? This is what I've tried so far rpart(LT50_NA ~ Raf + Antho, data=decTreeNA, method=anova) # Have tried method=class as well Error in as.character(x) : cannot coerce type 'closure' to vector of type 'character' Best regards, Joel

[R] From R to LaTeX to pdf?

2009-11-24 Thread Joel Fürstenberg-Hägg
regards, Joel _ Lagra alla dina foton på Skydrive. Det är enkelt och säkert! http://www.skydrive.live.com [[alternative HTML version deleted

[R] Error in text.rpart(fit) : fit is not a tree, just a root

2009-11-24 Thread Joel Fürstenberg-Hägg
tell me what's going wrong and give a hint how to solve it? Best regards, Joel _ Nya Windows 7 - Hitta en dator som passar dig! Mer information. http://windows.microsoft.com/shop

[R] 3D plot, rotatable and with adjustable symbols

2009-11-19 Thread Joel Fürstenberg-Hägg
(). If I use the Scatterplot3d package, I'm able to change this, but not able to rotate the plot interactively. Does anyone know a solution to this? Maybe another package is better? Best regards, Joel

[R] Trellis settings get lost when printing to pdf

2009-11-13 Thread Joel Fürstenberg-Hägg
, strip.background=new.strip.background, strip.shingle=new.strip.shingle) Best regards, Joel _ Nya Windows 7 - Hitta en dator som passar dig! Mer information. http://windows.microsoft.com/shop

Re: [R] Loadings and scores from fastICA?

2009-11-12 Thread Joel Fürstenberg-Hägg
? Best regards, Joel Date: Wed, 11 Nov 2009 14:29:06 -0700 From: tpl...@acm.org To: joel_furstenberg_h...@hotmail.com CC: r-help@r-project.org Subject: Re: [R] Loadings and scores from fastICA? The help for fastICA says: The data matrix X is considered to be a linear combination

[R] prcomp() PCA vs fastICA() PCA?

2009-11-11 Thread Joel Fürstenberg-Hägg
(a$X%*%a$K, main = PCA components) plot(a$S, main = ICA components) } PC=prcomp (X, center=T, scale=T) hcl=hclust(dist(df)) plot(PC$x[,1],PC$x[,2], main=PCA components (prcomp)) Best regards, Joel

[R] Loadings and scores from fastICA?

2009-11-11 Thread Joel Fürstenberg-Hägg
components) } Best regards, Joel _ Hitta kärleken i vinter! http://dejting.se.msn.com/channel/index.aspx?trackingid=1002952 [[alternative HTML version deleted

[R] PCA with tow response variables

2009-11-04 Thread Joel Fürstenberg-Hägg
used the simplest PCAs before, like this: pcaObj=prcomp(t(df[idx, c(40:47)])) biplot(pcaObj) Anyone who knows how to do? Best rageds, Joel _ Hitta hetaste singlarna på MSN

[R] Change negative values in column

2009-11-03 Thread Joel Fürstenberg-Hägg
Hi all, I'm trying to write a script that changes all negative values in a data frame column to a small positive value, based on the the minimum value of the column. However, I get the following error: Error in if (x[i] 0) { : argument is of length zero As well, I would minimum

[R] Exclude rows in xyplot

2009-10-27 Thread Joel Fürstenberg-Hägg
would like to exlude outliers like above. I've found that limits can be used in a similar manner as with xlim and ylim, but though I've read about them I don't understand how to solve it... Anyone who can help me? All the best, Joel

[R] Print several xyplots to the same page in a pdf file

2009-10-27 Thread Joel Fürstenberg-Hägg
=fieldTrial0809, pch=°, layout=c(1, 3), aspect=1, index.cond=list(3:1)) etc... All the best, Joel _ Nya Windows 7 - Hitta en dator som passar dig! Mer information. http://windows.microsoft.com

[R] Change positions of columns in data frame

2009-10-23 Thread Joel Fürstenberg-Hägg
be an easier way..? All the best, Joel _ Nya Windows 7 - Hitta en dator som passar dig! Mer information. http://windows.microsoft.com/shop [[alternative HTML version deleted

[R] Automatization of non-linear regression

2009-10-22 Thread Joel Fürstenberg-Hägg
for automatization is that I'll have to repeat the procedure more than a hundred times, while making overview pair waise plots of my data, with both this logaritmic regression and several others (exponential, monomoelcular, logistic, Gompertz and Weibull). Wish you all the best, Joel

[R] Division of data frame and deletion of values from column

2009-10-16 Thread Joel Fürstenberg-Hägg
someone could help me, though you might think it's too easy... Best regards, Joel _ Hitta kärleken nu i vår! http://dejting.se.msn.com/channel/index.aspx?trackingid=1002952

[R] Plot overview xy plots from data frame?

2009-10-14 Thread Joel Fürstenberg-Hägg
have to copy the 16 numerical columns to a new dataset, because they are not grouped and there are 20 additional non-numerical columns in the data frame. By the way, can the iterations be made using R, or do you have to combine with for instance Perl? All the best, Joel

[R] read and sac files from windows 07

2009-09-01 Thread joel ulises sevilla
Dear friends maybe someone can help this freshman at R, by tell step by step how can I read files from windows 2003-2007 to Rgui, I had tried all, no see solution?? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Coding problem: How can I extract substring of function call within the function

2009-08-13 Thread Pitt, Joel
* # * cmd=sprintf(x%s(%s),z,params) # see remarks above about z # and then it's done eval(parse(text=cmd),sys.frame()); } Any help would be much appreciated. Regards Joel Joel Pitt, Ph.D. Associate Professor Chair Mathematics Computer

Re: [R] Coding problem: How can I extract substring of function callwithin the function

2009-08-13 Thread Pitt, Joel
Thanks. It's a great solution to part of my problem. It provides the functionally I want would be no harder for students to use than my approach. I'm still interested in how to make what I was trying to do work -- simply to add to my own R programming proficiency. Joel

Re: [R] Coding problem: How can I extract substring of function callwithin the function

2009-08-13 Thread Pitt, Joel
a programming problem. Joel From: Steve Lianoglou [mailto:mailinglist.honey...@gmail.com] Sent: Thu 8/13/2009 5:55 PM To: Pitt, Joel Cc: Erik Iverson; r-help@r-project.org Subject: Re: [R] Coding problem: How can I extract substring of function

Re: [R] Coding problem: How can I extract substring of function call within the function

2009-08-13 Thread Pitt, Joel
for exploratory data analysis I prefer to avoid the menu driven detour. Regards, Joel From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Sent: Thu 8/13/2009 5:19 PM To: Pitt, Joel Cc: r-help@r-project.org Subject: Re: [R] Coding problem: How can I extract

[R] logistic regression with repeated measures

2009-08-10 Thread Joel Bried
Hello , I am writing because I would need some advice on the following question. I am working on paternity in a monogamous bird species and I am performing analyses to check whether the probability for a male to be cuckolded (binary variable) depends on his body size, the body size of his

[R] Preventing .Call from printing a blank line to the R console on Windows

2009-06-10 Thread Joel
Hello everyone, I am using the CVODES integrator in the Rsundials package. Every time I call the integrator, a blank line is printed in the console. Using debug, I was able to isolate the problem to this line in the function cvodes(...): solutions = .Call(cvodes, PACKAGE = Rsundials,

<    1   2