[R] (no subject)

2014-10-02 Thread Kalia Schuster
Hello, I'm new to R. I'm trying to run a power analysis in a for loop to find an ideal sample size. The situation is I am doing counts of fish at 24 different sites and rating those sites as 1 or 2 for good or poor habitat. So the counts are continuous but the habitat rating isn't. When I try to ru

[R] howto join matrices produced by rcorr()

2013-12-30 Thread Alexander Schuster
Hi, i have used rcorr() for calculating pearsons r and according p-values for my data, giving me 2 matrices. Now I would like to print scatterplots for all results with "good" correlation values. So i need a way to extract the row-name and column-name for each item in the matrix with "good" r-va

Re: [R] Reshaping dataframes

2012-08-23 Thread Ingmar Schuster
itute_na(d) > r2 <- subs_na(d) > str(r1) > str(r2) > identical(r1, r2) # TRUE > > You could use the same coding for characters, Dates, etc. > > Hope this helps, > > Rui Barradas > > Em 22-08-2012 20:16, Ingmar Schuster escreveu: > > Hi, >> >>

[R] Reshaping dataframes

2012-08-22 Thread Ingmar Schuster
tor columns from numeric columns and use a special numeric value there. The current version of rbind.fill makes no direct reference to the fill value so that I could change its implementation for my purpose. Thanks! Ingmar -- Ingmar Schuster Natural Language Processing Group Department of Com

[R] ts.plot and x axes customization

2012-02-28 Thread Jochem Schuster
Dear List, I would be pleased if someone can help me with the following issue: I'm about to plot two time series in one plot via ts.plot which looks like: ts.plot(series1, series2, main=main, xlab=xlab, ylab=ylab, col=c("green", "red", "blue"), lwd=2) The problem is, that R

[R] Stepwise Manova

2011-06-23 Thread Schuster, Veronika
Hello all, I have a question on manova in R: I'm using the function "manova()" from the stats package. Is there anything like a stepwise (backward or forward) manova in R (like there is for regression and anova). When I enter: step(Model1, data=Mydata) R returns the message: Error in drop1.

[R] Stepwise Manova

2011-06-21 Thread Schuster, Veronika
Hello all, I have a question on manova in R: I'm using the function "manova()" from the stats package. Is there anything like a stepwise (backward or forward) manova in R (like there is for regression and anova). When I enter: step(Model1, data=Mydata) R returns the message: Error in drop1.

[R] Question on Manova

2011-06-09 Thread Schuster, Veronika
Hi all, Is the Manova in R restricted to a certain amount of variables? I have currently problems building a model with 47 variables. Thanks a lot! Best, Veronika ** This message is intended only for the use o

Re: [R] How to comment out entire code parts in Sweave files

2010-09-12 Thread schuster
ing guide > http://www.R-project.org/posting-guide.html and provide commented, > minimal, self-contained, reproducible code. > -- Friedrich Schuster Dompfaffenweg 6 69123 Heidelberg [[alternative HTML version deleted]] __ R-help@r-p

Re: [R] R reports

2010-08-21 Thread schuster
t; it live in a small ghetto and don't get out much. > > On Aug 20, 2010, at 5:33 PM, schuster [via R] wrote: > > Hi, > > > > are you looking for something like SAS ODS? > > (The terms "4GL" and "declarative programming" are confusing) >

Re: [R] Latex no where to be seen

2010-08-20 Thread schuster
ould be nice too, I agree. Would you like to write a package for this (assuming there is none at the moment). -- Friedrich Schuster Dompfaffenweg 6 69123 Heidelberg __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] R reports

2010-08-20 Thread schuster
etc. Sort of like what plot does except > the function will generate a report. I suppose you could specify an output > format or "printer device" as plain text, rich text, pdf, or html. > -- Friedrich Schuster Dompfaffenweg 6 69123 Heidelberg ___

[R] Documenting different OO-aproaches in R as a package?

2010-07-27 Thread schuster
task) I mean in this case the package would not add data or functionality to R or serve as a companion package for a book. In this case the package would (only) add documentation to R. Is this ok? Friedrich Schuster Dompfaffenweg 6 69123 Heidelberg

Re: [R] OOP module

2010-07-26 Thread schuster
Hello, My impression is that the OOP package is not used that often. For alternatives (R.oo, proto) see the posts of Gabor Grothendieck: http://www.mail-archive.com/r-help@r-project.org/msg73565.html http://www.mail-archive.com/r-help@r-project.org/msg75308.html Friedrich Schuster

Re: [R] class

2010-07-23 Thread schuster
quot;)) > NextMethod() > �} > � > when I do > �f1(myB) > ## R gave me the result > [1] "x...@s2=hi" > [1] "default" > ## but I think the result should be > [1] "x...@s2=hi" > [1] "x...@s1=8" > [1] "default&quo

Re: [R] Syntax Highlightning and Editor for Linux

2010-07-23 Thread schuster
gt; Best Regards > > Alex > > __ > 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, >

[R] OT: Impressions from UseR 2010 conference?

2010-07-20 Thread schuster
Hello UseR cpnference participants, could you give us some impressions of the conference so far (for those of us who stayed at home ..)? And will there be photos be made available ? Thanks, Friedrich Schuster Dompfaffenweg 6 69123 Heidelberg

Re: [R] What is the opposite of rbind?

2010-07-14 Thread schuster
s$Species) -- Friedrich Schuster Dompfaffenweg 6 69123 Heidelberg __ 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-

Re: [R] SAS Proc summary/means as a R function

2010-07-13 Thread schuster
t; perl off; > > also > > sas on; > > some SAS code > > sas off; > > The purpose of parmbuff is to turn off of Rs scanning and resolution of > function arguments > and just provide the bare text between '(' and ')&

[R] Fwd: Functional programming and R: Recommendations?

2010-07-03 Thread schuster
read (and like) "Programming in Scala" (Odersky) and just ordered "Funktionale Progammierung" (Pepper/Hofstedt) Thanks, FS -- Friedrich Schuster Dompfaffenweg 6 69123 Heidelberg __ R-help@r-project.org mailing list https://stat

Re: [R] calling a function with new inputs every 1 minute

2010-06-13 Thread schuster
e minute later) > input1_t1, input2_t1, input3_t1 > function(input1_t1, input2_t1, input3_t1 > function_result_1 > ... > > end_result <- c(function_result_0, function_result_1, function_result_2, > ..., n) > > Ideally I'd want to do this every 1 minute for th

Re: [R] switching elements of a vector

2010-05-24 Thread schuster
.it is quite long... > can you find an easier solution? > > Thank you for you help > -- Friedrich Schuster Dompfaffenweg 6 69123 Heidelberg __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEAS

Re: [R] Multiple plots; single x(y) labels

2010-05-13 Thread schuster
Hello Xin, If you need to recreate plots from different systems you need full control over the graphics output. This is not always easy with traditional graphics, better have a look at the plotting functions from lattice (based on grid graphics system in R) or maybe ggplot2. http://www.googl

Re: [R] R version of SAS/IntrNet

2010-05-13 Thread schuster
__ > 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. > -- Friedrich Schuste

Re: [R] R Graphical Manuals Web API

2007-10-10 Thread Friedrich Schuster
Great idea, thanks! 小笠原理 wrote: > > Dear all, > > As a response to the comment of Mr. Romain Francois, > I wrote a small set of REST web APIs for R Graphical Manuals. > It has become possible to get image URLs for a given package/function > name via the web API. > > http://cged.genes.nig.ac

Re: [R] as.ordered

2007-10-08 Thread Friedrich Schuster
the dataframe). To convert two factors a and b and merge them into a new dataframe: newFrame <- as.data.frame(cbind(as.ordered(a),as.ordered(b))) l For a larger number of factors this can be done with a loop or better one of the "apply"-functions. Hope this helps, Friedrich Schu

Re: [R] as.ordered

2007-10-08 Thread Friedrich Schuster
the dataframe). To convert two factors a and b and merge them into a new dataframe: newFrame <- as.data.frame(cbind(as.ordered(a),as.ordered(b))) l For a larger number of factors this can be done with a loop or better one of the "apply"-functions. Hope this helps, Friedrich Schu

Re: [R] how to use \Sexpr{} with sweave

2007-10-07 Thread Friedrich Schuster
Hi, this works for me (R 2.5.1, Linux): <>= data(airquality) library(ctest) kruskal.test(Ozone ~ Month, data = airquality) @ Wir haben hier also \Sexpr{nrow(airquality)} Datenzeilen in airquality. This works \Sexpr{2+6} I think the error is in your latex setup, not in R or Sweave. ryancw