Re: [R] problem with read.table

2007-05-22 Thread Charilaos Skiadas
On May 22, 2007, at 9:41 PM, Alex Tsoi wrote: Dear all, I try to use read.table to get the data from a tab delimited file, and some of the data is shown below: [snip] and it means that whenever read.table reads ' , it skips the next line, until it reads ' again Could

Re: [R] Questions about bwplot

2007-05-21 Thread Charilaos Skiadas
On May 21, 2007, at 8:39 AM, Klaus Nordhausen wrote: Dear R-experts, I have some questions about boxplots with lattice. My data is similar as in the example below, I have two factors (Goodness of Fit and Algorithms) and data values but in each panels the scales are quite different,

Re: [R] how to convert a string vector to a numeric vector

2007-05-13 Thread Charilaos Skiadas
On May 13, 2007, at 7:48 AM, Mihai Bisca wrote: Hello all, I'm new to R and I cannot find a simple answer to a simple question. If I have a character vector like v - c('1/50,'1/2','1/8'...) how can I convert it to a numeric vector like vn - c(0.02,0.5,0.125...). I tried as.numeric in

Re: [R] sequential for loop

2007-04-20 Thread Charilaos Skiadas
Hi Michael, On Apr 20, 2007, at 12:31 AM, Michael Toews wrote: Hi all, I'm usually comfortable using the *apply functions for vectorizing loops in R. However, my particular problem now is using it in a sequential operation, which uses values evaluated in an offset of the loop vector.

Re: [R] Two sample t.test, order of comparions

2007-04-18 Thread Charilaos Skiadas
On Apr 18, 2007, at 8:46 AM, Helmut Schütz wrote: Dear group members, I want to compare response variables (logAUC) of two groups (treatment Test, Reference) of a subset (period == 1) in dataframe resp (below): [ snip ] The formula method of t.test result - t.test(logAUC ~ treatment,

Re: [R] Data Manipulation using R

2007-04-17 Thread Charilaos Skiadas
On Apr 17, 2007, at 8:03 PM, Anup Nandialath wrote: Dear Friends, I have data set with around 220,000 rows and 17 columns. One of the columns is an id variable which is grouped from 1000 through 9000. I need to perform the following operations. 1) Remove all the observations with id's

Re: [R] Simplify simple code

2007-04-16 Thread Charilaos Skiadas
On Apr 16, 2007, at 1:37 AM, Dong-hyun Oh wrote: Dear expeRts, I would simplify following code. - youtput - function(x1, x2){ n - length(x1) y - vector(mode=numeric, length=n) for(i in 1:n){ if(x1[i] =5 x1[i] = 10 x2[i] =5 x2[i]

Re: [R] read.spss (package foreign) and SPSS 15.0 files

2007-04-16 Thread Charilaos Skiadas
On Apr 16, 2007, at 10:41 AM, John Kane wrote: --- Charilaos Skiadas [EMAIL PROTECTED] wrote: It is not an export option, it is a save as option. I don't have a 14 to check, but on a 15 I just go to File - Save As, and change the Save as type field to Comma Delimited (.*.csv). (I suppose

Re: [R] read.spss (package foreign) and SPSS 15.0 files

2007-04-14 Thread Charilaos Skiadas
On Apr 14, 2007, at 7:06 AM, John Kane wrote: --- Adrian Dusa [EMAIL PROTECTED] wrote: Charilaos Skiadas skiadas at hanover.edu writes: [...] I save as csv format all the time, and it offers me a choice to use the labels instead of the corresponding numbers. So you shouldn't have

Re: [R] Getting and using a function

2007-04-13 Thread Charilaos Skiadas
On Apr 12, 2007, at 11:28 PM, Thomas L Jones wrote: library (gam) all I get is an error message. Error in library (gam) : there is no package called 'gam' Well, does this mean what it says, or does it mean something different? For example, does it mean that such-and-such computer

Re: [R] if/else construct

2007-04-13 Thread Charilaos Skiadas
Corinna, On Apr 13, 2007, at 8:19 AM, Schmitt, Corinna wrote: Dear R-Experts, Since Monday I try to write the right if/else construct for the program. I was not successful yet. Important is the order of the if-cases! The code is running with the 2 if-cases. An if/else construction would

Re: [R] graphics question: tilted axis labels?

2007-04-13 Thread Charilaos Skiadas
Your problem is different I think, it's the fact that LA$countries is a factor, and hence you see the factor levels instead of their labels. Try: # create data frame LA - data.frame(countries=c(Chile, Peru, Bolivia), values=c (10, 12, 13), stringsAsFactors = FALSE) # call barplot

Re: [R] graphics question: tilted axis labels?

2007-04-13 Thread Charilaos Skiadas
for the horizontal attribute? boxplot - horizontal barplot - horiz Cheers, Christoph On 13.04.2007, at 15:27, Charilaos Skiadas wrote: # create data frame LA - data.frame(countries=c(Chile, Peru, Bolivia), values=c (10, 12, 13), stringsAsFactors = FALSE) # call barplot barplot(LA$values

Re: [R] problems in loading MASS

2007-04-12 Thread Charilaos Skiadas
Weiwei, I have never had much success installing packages from within R.app on MacOSX, because the location that it is supposed to save things, / Library/Frameworks/, needs elevated priviledges, which the app doesn't seem to try to get. So it at best ends up saving it in some

Re: [R] Boxplot names format

2007-04-11 Thread Charilaos Skiadas
On Apr 11, 2007, at 5:31 AM, Jose Sierra wrote: Thank you very much Peters. it runs Peter Danenberg escribió: I create a boxplot but the names are too longs and i cant see them complete. If you're referring to labels on the x-axis, Jose, I'll sometimes rotate them and

Re: [R] Reasons to Use R

2007-04-11 Thread Charilaos Skiadas
A new fortune candidate perhaps? On Apr 10, 2007, at 6:27 PM, Greg Snow wrote: Remember, everything is better than everything else given the right comparison. -- Gregory (Greg) L. Snow Ph.D. Haris Skiadas Department of Mathematics and Computer Science Hanover College

Re: [R] Memory management

2007-04-11 Thread Charilaos Skiadas
Before you go down that road, I would recommend first seeing if it is really a problem. Premature code optimization is in my opinion never a good idea. Also, reading the Details on ?attach you will find this: The database is not actually attached. Rather, a new environment is

Re: [R] Boxplot with quartiles generated from different algorithms

2007-04-11 Thread Charilaos Skiadas
On Apr 11, 2007, at 7:59 AM, Pietrzykowski, Matthew (GE, Research) wrote: R users: I am trying to replicate the boxplot output I achieve with Minitab in R. I realize that R gives the user many more options on the algorithm used to calculate the IQR than Minitab, so I concentrated on

Re: [R] Reasons to Use R

2007-04-09 Thread Charilaos Skiadas
On Apr 9, 2007, at 1:45 PM, Greg Snow wrote: The licences keep changing, some have in the past but don't now, some you can get an additional licence for home at a discounted price. Some it depends on the type of licence you have at work (currently our SAS licence is such that the 3 people in

Re: [R] Computing the rank of a matrix.

2007-04-06 Thread Charilaos Skiadas
On Apr 6, 2007, at 7:39 AM, José Luis Aznarte M. wrote: Hi! Maybe this is a silly question, but I need the column rank (http://en.wikipedia.org/wiki/Rank_matrix) of a matrix and R function 'rank()' only gives me the ordering of the elements of my matrix. How can I compute the column

Re: [R] read.spss (package foreign) and SPSS 15.0 files

2007-04-06 Thread Charilaos Skiadas
On Apr 6, 2007, at 12:32 PM, John Kane wrote: I have simply moved to exporting the SPSS file to a delimited file and loading it. Unfortunately I'm losing all the labelling which can be time-consuming to redo.Some of the data has something like 10 categories for a variable. I save as csv

Re: [R] reading of a matrix

2007-04-05 Thread Charilaos Skiadas
On Apr 5, 2007, at 6:50 AM, Schmitt, Corinna wrote: Dear R-experts, I still have problems with the reading of a matrix. Input: matrixData6.txt A-Paar B-Paar C-Paar D-Paar E-Paar A 1 3 5 7 9 B 2 4 6 8 10 R-commands: y=read.table(file=Z:/Software/R-Programme/matrixData6.txt) y

Re: [R] Annotate a levelplot (using abline) - Difficulty with trellis.

2007-04-04 Thread Charilaos Skiadas
On Apr 4, 2007, at 7:19 AM, Dan Bolser wrote: Hi, I am generating a beautiful plot with the 'levelplot' function over my square matrix of data. In order to help visualise the data I would like to draw a diagonal line on the matrix. Because the plot is actually a trellis object, I am having

Re: [R] Reading user input

2007-04-04 Thread Charilaos Skiadas
I think the problem the OP may be having is that the code will not work if you put it in a document window in R and then tell R to source the document. At least not with R.app in MacOSX. This is what happened when I did it: source(/tmp/Rtmp0TQfA6/file10d63af1) enter the number of groups:

Re: [R] substitute NA values

2007-03-30 Thread Charilaos Skiadas
On Mar 30, 2007, at 10:56 AM, Gavin Simpson wrote: This is R, there is always a way (paraphrasing an R-Helper the name of whom I forget just now). Can't resist, it's one of my favorite fortunes ;) That would be Simon 'Yoda' Blomberg: library(fortunes) fortune(109) Haris Skiadas Department

Re: [R] E-Mail/Post Threading (was: Bonferroni p-value greater t

2007-03-29 Thread Charilaos Skiadas
On Mar 29, 2007, at 3:21 PM, Marc Schwartz wrote: Since most e-mail systems (list managers, MUA's, etc.) thread based upon the headers and not the subject, as described in the above references, unless you generate a completely new e-mail, your reply will be linked to the e-mail and thread

Re: [R] Flipping a vector

2007-03-17 Thread Charilaos Skiadas
On Mar 17, 2007, at 10:52 PM, [EMAIL PROTECTED] wrote: Hi all - A stupid question here, my apology. I would like to know how can I flip a vector in R? For example, I have a vector: a = c(1,2,3) I would like my vector b to have the following value b = c(1,2,3) But what operator I need

Re: [R] Rownames are always character?

2007-03-16 Thread Charilaos Skiadas
On Mar 16, 2007, at 6:26 PM, Mike Prager wrote: Mike Prager [EMAIL PROTECTED] wrote: Gurus, Can I rely on the rownames() function, when applied to a matrix, always returning either NULL or an object of type character? It seems that row names can be entered as integers, but as of now (R

Re: [R] Density estimation graphs

2007-03-15 Thread Charilaos Skiadas
On Mar 15, 2007, at 12:37 PM, Mark Wardle wrote: Dear all, I'm struggling with a plot and would value any help! I'm attempting to highlight a histogram and density plot to show a proportion of cases above a threshold value. I wanted to cross- hatch the area below the density curve. The

Re: [R] abs(U) 0 where U is a vector?

2007-03-14 Thread Charilaos Skiadas
On Mar 14, 2007, at 7:05 AM, Alberto Monteiro wrote: prod(U 0) But this is not the most elegant solution, because there is a function to check if all [and another to check if any] component of a vector of booleans are [is] true: it's all(V) [resp. any(V)]. So: all(U 0) Just for the

Re: [R] rgeom for p (1-p)^(x-1)

2007-03-14 Thread Charilaos Skiadas
On Mar 14, 2007, at 8:44 AM, Benjamin Dickgiesser wrote: Hi, is there a package available which lets me generate random data for the geometric distribution with density: p(x) = p (1-p)^(x-1) ? rgeom uses the density p(x) = p (1-p)^x. Why not just use rgeom, and then add 1 to all the

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

2007-03-13 Thread Charilaos Skiadas
On Mar 13, 2007, at 3:34 PM, Jason Horn wrote: I'm trying to create a barplot that has two sets of data next to each other. I'm using barplot with the add=TRUE option, but this simply adds the second dataset on top of the first, obscuring it. How do I add the new data to the right on the

Re: [R] altering prefix to multiple variables in different locations within a command file

2007-03-12 Thread Charilaos Skiadas
On Mar 12, 2007, at 4:54 PM, Bob Green wrote: Hello, I am seeking advice regarding how I might add the prefix kc$ to variables in a series of commands. The complication is that there is a large number of variables with different commands. Examples of the variables in typical commands

Re: [R] Highlight overlapping area between two curves

2007-03-12 Thread Charilaos Skiadas
On Mar 13, 2007, at 12:19 AM, Nguyen Dinh Nguyen wrote: Dear R helpers, I have a graph as following; I would like to highlight the overlapping area between the two curves. Do you know how to do this? Thank you in advance for your help. Perhaps not exactly what you wanted, but it might

Re: [R] Help with paste()

2007-03-03 Thread Charilaos Skiadas
On Mar 3, 2007, at 2:29 PM, Michael Kubovy wrote: Dear r-helpers, Could you please tell me what's missing: rbind(paste('txt.est',1:24, sep = '')) txt.est1, ... txt.est24 are vectors that I wish to rbind. the paste call just returns a vector of the strings txt.est1 and so on. Then you

Re: [R] apply ? function doesnt create object

2007-03-03 Thread Charilaos Skiadas
On Mar 3, 2007, at 4:28 PM, bunny , lautloscrew.com wrote: Please use - for assignments instead of = : getans = function(x=qids,bnr=1,type=block) { #generate name of matrix matnam=paste(ans,type,as.character(bnr),sep=) #display result matrix

Re: [R] from function to its name?

2007-03-02 Thread Charilaos Skiadas
On Mar 2, 2007, at 9:42 AM, Ido M. Tamir wrote: Hi, I can get from a string to a function with this name: f1 - function(x){ mean(x) } do.call(f1,list{1:4}) get(f1) etc... But how do I get from a function to its name? funcVec - c(f1,median) funcVec [[1]] function(x){ mean(x) } I

Re: [R] question about xtable and Hmisc

2007-03-01 Thread Charilaos Skiadas
Sorry, meant for this to go to the whole list. On Mar 1, 2007, at 3:29 PM, Charilaos Skiadas wrote: On Mar 1, 2007, at 2:52 PM, steve wrote: Unfortunately, this applies to print.xtable, and not to latex. I want to know how to eliminate them using latex() 1) Why do you need to use latex

[R] R code for Statistical Models in S ?

2007-03-01 Thread Charilaos Skiadas
I just acquired a copy of Statistical Models in S, I guess most commonly known as the white book, and realized to my dismay that most of the code is not directly executable in R, and I was wondering if there was a source discussing the things that are different and what the new ways of

Re: [R] R code for Statistical Models in S ?

2007-03-01 Thread Charilaos Skiadas
On Mar 1, 2007, at 4:36 PM, Robert Duval wrote: You might want to start looking at the FAQ's http://cran.r-project.org/faqs.html in particular http://cran.r-project.org/doc/FAQ/R-FAQ.html#R-and-S Thanks I must admit that I had not looked at the FAQ's, but I have now and though it might

Re: [R] Generating R plots through Perl

2007-03-01 Thread Charilaos Skiadas
On Mar 1, 2007, at 6:28 PM, [EMAIL PROTECTED] wrote: First off, if you are working in perl you might want to be aware of ruby and the r for ruby project: http://rubyforge.org/projects/r4ruby/ Hello, $R-send(qq (xVal - c(1,2,3,4,5,6))); $R-send(qq (yVal - c(3,5,2,6,1,5))); $R-send(qq

Re: [R] someattributes

2007-02-26 Thread Charilaos Skiadas
On Feb 26, 2007, at 10:35 AM, Thaden, John J wrote: I'd like to use someattributes(), as described in documentation for R version 2.4.1 (windows build) help(attributes) however, someattributes() does not seem to exist. someattributes() Error: could not find function someattributes Is

Re: [R] someattributes

2007-02-26 Thread Charilaos Skiadas
On Feb 26, 2007, at 3:00 PM, Thaden, John J wrote: Thanks for correcting me. Actually, my windows R documentation says mostattributes(), but it makes no difference -- none of the three show up as function names or R objects. That's because there is no mostattributes function, it only works

Re: [R] returns from dnorm and dmvnorm

2007-02-26 Thread Charilaos Skiadas
On Feb 26, 2007, at 3:03 PM, A Hailu wrote: Hi All, Why would calls to dnorm and dmvnorm return values that are above 1? For example, dnorm(0.3,mean=0, sd=0.1) [1] 3.989423 Because dnorm gives you the density function, whose integral is the distribution function, which is likely

Re: [R] gsub: replacing a.*a if no occurence of b in .*

2007-02-24 Thread Charilaos Skiadas
All these methods do assume that you don't have nested tag's, like so: tagtagfoo/taguseful stuff/tagsome garbage/tag For that you would really need a true parser. So I would double-check to make sure this doesn't happen. Do you have any control on where those XML files are generated though?

Re: [R] gsub: replacing a.*a if no occurence of b in .*

2007-02-24 Thread Charilaos Skiadas
On Feb 24, 2007, at 11:37 AM, Gabor Grothendieck wrote: The _question_ assumed that, which is why the answers did too. Oh yes, I totally agree, the file snippet the OP provided did indeed assume that, though nothing in the text of his question did, so I wasn't entirely clear whether the

[R] Cross-tabulations next to each other

2007-02-22 Thread Charilaos Skiadas
I have the following relatively simple problem. Say we have three factors, and we want to create a cross-tabulation against each of the other two: x - factor(rbinom(5, 1, 1/2)) y - factor(rbinom(5, 1, 1/2)) z - factor(rbinom(5, 1, 1/2)) table(x,y) table(x,z) This looks like: y x 0 1

Re: [R] Cross-tabulations next to each other

2007-02-22 Thread Charilaos Skiadas
Hi Dimitris, On Feb 22, 2007, at 10:27 AM, Dimitris Rizopoulos wrote: maybe cbind() is close to what you're looking for, e.g., tb1 - table(x, y) tb2 - table(x, z) cbind(tb1, tb2) Yes, that was my first thought too, and it does place the values where I want them, but it completely

[R] [MacOSX] Screencast for R and Sweave on TextMate

2007-02-21 Thread Charilaos Skiadas
This will likely be of interest only (if at all) to MacOSX users. I use a particular editor called TextMate which I find particularly suitable for pretty much any task I have to do, from Ruby to LaTeX to R. Its R support is probably not quite up to par with ESS yet, but it is at a decent

[R] Proper way to typeset the symbol for R in LaTeX?

2007-02-15 Thread Charilaos Skiadas
Hoping this is not off topic... I am in the process of writing some tutorials for my students for learning R, and naturally I'm using Sweave for this. So suddenly a question occurred to me: LaTeX has a recommended way of typesetting the TeX and LaTeX symbols, via the \TeX and \LaTeX

Re: [R] make check failure, internet.Rout.fail, Error in strsplit

2007-02-12 Thread Charilaos Skiadas
On Feb 12, 2007, at 6:28 PM, Paul Lynch wrote: I'm trying to build R on RedHat EL4. The compile went fine, but a make check ran into a problem and produced a file internet.Rout.fail. Judging by the last part of that file, it was trying to run an R routine called httpget to retrieve the URL

Re: [R] merge words=data name

2007-02-11 Thread Charilaos Skiadas
On Feb 11, 2007, at 8:57 PM, Mark W Kimpel wrote: Duncan, Both yours and Gabor's methods were far superior to mine. I am curious why you like Gabor's better than yours. Don't know if the following is why Duncan prefers Gabor's method, but here is why I would avoid the eval version: In

Re: [R] SAS, SPSS Product Comparison Table

2007-02-10 Thread Charilaos Skiadas
On Feb 10, 2007, at 4:26 PM, Muenchen, Robert A (Bob) wrote: Surely R can't do for free what [fill in a SAS or SPSS product here] does? To try to address those, I've compiled a table that is organized by the product categories SAS and SPSS offer. Keep in mind that I still know far more

Re: [R] setting a number of values to NA over a data.frame.

2007-02-09 Thread Charilaos Skiadas
Once again I forgot to reply to the whole list On Feb 9, 2007, at 8:39 AM, Charilaos Skiadas wrote: On Feb 9, 2007, at 8:13 AM, John Kane wrote: The problem is that my dataframe has 1,s in about 50% of the columns and I only want it to apply to a few specified columns. My explanation may

Re: [R] NEWBIE: @BOOK help?

2007-02-08 Thread Charilaos Skiadas
On Feb 8, 2007, at 11:07 AM, Zembower, Kevin wrote: In Henric's recent post, he included this output: @BOOK{R:Harrell:2001, AUTHOR = {Frank E. Harrell}, TITLE = {Regression Modeling Strategies, with Applications to Linear Models, Survival Analysis and Logistic

Re: [R] R in Industry

2007-02-08 Thread Charilaos Skiadas
On Feb 8, 2007, at 12:48 PM, Ben Fairbank wrote: If my company came to depend heavily on a fairly obscure R package (as we are contemplating doing), what guarantee is there that it will be available next month/year/decade? I know of none, nor would I expect one. I would imagine that if

Re: [R] Scope

2007-02-08 Thread Charilaos Skiadas
On Feb 8, 2007, at 4:52 PM, Roger Bivand wrote: Assigning to the global environment will overwrite objects unless one is careful, and even with years of experience only seems worth considering when no feasible alternative exists; on consideration, alternatives usually appear. Or to

[R] Reading expressions from character vectors

2007-02-04 Thread Charilaos Skiadas
Greetings, I have a problem that I am sure is very straightforward, but I just can't wrap my head around it. I've read the help pages on text, plotmath, expression, substitute, but somehow I can't find the answer to this simple question. Basically consider the following example: plot(

Re: [R] Reading expressions from character vectors

2007-02-04 Thread Charilaos Skiadas
I keep forgetting that this list doesn't default to reply-to-all ;). Sorry hadley, you'll get this twice. On Feb 4, 2007, at 11:39 AM, Charilaos Skiadas wrote: On Feb 4, 2007, at 11:19 AM, hadley wickham wrote: text( c(0.5,1.5), 0.5, parse(text=labels)) ? You need to parse the text

Re: [R] Reference to dataframe and contents

2007-02-04 Thread Charilaos Skiadas
On Feb 4, 2007, at 3:42 PM, Rene Braeckman wrote: My question is how to construct the equivalent of myDF$myCol that can be used as such. Or is there a better solution? I think what you want is ?with and wrapping the whole work you want to do in a function. Thanks. The help and

Re: [R] Double labels and scales

2007-02-02 Thread Charilaos Skiadas
On Feb 2, 2007, at 8:07 AM, Lorenzo Isella wrote: Dear All, Say you want to plot, on the same figure two quantities, concentration and temperature, both as function of the same variable. I'd like to be able to put a certain label and scale on the y axis on the left of the figure (referring

Re: [R] gsub regexp question

2007-01-27 Thread Charilaos Skiadas
On Jan 27, 2007, at 3:41 PM, Phillimore, Albert wrote: Dear R Users, I am trying to users gsub to remove multiple cases of square brackets and their different contents in a character string. A sample of such a string is shown below. However, I am having great difficulty understanding

Re: [R] efficient code. how to reduce running time?

2007-01-22 Thread Charilaos Skiadas
On Jan 21, 2007, at 8:11 PM, John Fox wrote: Dear Haris, Using lapply() et al. may produce cleaner code, but it won't necessarily speed up a computation. For example: X - data.frame(matrix(rnorm(1000*1000), 1000, 1000)) y - rnorm(1000) mods - as.list(1:1000) system.time(for (i in

Re: [R] efficient code. how to reduce running time?

2007-01-22 Thread Charilaos Skiadas
On Jan 22, 2007, at 10:39 AM, John Fox wrote: One thing that seems particularly striking in your results is the large difference between elapsed time and user CPU time, making me wonder what else was going on when you ran these examples. Yes, indeed there were a lot of other things

[R] Questions about xtable and print.xtable

2007-01-22 Thread Charilaos Skiadas
I have been using the wonderful xtable package lately, in combination with Sweave, and I have a couple of general questions along with a more particular one. I'll start with the particular question. I basically have a 1x3 array with column names but no row names. I want to create a latex

Re: [R] efficient code. how to reduce running time?

2007-01-21 Thread Charilaos Skiadas
On Jan 21, 2007, at 5:55 PM, miraceti wrote: Thank you all for lookin at it. I'll fix the code to preallocate the objects. and I wonder if there is a way to call anova on all the columns at the same time.. Right now I am calling (Y~V1, data) from V1 to V50 thru a loop. I tried (Y~.,

Re: [R] Integration + Normal Distribution + Directory Browsing Processing Questions

2007-01-21 Thread Charilaos Skiadas
On Jan 21, 2007, at 2:27 PM, Nils Hoeller wrote: Now I want R to read.table all files within a given directory and process them one by the other. ?list.files ?for Haris __ R-help@stat.math.ethz.ch mailing list

Re: [R] How to format R code in LaTex documents

2007-01-15 Thread Charilaos Skiadas
On Jan 15, 2007, at 8:42 AM, Benjamin Dickgiesser wrote: Hi, I am planning on putting some R script in an appendix of a LaTex document. Can anyone recommend me a way of how to format it? Is there a way to keep all line breaks without having to insert \\ in every single line? I think the

Re: [R] Controlling size of boxplot when it is added in a plot

2007-01-14 Thread Charilaos Skiadas
Sorry, meant to send this to the list. On Jan 14, 2007, at 4:28 PM, Charilaos Skiadas wrote: On Jan 14, 2007, at 5:50 AM, Chuck Cleland wrote: Try setting the boxwex argument instead: Thanks Chuck, that does indeed seem to work pretty well. I'm not quite sure what the best way

[R] Controlling size of boxplot when it is added in a plot

2007-01-13 Thread Charilaos Skiadas
them combined like this much? TIA Charilaos Skiadas Department of Mathematics Hanover College P.O.Box 108 Hanover, IN 47243 __ 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] How do I create an object in the Global environment from a function

2006-12-14 Thread Charilaos Skiadas
On Dec 14, 2006, at 7:42 AM, Rainer M Krug wrote: myfunc - function() b - 34 I would add a warning here. It is generally not a good idea for a function to have side-effects. In this case, if there is a globally defined value for b already, it will be overwritten. If this function is in a

Re: [R] tests for NULL objects

2006-11-29 Thread Charilaos Skiadas
On Nov 29, 2006, at 7:58 PM, Benilton Carvalho wrote: But that's okay, just a matter of adding an extra test (already done). I'm guessing it would be something like: all(is.na(v) | v==2) When I asked for clarification about the reasons for this, I assumed that: if all(v) is TRUE == any(v) is

Re: [R] Making a case for using R in Academia

2006-11-09 Thread Charilaos Skiadas
at a disadvantage. Is this really the case? Does anyone have any such statistics? Charilaos Skiadas Department of Mathematics Hanover College P.O.Box 108 Hanover, IN 47243 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Making a case for using R in Academia

2006-11-09 Thread Charilaos Skiadas
John (and everyone else), On Nov 9, 2006, at 4:20 PM, John Fox wrote: Dear Charilaos, It's very difficult to give definitive answers to the questions that you pose because we don't have any good data (at least as far as I know) about how widely R is used. Yes it certainly isn't an

[R] Making a case for using R in Academia

2006-11-08 Thread Charilaos Skiadas
, or in general any other resources that talk about R as a practical alternative to the other non-free statistical packages. Perhaps some statistics, or particular examples of use? Any links would be greatly appreciated. Thanks for any thoughts/input into this. Charilaos Skiadas Department