Re: [R] two questions - function help and 32vs64 bit sessions

2014-07-21 Thread Fowler, Mark
: July 16, 2014 10:47 AM To: Fowler, Mark; r-h...@stat.math.ethz.ch Subject: Re: [R] two questions - function help and 32vs64 bit sessions On 14/07/2014, 11:42 AM, Fowler, Mark wrote: Hello, Two unrelated questions, and neither urgent. Windows 7, R 3.0.1. Using R Console, no fancy

Re: [R] two questions - function help and 32vs64 bit sessions

2014-07-21 Thread Duncan Murdoch
AM To: Fowler, Mark; r-h...@stat.math.ethz.ch Subject: Re: [R] two questions - function help and 32vs64 bit sessions On 14/07/2014, 11:42 AM, Fowler, Mark wrote: Hello, Two unrelated questions, and neither urgent. Windows 7, R 3.0.1. Using R Console, no fancy interface. The function

Re: [R] two questions - function help and 32vs64 bit sessions

2014-07-16 Thread Fowler, Mark
- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Jim Lemon Sent: July 15, 2014 12:17 AM To: r-help@r-project.org Subject: Re: [R] two questions - function help and 32vs64 bit sessions On Mon, 14 Jul 2014 01:42:54 PM Fowler, Mark wrote: Hello, Two

Re: [R] two questions - function help and 32vs64 bit sessions

2014-07-16 Thread Duncan Murdoch
On 14/07/2014, 11:42 AM, Fowler, Mark wrote: Hello, Two unrelated questions, and neither urgent. Windows 7, R 3.0.1. Using R Console, no fancy interface. The function help ultimately becomes lost to a session kept running for extended periods (days). I.e. with a new

Re: [R] two questions - function help and 32vs64 bit sessions

2014-07-15 Thread Fowler, Mark
12:17 AM To: r-help@r-project.org Subject: Re: [R] two questions - function help and 32vs64 bit sessions On Mon, 14 Jul 2014 01:42:54 PM Fowler, Mark wrote: Hello, Two unrelated questions, and neither urgent. Windows 7, R 3.0.1. Using R Console, no fancy interface

[R] two questions - function help and 32vs64 bit sessions

2014-07-14 Thread Fowler, Mark
Hello, Two unrelated questions, and neither urgent. Windows 7, R 3.0.1. Using R Console, no fancy interface. The function help ultimately becomes lost to a session kept running for extended periods (days). I.e. with a new session if you invoke the Help menu 'R functions (txt)...' it

Re: [R] two questions - function help and 32vs64 bit sessions

2014-07-14 Thread Jeff Newmiller
I don't know any definitive answer for either if your questions, but I have a comment that may explain why I have not encountered these issues. At one time I used to use RData files the way you are, but I discovered the value of re-running my analysis scripts from scratch regularly... as in

Re: [R] two questions - function help and 32vs64 bit sessions

2014-07-14 Thread Jim Lemon
On Mon, 14 Jul 2014 01:42:54 PM Fowler, Mark wrote: Hello, Two unrelated questions, and neither urgent. Windows 7, R 3.0.1. Using R Console, no fancy interface. The function help ultimately becomes lost to a session kept running for extended periods (days). I.e. with a new

Re: [R] two questions about xyplot

2013-09-23 Thread Richard Kwock
Hi, To answer your second question you can do something like this: p-xyplot(dvy ~ sessidx | case, group = numph, data=d66df, col = c(1:4), layout=c(1, 3), xlab= Sessions, ylab = Number of Seconds, type=l) update(p, panel=function(...){ panel.xyplot(...)

[R] two questions about xyplot

2013-09-23 Thread William Shadish
Dear R helpers, I am generating three artificial short interrupted time series datasets (single-case designs; call them Case 1, Case 2, Case 3) and then plotting them in xyplot. I will put the entire code below so you can reproduce. I have been unable to figure out how to do two things. 1. Each

Re: [R] two questions about xyplot

2013-09-23 Thread William Shadish
Dear Richard, your solution to the second question worked like a charm. Thanks! So much to learn about this stuff, but at least it is fun. On the first question, yes, I want a text to display the mean in each of the 12 panels. Will On 9/23/2013 11:23 AM, Richard Kwock wrote: Hi, To answer

Re: [R] two questions about xyplot

2013-09-23 Thread Richard Kwock
Hi, Getting text to show on the panel plots is a bit trickier, but doable. # append to the dataset the mean for each group and line d66df_mns - cbind(d66df, Means = c(rep(c(mn1, mn2, mn3), each = 6))) # set the y_lim to extend a bit further above the graph to allow for the means to be displayed

Re: [R] two questions about xyplot

2013-09-23 Thread William Shadish
Richard, This worked perfectly (adding # before update). Thank you so much for your help. I've bought a couple of books on R Graphics so I can learn this stuff better. Will On 9/23/2013 1:08 PM, Richard Kwock wrote: Hi, Getting text to show on the panel plots is a bit trickier, but

[R] Two questions about R2BayesX package

2012-10-05 Thread Shige Song
Dear All, I have two questions regarding the use of the R2BayesX package for Bayesian analysis. First, is it possible to generate predictions based on the fitted model? According to Gelman and Hill (2007, pp. 361-363), there are at least two ways to do this in BUGS: (1) generate additional data

[R] two questions about character manipulation

2012-09-16 Thread Özgür Asar
Dear all, I want to manipulate a character string such as ex-cbind(data$response1,data$response2) in R in two ways: 1) extracting the response1 portion of ex 2) replacing $ with . I am wondering that is it possible efficiently doing these in R? Best Ozgur -- View this message in

Re: [R] two questions about character manipulation

2012-09-16 Thread R. Michael Weylandt
On Sun, Sep 16, 2012 at 3:35 PM, Özgür Asar oa...@metu.edu.tr wrote: Dear all, I want to manipulate a character string such as ex-cbind(data$response1,data$response2) in R in two ways: 1) extracting the response1 portion of ex I'm not sure what you mean by portion -- if you just want

Re: [R] two questions about character manipulation

2012-09-16 Thread Rui Barradas
Hello, Try the following. 1) pattern - response. m - regexpr(pattern, ex) #gregexpr to get all response regmatches(ex, m) 2) gsub(\\$, \\., ex) Hope this helps, Rui Barradas Em 16-09-2012 15:35, Özgür Asar escreveu: Dear all, I want to manipulate a character string such as

Re: [R] two questions about character manipulation

2012-09-16 Thread Özgür Asar
Dear Rui Barradas and Michael Weylandt, Many thanks for your replies. My second question is solved now. But I think I did not expressed my first wish in a clear way Indeed, in ex-cbind(data$response1,data$response2), I want to extract the variable name between $ and , (corresponds to

Re: [R] two questions about character manipulation

2012-09-16 Thread Rui Barradas
Hello, This should do it. You can collapse the first two instructions, but I've left it like this for clarity. s - unlist(strsplit(ex, [,)[:blank:]])) s - gsub(^.*\\$, , s) s[nchar(s) 0] Rui Barradas Em 16-09-2012 17:26, Özgür Asar escreveu: Dear Rui Barradas and Michael Weylandt, Many

Re: [R] two questions about character manipulation

2012-09-16 Thread arun
-project.org Cc: Sent: Sunday, September 16, 2012 12:26 PM Subject: Re: [R] two questions about character manipulation Dear Rui Barradas and Michael Weylandt, Many thanks for your replies. My second question is solved now. But I think I did not expressed my first wish in a clear way Indeed, in ex

Re: [R] two questions re: the use of lattice (Q1 SOLVED, not Q2)

2012-07-22 Thread Ranjan Maitra
Dear friends, Many thanks to Jim (Holtman) and David (Carlson) for their quick responses: Q1 is now solved. There are two almost equivalent ways for doing this. They follow: library(lattice) z - rbind(cbind(z, 0), cbind(z, 20), cbind(z, 40)) z - cbind(z, rnorm(n = nrow(z))) z - as.data.frame(z)

Re: [R] two questions re: the use of lattice (Q1 SOLVED, not Q2)

2012-07-22 Thread Peter Ehlers
On 2012-07-22 09:02, Ranjan Maitra wrote: Dear friends, Many thanks to Jim (Holtman) and David (Carlson) for their quick responses: Q1 is now solved. There are two almost equivalent ways for doing this. They follow: library(lattice) z - rbind(cbind(z, 0), cbind(z, 20), cbind(z, 40)) z -

Re: [R] two questions re: the use of lattice (Q1 SOLVED, not Q2)

2012-07-22 Thread Ranjan Maitra
On Sun, 22 Jul 2012 15:04:36 -0700 Peter Ehlers ehl...@ucalgary.ca wrote: On 2012-07-22 09:02, Ranjan Maitra wrote: Dear friends, Many thanks to Jim (Holtman) and David (Carlson) for their quick responses: Q1 is now solved. There are two almost equivalent ways for doing this. They

Re: [R] two questions re: the use of lattice (Q1 SOLVED, not Q2)

2012-07-22 Thread Peter Ehlers
On 2012-07-22 15:58, Ranjan Maitra wrote: On Sun, 22 Jul 2012 15:04:36 -0700 Peter Ehlers ehl...@ucalgary.ca wrote: On 2012-07-22 09:02, Ranjan Maitra wrote: Dear friends, Many thanks to Jim (Holtman) and David (Carlson) for their quick responses: Q1 is now solved. There are two almost

Re: [R] two questions re: the use of lattice (Q1 SOLVED, not Q2)

2012-07-22 Thread Ranjan Maitra
[I had to dig back to see what your Q2 was. It's good to keep context.] Try this: p - bwplot(Error~Method | sigma + INU, data = z, scales = list(rot=90), horiz = FALSE, layout = c(5,3), col = red) require(latticeExtra) useOuterStrips(p,

Re: [R] two questions re: the use of lattice (Q1 SOLVED, not Q2)

2012-07-22 Thread Peter Ehlers
On 2012-07-22 18:03, Ranjan Maitra wrote: [I had to dig back to see what your Q2 was. It's good to keep context.] Try this: p - bwplot(Error~Method | sigma + INU, data = z, scales = list(rot=90), horiz = FALSE, layout = c(5,3), col = red) require(latticeExtra)

Re: [R] two questions re: the use of lattice (Q1 SOLVED, not Q2)

2012-07-22 Thread Ranjan Maitra
On Sun, 22 Jul 2012 18:58:39 -0700 Peter Ehlers ehl...@ucalgary.ca wrote: On 2012-07-22 18:03, Ranjan Maitra wrote: [I had to dig back to see what your Q2 was. It's good to keep context.] Try this: p - bwplot(Error~Method | sigma + INU, data = z, scales =

Re: [R] two questions re: the use of lattice (Q1 SOLVED, not Q2)

2012-07-22 Thread Peter Ehlers
On 2012-07-22 19:09, Ranjan Maitra wrote: On Sun, 22 Jul 2012 18:58:39 -0700 Peter Ehlers ehl...@ucalgary.ca wrote: On 2012-07-22 18:03, Ranjan Maitra wrote: [I had to dig back to see what your Q2 was. It's good to keep context.] Try this: p - bwplot(Error~Method | sigma + INU, data

Re: [R] two questions re: the use of lattice (Q1 SOLVED, not Q2)

2012-07-22 Thread Ranjan Maitra
Just reset the levels of z$sigma (and also redefine sigmaExpr): z$sigma - factor(z$sigma, levels = c(5,10,20,30,50)) # new levels order sigmaExprList - lapply(as.numeric(levels(z$sigma)), function(s) bquote(sigma == .(s)))

Re: [R] two questions re: the use of lattice (Q1 SOLVED, not Q2)

2012-07-22 Thread Bert Gunter
There's a typo below. It's Deepayan Sarkar. -- Bert On Sun, Jul 22, 2012 at 9:55 PM, Bert Gunter bgun...@gene.com wrote: inline. -- Bert On Sun, Jul 22, 2012 at 8:26 PM, Ranjan Maitra maitra.mbox.igno...@inbox.com wrote: Just reset the levels of z$sigma (and also redefine sigmaExpr):

Re: [R] two questions re: the use of lattice (Q1 SOLVED, not Q2)

2012-07-22 Thread Ranjan Maitra
On Sun, 22 Jul 2012 22:05:14 -0700 Bert Gunter gunter.ber...@gene.com wrote: On Sun, Jul 22, 2012 at 8:26 PM, Ranjan Maitra maitra.mbox.igno...@inbox.com wrote: Just reset the levels of z$sigma (and also redefine sigmaExpr): z$sigma - factor(z$sigma, levels =

[R] two questions re: the use of lattice

2012-07-21 Thread Ranjan Maitra
Dear friends, I have two questions regarding the use of lattice. First some code: ## begin code z - cbind(rep(c(BIC, ICL, s_v, Q_v, sig-q, s_lsk, s_lML, s_mlsk, s_mlML, s_la8, s_haar), each = 250), rep(c(5, 10, 20, 30, 50), each = 50)) z - rbind(cbind(z, 0), cbind(z, 20),

Re: [R] two questions re: the use of lattice

2012-07-21 Thread jim holtman
Answer to you first question, try this at the start of bwplot to specify ordering: bwplot(Error~factor(Method, levels = unique(Method)) On Sat, Jul 21, 2012 at 2:42 PM, Ranjan Maitra maitra.mbox.igno...@inbox.com wrote: Dear friends, I have two questions regarding the use of lattice. First

Re: [R] two questions re: the use of lattice

2012-07-21 Thread David L Carlson
Subject: Re: [R] two questions re: the use of lattice Answer to you first question, try this at the start of bwplot to specify ordering: bwplot(Error~factor(Method, levels = unique(Method)) On Sat, Jul 21, 2012 at 2:42 PM, Ranjan Maitra maitra.mbox.igno...@inbox.com wrote: Dear

Re: [R] two questions re: the use of lattice

2012-07-21 Thread David L Carlson
Take a look at useOuterStrips() in package latticeExtra. --- David -Original Message- From: David L Carlson [mailto:dcarl...@tamu.edu] Sent: Saturday, July 21, 2012 6:51 PM To: 'jim holtman'; 'Ranjan Maitra' Cc: 'r-help@r-project.org' Subject: RE: [R] two questions re: the use

[R] Two Questions

2011-04-20 Thread Stephen P Molnar
Sorry for the somewhat nondescript subject line, but I have two questions: 1.What is a really good book on R for a nonprogrammer? 2. How do I open more than one R Graphics: Device 2(ACTIVE). That what is the R command that I can use to keep more than one plot open. I am

Re: [R] Two Questions

2011-04-20 Thread Duncan Murdoch
On 20/04/2011 9:23 AM, Stephen P Molnar wrote: Sorry for the somewhat nondescript subject line, but I have two questions: 1.What is a really good book on R for a nonprogrammer? Any book that teaches you the basics of programming would be good, it doesn't need to be about R. If you

Re: [R] Two Questions

2011-04-20 Thread David Winsemius
On Apr 20, 2011, at 9:23 AM, Stephen P Molnar wrote: Sorry for the somewhat nondescript subject line, but I have two questions: 1.What is a really good book on R for a nonprogrammer? 2. How do I open more than one R Graphics: Device 2(ACTIVE). That what is the R command

Re: [R] Two Questions

2011-04-20 Thread John Kane
From: Stephen P Molnar s.mol...@sbcglobal.net Subject: [R] Two Questions To: R-help r-help@r-project.org Received: Wednesday, April 20, 2011, 9:23 AM 1.        What is a really good book on R for a nonprogrammer? Have a look at the books listed on the R website. Books by Peter Dalgaard

Re: [R] Two Questions

2011-04-20 Thread Greg Snow
Sent: Wednesday, April 20, 2011 7:23 AM To: R-help Subject: [R] Two Questions Sorry for the somewhat nondescript subject line, but I have two questions: 1.What is a really good book on R for a nonprogrammer? 2. How do I open more than one R Graphics: Device 2(ACTIVE

[R] Two questions about metacharacter in regexprs and function return

2011-04-07 Thread Tuexy
for the script, please kindly see the script below. At line 10 and line 13, my problems occurs. The first one is I try to retrieve the gene official name from a column of a table. The pattern of official name is something starting with gene_name. For detail problems, please see the according

[R] Two questions about metacharacter in regexprs and function return

2011-04-07 Thread Tuexy
for the script, please kindly see the script below. At line 10 and line 13, my problems occurs. The first one is I try to retrieve the gene official name from a column of a table. The pattern of official name is something starting with gene_name. For detail problems, please see the according

Re: [R] two questions

2010-09-09 Thread Iasonas Lamprianou
Research Fellow Department of Education The University of Manchester Oxford Road, Manchester M13 9PL, UK Tel. 0044 161 275 3485 iasonas.lampria...@manchester.ac.uk --- On Wed, 8/9/10, Greg Snow greg.s...@imail.org wrote: From: Greg Snow greg.s...@imail.org Subject: RE: [R] two questions

Re: [R] two questions

2010-09-08 Thread Greg Snow
...@r- project.org] On Behalf Of Iasonas Lamprianou Sent: Tuesday, September 07, 2010 12:25 AM To: juan xiong; Dennis Murphy Cc: r-help@r-project.org Subject: Re: [R] two questions By the way, ordinal regression would require huge datasets because my dependent variable has around 20 different

Re: [R] two questions

2010-09-07 Thread Iasonas Lamprianou
iasonas.lampria...@manchester.ac.uk --- On Tue, 7/9/10, Dennis Murphy djmu...@gmail.com wrote: From: Dennis Murphy djmu...@gmail.com Subject: Re: [R] two questions To: juan xiong xiongjuan2...@gmail.com Cc: David Winsemius dwinsem...@comcast.net, r-help@r-project.org, Iasonas Lamprianou lampria

Re: [R] two questions

2010-09-07 Thread Iasonas Lamprianou
of Manchester Oxford Road, Manchester M13 9PL, UK Tel. 0044 161 275 3485 iasonas.lampria...@manchester.ac.uk --- On Tue, 7/9/10, Dennis Murphy djmu...@gmail.com wrote: From: Dennis Murphy djmu...@gmail.com Subject: Re: [R] two questions To: juan xiong xiongjuan2...@gmail.com Cc: David

Re: [R] two questions

2010-09-07 Thread Dennis Murphy
Hi: On Mon, Sep 6, 2010 at 5:26 PM, juan xiong xiongjuan2...@gmail.com wrote: Maybe Friedman test The Friedman test corresponds to randomized complete block designs, not general two-way classifications. David's advice is sound, but also investigate proportional odds models (e.g., lrm in Prof.

[R] two questions

2010-09-06 Thread Iasonas Lamprianou
Dear friends, two questions (1) does anyone know if there are any non-parametric equivalents of the two-way ANOVA in R? I have an ordinal non-normally distributed dependent variable and two factors (gender and city of birth). Normally, one would try a two-way anova, but if R has any

Re: [R] two questions

2010-09-06 Thread David Winsemius
The usual least-squares methods are fairly robust to departures from normality. Furthermore, it is the residuals that are assumed to be normally distributed (not the marginal distributions that you are probably looking at) , so it does not sound as though you have yet examined the data

Re: [R] two questions

2010-09-06 Thread juan xiong
Maybe Friedman test On Mon, Sep 6, 2010 at 4:47 PM, David Winsemius dwinsem...@comcast.netwrote: The usual least-squares methods are fairly robust to departures from normality. Furthermore, it is the residuals that are assumed to be normally distributed (not the marginal distributions that

[R] Two questions on R and cairo/Cairo

2010-08-09 Thread r-help
On a headless Linux server running R 2.9.2 I would like to enable support for cairo, but capabilities(cairo) keeps on giving me FALSE. Is it possible what I am trying to do or can this only be achieved at R build time? I do not have administrative rights on this server. After compiling

Re: [R] two questions about PLOT

2010-06-01 Thread Jie TANG
thanks for your reply. I have tried to use rseek.org.But still some problems. When I add axis(4) and axis(1,at=1:6,labels=gradeinfo$gradenam),the old tick or labels still are there as shown in the figure,how could I delete them( the old tick information in x-axis and left y axis ) My script is

Re: [R] two questions about PLOT

2010-06-01 Thread Ivan Calandra
It may not be the nicest solution, but my suggestion should work. Have you tried plot(type=n,...), plotting the axes with axis(), and plotting the data with lines()? Ivan Le 6/1/2010 10:10, Jie TANG a écrit : thanks for your reply. I have tried to use rseek.org.But still some problems. When

Re: [R] two questions about PLOT

2010-06-01 Thread Jim Lemon
On 06/01/2010 12:44 AM, Jie TANG wrote: here ,I want to plot two lines in one figure.But I have two problems 1) how to move one of the y-axis to be the right ? I tried to the commandaxis(2),But I failed. 2) how to add the axis information correctly.Since I have use the cmommand

[R] two questions about PLOT

2010-05-31 Thread Jie TANG
here ,I want to plot two lines in one figure.But I have two problems 1) how to move one of the y-axis to be the right ? I tried to the commandaxis(2),But I failed. 2) how to add the axis information correctly.Since I have use the cmommand axis(1,at=1:6,labels=gradeinfo$gradenam) but it seems

Re: [R] two questions about PLOT

2010-05-31 Thread Ivan Calandra
Hi, Not sure it is the best solution, but I would create the layout of the plot part by part: plot(type=n) #does not plot axis(1, at=1:6,...) #set the x-axis at the bottom axis(4,...) #set the y-axis on the right. I'm not sure that's what you were looking for, didn't really understand it

Re: [R] two questions about PLOT

2010-05-31 Thread Jannis
I would wote this question one of the most often asked questions here on that list ;-). Try searching the help archiwe (www.rseek.org) and you will find solutions. I would guess that you need to use something like: axis(4) as the sides of the plot are always numbered from

Re: [R] Two Questions on R (call by reference and pre-compilation)

2010-05-05 Thread Ruihong Huang
Thank all of you! On 05/05/2010 12:08 AM, Steve Lianoglou wrote: Hi, On Tue, May 4, 2010 at 5:05 PM, Ruihong Huang ruihong.hu...@wiwi.hu-berlin.de wrote: Hi All, I have two questions on R. Could you please explain them to me? Thank you! 1) When call a function, R typically copys the

Re: [R] Two Questions on R (call by reference and pre-compilation)

2010-05-05 Thread Seth
As far as large data sets, I've just discovered readLines and writeLines functions. I'm using it now to read in single rows, calculate things on them, and then write a single row to a file. -- View this message in context:

[R] Two Questions on R (call by reference and pre-compilation)

2010-05-04 Thread Ruihong Huang
Hi All, I have two questions on R. Could you please explain them to me? Thank you! 1) When call a function, R typically copys the values to formal arguments (call by value). This is very cost, if I would like to pass a huge data set to a function. Is there any situations that R doesn't copy

Re: [R] Two Questions on R (call by reference and pre-compilation)

2010-05-04 Thread Steve Lianoglou
Hi, On Tue, May 4, 2010 at 5:05 PM, Ruihong Huang ruihong.hu...@wiwi.hu-berlin.de wrote: Hi All, I have two questions on R. Could you please explain them to me? Thank you! 1) When call a function, R typically copys the values to formal arguments (call by value). This is technically

Re: [R] Two Questions on R (call by reference and pre-compilation)

2010-05-04 Thread Duncan Murdoch
On 04/05/2010 5:05 PM, Ruihong Huang wrote: Hi All, I have two questions on R. Could you please explain them to me? Thank you! 1) When call a function, R typically copys the values to formal arguments (call by value). This is very cost, if I would like to pass a huge data set to a function.

Re: [R] two questions for R beginners

2010-03-25 Thread Steve Powell
For psychologists like me (possibly for others) by far the most time-consuming detail is variable labels. I need them for just about every analysis I do. We can use special packages like Hmisc and its function spss.get to import the labels, but then nearly all the other packages don't respect the

Re: [R] two questions for R beginners

2010-03-25 Thread Jim Lemon
On 03/26/2010 02:58 PM, Steve Powell wrote: For psychologists like me (possibly for others) by far the most time-consuming detail is variable labels. I need them for just about every analysis I do. We can use special packages like Hmisc and its function spss.get to import the labels, but then

[R] Two questions, first about contingency tables, and second about table () and data.frame (), from a visually impaired user.

2010-03-13 Thread Faiz Rasool
Hi all, I want to make a contingency table in R. I want to tabulate two variables, one as the independent and second as the dependent variable. The IV has two categories, namely, birth complications, and no birth complications. The frequency of birth complication category is fifty, and the

Re: [R] Two questions, first about contingency tables, and second about table () and data.frame (), from a visually impaired user.

2010-03-13 Thread Tal Galili
:* Sunday, March 14, 2010 1:04 AM *Subject:* Re: [R] Two questions, first about contingency tables, and second about table () and data.frame (), from a visually impaired user. Hi Faiz, Two ideas: 1) do you have any NA's ? 2) can you send an example of the code/ file? That might help people

Re: [R] Two questions, first about contingency tables, and second about table () and data.frame (), from a visually impaired user.

2010-03-13 Thread Joshua Wiley
Dear Faiz, I believe that your basic issue is that you are trying to use frequencies directly. table() needs all the arguments to be of the same length, because it counts the frequencies from raw data. So for two variables, you need pairs of scores indicating whether there was a birth

Re: [R] two questions for R beginners

2010-03-04 Thread David A.G
, but couldn´t keep the R-devel versions updated. Some more step-by-step would help sometimes. Thanks for a great tool! Date: Tue, 2 Mar 2010 12:44:23 -0600 From: keo.orms...@gmail.com To: landronim...@gmail.com CC: r-help@r-project.org; pbu...@pburns.seanet.com Subject: Re: [R] two questions

Re: [R] two questions for R beginners

2010-03-04 Thread Kevin Wright
Patrick, 1. Implicit intercepts. Implicit intercepts are not too bad for the main model, but they creep in occasionally in strange places where they might not be expected. For example, in some of the variance structures specified in lme, (~x) automatically expands to (~1+x). Venables said in

Re: [R] two questions for R beginners

2010-03-03 Thread Patrick Burns
Ove Hufthammer; r-h...@stat.math.ethz.ch Subject: Re: [R] two questions for R beginners Please take what follows not as an ad hominem statement, but rather as an attempt to improve what is already an excellent program, that has been built as a result of many, many hours of dedicated work

Re: [R] two questions for R beginners

2010-03-03 Thread Petr PIKAL
John Sorkin jsor...@grecc.umaryland.edu napsal dne 01.03.2010 15:19:10: If it looks like a duck and quacks like a duck, it ought to behave like a duck. To the user a matrix and a dataframe look alike . . . except a dataframe can Well, matrix looks like a data.frame only on the first

Re: [R] two questions for R beginners

2010-03-03 Thread John Sorkin
Petr, On the other hand . . . mat-matrix(1:12, 3,4) dat-as.data.frame(mat) mat [,1] [,2] [,3] [,4] [1,]147 10 [2,]258 11 [3,]369 12 dat V1 V2 V3 V4 1 1 4 7 10 2 2 5 8 11 3 3 6 9 12 What you are demonstrating by your example is the

Re: [R] two questions for R beginners

2010-03-03 Thread Petr PIKAL
Hi that is why I consider matrix is just a vector with dimensions and data.frame is a rectangular structure similar to Excel table. That saved me a lot of surprises. But I must admit I am not a real beginner nowadays although I still learn when using R, reading help list and trying sometimes

Re: [R] two questions for R beginners

2010-03-03 Thread William Dunlap
: Wednesday, March 03, 2010 2:44 AM To: r-help@r-project.org Subject: Re: [R] two questions for R beginners I think Duncan's example of a list that is a matrix is a compelling argument not to do the change. A matrix that is a list with both names and dimnames *is* probably rare

Re: [R] two questions for R beginners

2010-03-03 Thread John Sorkin
wdunlap tibco.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Patrick Burns Sent: Wednesday, March 03, 2010 2:44 AM To: r-help@r-project.org Subject: Re: [R] two questions for R beginners I think Duncan's example of a list

Re: [R] two questions for R beginners

2010-03-03 Thread David Winsemius
: [R] two questions for R beginners I think Duncan's example of a list that is a matrix is a compelling argument not to do the change. A matrix that is a list with both names and dimnames *is* probably rare (but certainly imaginable). A matrix that is a list is not so rare, and the proposed double

Re: [R] two questions for R beginners

2010-03-03 Thread Jim Lemon
On 03/04/2010 08:20 AM, David Winsemius wrote: ... Perhaps the print methods for data.frame and matrix should announce the class of the object being printed. Yes! An enthusiastic vote for highlighting this fundamental distinction. There is already quite enough conflation of these two very

Re: [R] two questions for R beginners

2010-03-03 Thread kMan
of the niceties. Sincerely, KeithC. -Original Message- From: John Sorkin [mailto:jsor...@grecc.umaryland.edu] Sent: Tuesday, March 02, 2010 4:46 AM To: Karl Ove Hufthammer; r-h...@stat.math.ethz.ch Subject: Re: [R] two questions for R beginners Please take what follows not as an ad

Re: [R] two questions for R beginners

2010-03-02 Thread Karl Ove Hufthammer
On Tue, 2 Mar 2010 08:58:25 +1300 Peter Alspach peter.alsp...@plantandfood.co.nz wrote: This brings up another confusion for new users. Simply typing the object name at the command line gives just one view of the object (that provided by print()). Good point. Any good introduction to R

Re: [R] two questions for R beginners

2010-03-02 Thread Karl Ove Hufthammer
On Mon, 01 Mar 2010 10:00:07 -0500 Duncan Murdoch murd...@stats.uwo.ca wrote: Suppose X is a dataframe or a matrix. What would you expect to get from X[1]? What about as.vector(X), or as.numeric(X)? All this of course depends on type of object one is speaking of. There are plenty of

Re: [R] two questions for R beginners

2010-03-02 Thread Liviu Andronic
On Mon, Mar 1, 2010 at 11:49 PM, Liviu Andronic landronim...@gmail.com wrote: On 3/1/10, Keo Ormsby keo.orms...@gmail.com wrote:  Perhaps my biggest problem was that I couldn't (and still haven't) seen *absolute beginners* documents. there was once a link posted on r-sig-teaching that would

Re: [R] two questions for R beginner

2010-03-02 Thread Brandon Zicha
What were your biggest misconceptions or stumbling blocks to getting up and running with R? Easy. I terms of materials I have been unable to find good books that introduce users to R from the perspective of someone familiar only with packages like SPSS or STATA, or not familiar with

Re: [R] two questions for R beginners

2010-03-02 Thread John Sorkin
Please take what follows not as an ad hominem statement, but rather as an attempt to improve what is already an excellent program, that has been built as a result of many, many hours of dedicated work by many, many unpaid, unsung volunteers. It troubles me a bit that when a confusing aspect of

Re: [R] two questions for R beginner

2010-03-02 Thread Paul Hiemstra
Brandon Zicha wrote: What were your biggest misconceptions or stumbling blocks to getting up and running with R? Easy. I terms of materials I have been unable to find good books that introduce users to R from the perspective of someone familiar only with packages like SPSS or STATA, or not

Re: [R] two questions for R beginner

2010-03-02 Thread Karl Ove Hufthammer
On Tue, 2 Mar 2010 12:31:45 +0100 Brandon Zicha brandon.zi...@ua.ac.be wrote: Easy. I terms of materials I have been unable to find good books that introduce users to R from the perspective of someone familiar only with packages like SPSS or STATA, Have you read these books: R for SAS

Re: [R] two questions for R beginners

2010-03-02 Thread Duncan Murdoch
John Sorkin wrote: Please take what follows not as an ad hominem statement, but rather as an attempt to improve what is already an excellent program, that has been built as a result of many, many hours of dedicated work by many, many unpaid, unsung volunteers. It troubles me a bit that when

Re: [R] two questions for R beginner

2010-03-02 Thread Albert-Jan Roskam
to guess. ~~ --- On Tue, 3/2/10, Brandon Zicha brandon.zi...@ua.ac.be wrote: From: Brandon Zicha brandon.zi...@ua.ac.be Subject: Re: [R] two questions for R beginner To: r-help@r-project.org Date: Tuesday, March 2, 2010, 12:31 PM

Re: [R] two questions for R beginners

2010-03-02 Thread Gabor Grothendieck
On Tue, Mar 2, 2010 at 7:27 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: John Sorkin wrote: Please take what follows not as an ad hominem statement, but rather as an attempt to improve what is already an excellent program, that has been built as a result of many, many hours of dedicated

Re: [R] two questions for R beginner

2010-03-02 Thread Paul Hiemstra
Brandon Zicha wrote: Hey Paul, Hey Brandon, (adding R-help in the cc) I agree with you that the documentation of R could be better, especially with more examples in code showing not only the common cases, but also more esoteric cases. It would be great if everyone invested a lot of time to

Re: [R] two questions for R beginners

2010-03-02 Thread Duncan Murdoch
On 02/03/2010 11:53 AM, William Dunlap wrote: -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of John Sorkin Sent: Tuesday, March 02, 2010 3:46 AM To: Karl Ove Hufthammer; r-h...@stat.math.ethz.ch Subject: Re: [R] two

Re: [R] two questions for R beginners

2010-03-02 Thread John Sorkin
in the future. John John Sorkin jsor...@grecc.umaryland.edu -Original Message- From: William Dunlap wdun...@tibco.com To: John Sorkin jsor...@grecc.umaryland.edu To: Karl Ove Hufthammer k...@huftis.org To: r-h...@stat.math.ethz.ch Sent: 3/2/2010 11:53:45 AM Subject: RE: [R] two questions for R

Re: [R] two questions for R beginners

2010-03-02 Thread Keo Ormsby
Liviu Andronic escribió: On Mon, Mar 1, 2010 at 11:49 PM, Liviu Andronic landronim...@gmail.com wrote: On 3/1/10, Keo Ormsby keo.orms...@gmail.com wrote: Perhaps my biggest problem was that I couldn't (and still haven't) seen *absolute beginners* documents. there was once a

Re: [R] two questions for R beginner

2010-03-02 Thread David Winsemius
On Mar 2, 2010, at 8:01 AM, Paul Hiemstra wrote: Brandon Zicha wrote: Hey Paul, Hey Brandon, (adding R-help in the cc) I agree with you that the documentation of R could be better, especially with more examples in code showing not only the common cases, but also more esoteric cases. It

Re: [R] two questions for R beginners

2010-03-01 Thread Karl Ove Hufthammer
On Thu, 25 Feb 2010 17:31:19 + Patrick Burns pbu...@pburns.seanet.com wrote: * What were your biggest misconceptions or stumbling blocks to getting up and running with R? I didn't have any major stumbling blocks, but even after years of using R I didn't have a clear concept of what

Re: [R] two questions for R beginners

2010-03-01 Thread Karl Ove Hufthammer
On Fri, 26 Feb 2010 11:56:10 -0800 (PST) Jack Siegrist jack...@eden.rutgers.edu wrote: What I think would be very helpful is an introduction to programming using R Here you are: A First Course in Statistical Programming with R

Re: [R] two questions for R beginners

2010-03-01 Thread Karl Ove Hufthammer
On Mon, 1 Mar 2010 11:02:59 +0100 Karl Ove Hufthammer k...@huftis.org wrote: * What were your biggest misconceptions or stumbling blocks to getting up and running with R? Also I found it quite confusing that One more thing that still trips me up sometimes. '$' works on data frames but

Re: [R] two questions for R beginners

2010-03-01 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 01.03.2010 11:26:40: On Mon, 1 Mar 2010 11:02:59 +0100 Karl Ove Hufthammer k...@huftis.org wrote: * What were your biggest misconceptions or stumbling blocks to getting up and running with R? Also I found it quite confusing that One

Re: [R] two questions for R beginners

2010-03-01 Thread Duncan Murdoch
Karl Ove Hufthammer wrote: On Fri, 26 Feb 2010 11:56:10 -0800 (PST) Jack Siegrist jack...@eden.rutgers.edu wrote: What I think would be very helpful is an introduction to programming using R Here you are: A First Course in Statistical Programming with R

Re: [R] two questions for R beginners

2010-03-01 Thread Duncan Murdoch
Karl Ove Hufthammer wrote: On Mon, 1 Mar 2010 11:02:59 +0100 Karl Ove Hufthammer k...@huftis.org wrote: * What were your biggest misconceptions or stumbling blocks to getting up and running with R? Also I found it quite confusing that One more thing that still trips me up

Re: [R] two questions for R beginners

2010-03-01 Thread Ted Harding
On 01-Mar-10 11:09:51, Petr PIKAL wrote: Hi r-help-boun...@r-project.org napsal dne 01.03.2010 11:26:40: On Mon, 1 Mar 2010 11:02:59 +0100 Karl Ove Hufthammer k...@huftis.org wrote: * What were your biggest misconceptions or stumbling blocks to getting up and running with R?

  1   2   >