Re: [R] if within a function

2007-06-21 Thread Petr Klasterecky
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] merging dataframes with diffent rownumbers

2007-06-18 Thread Petr Klasterecky
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] Problem with binding data-frames

2007-06-18 Thread Petr Klasterecky
. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] Optimization

2007-06-18 Thread Petr Klasterecky
optimization. Could anyone give me some advice? -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] the way to look at all the codings of any functions

2007-06-17 Thread Petr Klasterecky
-help@stat.math.ethz.ch 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. -- Petr Klasterecky Dept. of Probability and Statistics Charles

Re: [R] problems with matrix, list and other..

2007-06-15 Thread Petr Klasterecky
] -1.0892216 -0.7304947 -1.2883680 d[2]%*%t(e[2]) this is the error: requires numeric matrix/vector arguments i've tried to coerce e to a matrix, but it's doesn't work... in the end.. i'd like this: for (i in (1:1096)) {solve(d[i])*t(e[i])} help me, please :) Vincenzo -- Petr Klasterecky

Re: [R] Loop for test statistic

2007-06-15 Thread Petr Klasterecky
advice as it does not work. Many thanks. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Grahpics problem

2007-06-15 Thread Petr Klasterecky
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] extractor rows from a matrix

2007-06-14 Thread Petr Klasterecky
advice you got here. Petr -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] extractor rows from a matrix

2007-06-14 Thread Petr Klasterecky
5 d[2]= 458 ... i'm trying now with this: for(i in 1:1096) d[i]=(rbind(ht[i,])) but it doesn't work :( it works with function like mean,sum.. but not with rbind what can i do? /---Messaggio originale---/ /*Da:*/ Petr Klasterecky mailto:[EMAIL PROTECTED

Re: [R] Removing Inf and Inf values from a fata frame

2007-06-13 Thread Petr Klasterecky
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. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic

Re: [R] logit model interpretation

2007-06-05 Thread Petr Klasterecky
degrees of freedom Residual deviance: 996.02 on 1424 degrees of freedom AIC: 1004 Number of Fisher Scoring iterations: 5 Thanks Vioelta -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic

Re: [R] getting t.test to work with apply()

2007-06-04 Thread Petr Klasterecky
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help

Re: [R] functions without arguments

2007-05-30 Thread Petr Klasterecky
]] __ R-help@stat.math.ethz.ch 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. -- Petr Klasterecky

Re: [R] an array of matrices

2007-05-21 Thread Petr Klasterecky
__ R-help@stat.math.ethz.ch 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. -- Petr Klasterecky Dept. of Probability and Statistics Charles

Re: [R] Goodness-of-fit test for gamma distribution?

2007-05-17 Thread Petr Klasterecky
. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] Filled step-function?

2007-05-16 Thread Petr Klasterecky
://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. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic

Re: [R] creating different strata

2007-05-16 Thread Petr Klasterecky
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help

Re: [R] Filled step-function?

2007-05-16 Thread Petr Klasterecky
(variable1,variable2,type=s,main=Title,ylim=c(120,0),xlim=c(0,10)) For each .csv-dataset I want to use this code with only slight adjustments... Tanks again, Beate Petr Klasterecky schrieb: Hi, I am not sure what exactly you would like to fill up and how, but take a look at ?polygon

Re: [R] Batch

2007-05-14 Thread Petr Klasterecky
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https

Re: [R] creating a list of 3 dataframes from a list of 2 dataframes and a dataframe?

2007-05-14 Thread Petr Klasterecky
__ R-help@stat.math.ethz.ch 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. -- Petr Klasterecky Dept. of Probability

Re: [R] apply( )

2007-05-10 Thread Petr Klasterecky
. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] How to read several text files at once!

2007-05-09 Thread Petr Klasterecky
, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Filling array: No recycling

2007-05-03 Thread Petr Klasterecky
code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] missing package

2007-05-02 Thread Petr Klasterecky
/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. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic

[R] length of the object is not a multiple of... [was: Re: hello]

2007-05-02 Thread Petr Klasterecky
example. Petr -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] Survival statistics--displaying multiple plots

2007-05-02 Thread Petr Klasterecky
__ R-help@stat.math.ethz.ch 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. -- Petr Klasterecky Dept. of Probability

Re: [R] weight

2007-04-28 Thread Petr Klasterecky
) where it is bolded, i'm getting the following error: Error in mysubset2[, 2:5] : incorrect number of dimensions snip -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing

Re: [R] how to code the censor variable for survfit

2007-04-28 Thread Petr Klasterecky
://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. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic

Re: [R] Scatter Plot in R - Help

2007-04-27 Thread Petr Klasterecky
If I understand correctly what A. Ezhil asked for, polygons won't help here. For coloring the individual points check ?points and use subsets, e.g. plot(x,y) points(x[xy-1],y[xy-1], col=red) or something similar. Petr John Kane napsal(a): Here is a recent posting by Petr Klasterecky

Re: [R] Extract p-value from survdiff function

2007-04-26 Thread Petr Klasterecky
-- A. GoralczykGöttingen, Ger. [EMAIL PROTECTED] mailing listhttps://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics

Re: [R] Extracting values from an array

2007-04-26 Thread Petr Klasterecky
a simple, efficient way to do this in R? Thanks. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] correlation table

2007-04-25 Thread Petr Klasterecky
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list

Re: [R] RE : for loops

2007-04-25 Thread Petr Klasterecky
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch

[R] print format - fixed number of digits

2007-04-25 Thread Petr Klasterecky
format(x,digits=5,scientific=FALSE) V1 V2 1 0.0026408 -0.0023358 2 -0.0039601 0.0103731 3 -0.0070793 -0.0057927 -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help

Re: [R] creating random numbers

2007-04-25 Thread Petr Klasterecky
/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. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic

Re: [R] Keeping data after upgrading R to a new version [was: A very simple question]

2007-04-24 Thread Petr Klasterecky
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help

Re: [R] Changing working directory

2007-04-23 Thread Petr Klasterecky
and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] residuals and predict

2007-04-23 Thread Petr Klasterecky
and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Histograms of lots of variables

2007-04-17 Thread Petr Klasterecky
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing

Re: [R] Please help.... i know its trivial

2007-04-17 Thread Petr Klasterecky
have been something like 'wrong row names in subset' or 'dataframe subset question' etc, certainly not 'please help me, it's trivial'... Btw, there is something like the posting guide for this list (see footer). Petr -- Petr Klasterecky Dept. of Probability and Statistics Charles University

Re: [R] background color

2007-04-17 Thread Petr Klasterecky
deleted]] __ R-help@stat.math.ethz.ch 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. -- Petr

[R] session log

2007-04-16 Thread Petr Klasterecky
found this thread from 2003(!) related to this topic: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/13971.html however I am using R on MS Windows - no |tee, no ESS... Petr -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic

Re: [R] session log

2007-04-16 Thread Petr Klasterecky
. NT emacs is available at ftp://ftp.gnu.org/pub/gnu/emacs/windows download emacs-21.3-fullbin-i386.tar.gz ESS is available at http://ess.r-project.org Click source and then right-click ess-5.3.3.zip -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague

Re: [R] Reading user input

2007-04-03 Thread Petr Klasterecky
/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. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic

Re: [R] Newbie: Simple loops: complex troubles

2007-04-03 Thread Petr Klasterecky
if i am going about this loop stuff a rely round about way - Any help would make me much less loopy:Pthanks -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing

Re: [R] Device drivers - png()/jpeg()

2007-04-02 Thread Petr Klasterecky
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing

Re: [R] Why does lmList() fail when lm() doesn't?

2007-04-02 Thread Petr Klasterecky
@stat.math.ethz.ch 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. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague

Re: [R] Doing partial-f test for stepwise regression

2007-03-31 Thread Petr Klasterecky
-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic

Re: [R] RV: By sentence

2007-03-27 Thread Petr Klasterecky
@stat.math.ethz.ch 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. -- Petr Klasterecky Dept. of Probability and Statistics Charles University

Re: [R] Listing function

2007-03-26 Thread Petr Klasterecky
, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Subset

2007-03-23 Thread Petr Klasterecky
]] __ R-help@stat.math.ethz.ch 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. -- Petr Klasterecky Dept

Re: [R] Trimming a Data Set

2007-03-14 Thread Petr Klasterecky
]] __ R-help@stat.math.ethz.ch 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. -- Petr Klasterecky Dept. of Probability

Re: [R] Adding bars to the right of existing ones using barplot

2007-03-13 Thread Petr Klasterecky
__ R-help@stat.math.ethz.ch 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. -- Petr Klasterecky Dept. of Probability

Re: [R] MCMC logit

2007-03-12 Thread Petr Klasterecky
. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] Export successively displayed graphics

2007-03-12 Thread Petr Klasterecky
. Moreover, the frontend I am using for R (RkWard) does not enable me to export graphs as vectorial image files. How can I export such graphs as separate (e.g.) Postscript files ? par(ask=FALSE) didn't help. Thank you for your answer. -- Petr Klasterecky Dept. of Probability and Statistics

Re: [R] recoding question

2007-03-11 Thread Petr Klasterecky
. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] understanding print.summary.lm and perhaps print/show in general

2007-03-09 Thread Petr Klasterecky
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. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic

Re: [R] Reg. strings and numeric data in matrix.

2007-03-09 Thread Petr Klasterecky
] __ R-help@stat.math.ethz.ch 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. -- Petr Klasterecky Dept. of Probability

Re: [R] read a irregular text file data into dataframe()

2007-03-09 Thread Petr Klasterecky
0004 0010 0055 0010 0042 0061 0080 0010 0017 0078 0084 0006 0010 0040 0042 0075 0080 0005 0028 0032 0006 0010 0040 0061 -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch

Re: [R] Calculating confidence limits on acf graphs

2007-03-07 Thread Petr Klasterecky
, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Download packages problem.

2007-03-07 Thread Petr Klasterecky
software is correct, but my server required authentication for use it, and for load a new package directly from R it is not possible. Is there a code or process for server authentication (put my login and password) in R for download directly the packages? The best regards, -- Petr Klasterecky

Re: [R] hwo can i get a vector that...

2007-03-07 Thread Petr Klasterecky
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. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic

Re: [R] Generate random numbers up to one

2007-03-06 Thread Petr Klasterecky
make them add-up to 1: x - rnorm(100) #runif(100), rpois(100) etc. x - x/sum(x) sum(x) Petr -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] Generate random numbers up to one

2007-03-06 Thread Petr Klasterecky
Barry Rowlingson napsal(a): Petr Klasterecky wrote: You need to specify what 'random' means. If you have any numbers, you can always make them add-up to 1: x - rnorm(100) #runif(100), rpois(100) etc. x - x/sum(x) sum(x) I see a slight problem that may occur with dividing by sum(x

Re: [R] how to edit my R codes into a efficient way

2007-03-06 Thread Petr Klasterecky
of dataframes and using lapply() on that list rather than processing the data inside the loop. Petr Xuhong -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Recalling and printing multiple graphs. Is there something in the HISTORY menu that will help?

2007-03-06 Thread Petr Klasterecky
John Sorkin M.D., Ph.D. Chief, Biostatistics and Informatics Baltimore VA Medical Center GRECC, University of Maryland School of Medicine Claude D. Pepper OAIC, University of Maryland Clinical Nutrition Research Unit, and Baltimore VA Center Stroke of Excellence -- Petr Klasterecky Dept

Re: [R] Question about the smooth.Pspline

2007-03-06 Thread Petr Klasterecky
-help@stat.math.ethz.ch 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. -- Petr Klasterecky Dept. of Probability and Statistics Charles

Re: [R] Waiting for Key input

2007-03-06 Thread Petr Klasterecky
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. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech

Re: [R] 0 * NA = NA

2007-03-05 Thread Petr Klasterecky
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. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic

Re: [R] error message when using outer function

2007-03-05 Thread Petr Klasterecky
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https

Re: [R] R (Input from Keyboard): How do I remove error?

2007-03-01 Thread Petr Klasterecky
execute my script in two parts: First part: : : cat(\n,Enter value:: ,\n) y-scan(n=1) and second part: a - b*y cat(\n,Enter new value::,\n) y-scan(n=1) : : Any help will be greatly appreciated. -- Petr Klasterecky Dept. of Probability and Statistics Charles University

Re: [R] How to read in this data format?

2007-03-01 Thread Petr Klasterecky
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Row-wise two sample T-test on subsets of a matrix

2007-03-01 Thread Petr Klasterecky
. __ R-help@stat.math.ethz.ch 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. -- Petr

Re: [R] Default par() options

2007-03-01 Thread Petr Klasterecky
@stat.math.ethz.ch 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. -- Petr Klasterecky Dept. of Probability and Statistics Charles University

Re: [R] matrix manipulations

2007-02-28 Thread Petr Klasterecky
Anup -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] Multiple conditional without if

2007-02-27 Thread Petr Klasterecky
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help

Re: [R] how to fill between 2 stair plots

2007-02-26 Thread Petr Klasterecky
-help@stat.math.ethz.ch 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. ?polygon might be useful. See also demo(graphics) Petr -- Petr

Re: [R] Chi Square with two tab-delimited text files

2007-02-26 Thread Petr Klasterecky
to use. I'd guess a goodness of fit test, but who knows? See ?chisq.test and the examples given there. It also tells you that the y-argument is ignored if x is a matrix (that's probably the reason why you get different results using read.table and scan). Petr -- Petr Klasterecky Dept

Re: [R] recovering collums of DF using a text var.list

2007-02-24 Thread Petr Klasterecky
in var.list) { plot(density(df[[paste(myvar)]]), main=paste('Density of',myvar)) } It may not be bad idea to make a structure (list, dataframe) consisting of only those variables you want and use some variant of apply() instead of the for-loop. See ?apply, ?tapply, ?sapply Petr -- Petr Klasterecky

[R] optim(method=L-BFGS-B) abnormal termination

2007-02-23 Thread Petr Klasterecky
to attempt such minimization? (Suppose I have good starting values.) Thaks, Petr -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] applying lm on an array of observations with common design matrix

2007-02-21 Thread Petr Klasterecky
of the coefficients? Sure: lapply(summary(fit), function(x) {$(x,cov.unscaled)}) Add indexing if you do not want the whole matrix. You can extract whatever you want, just take a look at ?summary.lm, section Value. Petr -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague

Re: [R] Working with temporal data

2007-02-15 Thread Petr Klasterecky
(your.variable[day==20070101]) if 'day' contains the date stored as an integer. If you want to do this for all days probably you mmight use a loop through unique(day) Finally, to do a monthly/yearly analysis, just create 'month' and 'year' month - trunc(day/100) year - trunc(day/1) HTH Petr Klasterecky