Re: [R] how to get current workspace name?

2007-03-24 Thread Duncan Murdoch
On 3/24/2007 1:10 AM, Aimin Yan wrote: Use getwd(), I can get current directory name. Now I want to get current workspace name, Does anyone know how to do that? It is search()[1]. If you mean instead the name of the file that was loaded on startup, as far as I know that's not available in

[R] bootstrapping of standard error estimates

2007-03-24 Thread MOHIEDDINE RAHMOUNI
Dear all, I have a question about the estimation of standard error estimates of coefficients in latent class finite mixture for polytomous variables using bootstrapping methods, Can one suggest what I should have for my analysis? I would like to know if I can use the function: resamples -

Re: [R] sampling from the unoform distrubuton over a convex hull

2007-03-24 Thread Duncan Murdoch
On 3/24/2007 1:43 AM, Ranjan Maitra wrote: Dear list, Does anyone have a suggestion (or better still) code for sampling from the uniform distribution over the convex hull of a set of points? Are you talking about two dimensional points, or higher dimensions? The suggestion below works for

[R] frequency tables and sorting by rowSum

2007-03-24 Thread Stefan Nachtnebel
Dear list, I have some trouble generating a frequency table over a number of vectors. Creating these tables over simple numbers is no problem with table() table(c(1,1,1,3,4,5)) 1 3 4 5 3 1 1 1 , but how can i for example turn: 0 1 0 0 0 1 0 1 0 1 0 0 0 1 0 1 0 0 into 0 0 1 1 1 0 0 2 0 1

[R] p values in lme4 package

2007-03-24 Thread Cristina Gomes
Dear R-users, I was wondering if anybody knows if it's possible to obtain a p value for the full model of a GLMM with the lme4 package. I was told that I should check whether the full model including all the predictor variables is significant before doing stepwise regression or further

Re: [R] frequency tables and sorting by rowSum

2007-03-24 Thread Liaw, Andy
1. This is probably overkill, but works: as.data.frame(table(as.data.frame(m))) V1 V2 V3 Freq 1 0 0 00 2 1 0 02 3 0 1 03 4 1 1 00 5 0 0 11 6 1 0 10 7 0 1 10 8 1 1 10 You can easily get rid of 0-frequency rows afterward. 2. Not sure

Re: [R] sampling from the unoform distrubuton over a convex hull

2007-03-24 Thread Ted Harding
On 24-Mar-07 05:43:06, Ranjan Maitra wrote: Dear list, Does anyone have a suggestion (or better still) code for sampling from the uniform distribution over the convex hull of a set of points? Many thanks and best wishes, Ranjan I was curious if anyone would come up with some ready-made

Re: [R] sampling from the unoform distrubuton over a convex hull

2007-03-24 Thread Alberto Vieira Ferreira Monteiro
Duncan Murdoch wrote: Suggestion: Find a rectangular region containing the hull, and sample uniformly there. Accept points that don't expand the hull of the original points. This is a feasible solution only in lower dimensions; the area of the convex hull can become exponentially small

Re: [R] Space for X and Y axis labels

2007-03-24 Thread Uwe Ligges
Your exampleisnot reproducible, but I guess you want to change the par(mar) setting ... Uwe Ligges Joseph Wakeling wrote: Hello all, I'm having a bit of a problem with x and y axis labels. Two things: first, if I want to create a plot with, plot.new() plot.window(.)

[R] Two Problems while trying to aggregate a dataframe

2007-03-24 Thread Delcour Libertus
Hello! Given is an Excel-Sheet with actually 11,000 rows and 9 columns. I want to work with the data in R. The contents are similar to my following example. I have a list with ID-number, personal name and two kinds of loan-values. I want to aggregate the list, that for each person only one row

Re: [R] Two Problems while trying to aggregate a dataframe

2007-03-24 Thread jim holtman
On 3/24/07, Delcour Libertus [EMAIL PROTECTED] wrote: Hello! Given is an Excel-Sheet with actually 11,000 rows and 9 columns. I want to work with the data in R. The contents are similar to my following example. I have a list with ID-number, personal name and two kinds of loan-values. I

Re: [R] Two Problems while trying to aggregate a dataframe

2007-03-24 Thread Gabor Grothendieck
Try this: aggregate(atest[3:4], atest[1:2], sum) Use a data base and SQL is you don't otherwise have enough computer resources. On 3/24/07, Delcour Libertus [EMAIL PROTECTED] wrote: Hello! Given is an Excel-Sheet with actually 11,000 rows and 9 columns. I want to work with the data in R.

Re: [R] Sys.setlocale(LC_CTYPE,fr_FR.UTF-8)

2007-03-24 Thread Prof Brian Ripley
On Sun, 11 Mar 2007, NOEL Yvonnick wrote: Dear R users, I'm trying to have a gWiddgetsRGtk2 script run under R-2.4.1. The script run OK under Linux but all accentuated characters appear as ? when the script is run under Windows. As Gtk+ requires UTF-8, I thought it was the source of the

Re: [R] Space for X and Y axis labels

2007-03-24 Thread Joseph Wakeling
Uwe Ligges wrote: Your exampleisnot reproducible, but I guess you want to change the par(mar) setting ... Sorry for not adding some extra stuff to make it work. I assumed there wasn't a need for reproducibility, just to let me know what command was missing. Anyway, thanks very much, par(mar)

Re: [R] Space for X and Y axis labels

2007-03-24 Thread Uwe Ligges
Joseph Wakeling wrote: Uwe Ligges wrote: Your exampleisnot reproducible, but I guess you want to change the par(mar) setting ... Sorry for not adding some extra stuff to make it work. I assumed there wasn't a need for reproducibility, just to let me know what command was missing.

Re: [R] sampling from the unoform distrubuton over a convex hull

2007-03-24 Thread Ted Harding
On 24-Mar-07 14:00:44, Ted Harding wrote: [...] Another possible approach (again in two dimensions) could be based on the following. First, if A, B, C are the vertices of a triangle, let (w1,w2,w3) be sampled from the 3-variate Dirichlet distribution with index (shape) parameters (1,1,1).

[R] Biometrics Latex template

2007-03-24 Thread Tony Yang
Hi, All; A question not related to R. I tried to use the biometrics Latex template from the journal homepage and found it does not work. Does anyone mind sharing your well-worked latex template? And I use Latex under Windows XP. Thank you in advance for your help. -- Best regards, Tony

Re: [R] prow blythe

2007-03-24 Thread Bernadine GMauricio
Our Last pick Doubled in 48 hours Check this company out CRITICAL Care N E W SYM-C-C-T-I Stron g B reccomended at 20 Cents This is projected to go to $1 This is a Real Business not a fly by night Get in Monday, Don't Regret later!! two free throws made it 109-73 in the waning seconds of the

Re: [R] Sweave question: prevent expansion of unevaluated reused code chunk

2007-03-24 Thread Duncan Murdoch
On 3/14/2007 11:39 AM, Kevin R. Coombes wrote: Hi, I don't know of a standard way to indicate this; I would have suggested combined,expand=FALSE (with expand=TRUE the default), except for the fact that Seth Falcon already suggested the same notation in his response...so I can only

Re: [R] Conversion from string to date type

2007-03-24 Thread Toby Gass
Hello, Andreas I'm glad the previous replies helped you solve your problem. I think your original problem, though, was caused by a typo. Note the comma between the month and the year in your script and the period between the month and the year in Jim Holtman's script. From Jim Holtman:

[R] Contatenating data frames with partial overlap in variable names

2007-03-24 Thread Daniel Folkinshteyn
Greetings to all. I need to concatenate data frames that do not have all the same variable names, there is only a partial overlap in the variables. So, for example, if i have two data frames, a and b, that look like the following: a a b 1 1 4 2 2 5 3 3 6 4 4 7 5 5 8 b c a 1 1 10 2 2 11 3 3

Re: [R] Contatenating data frames with partial overlap in variable names

2007-03-24 Thread Marc Schwartz
On Sat, 2007-03-24 at 21:47 -0400, Daniel Folkinshteyn wrote: Greetings to all. I need to concatenate data frames that do not have all the same variable names, there is only a partial overlap in the variables. So, for example, if i have two data frames, a and b, that look like the following:

Re: [R] Contatenating data frames with partial overlap in variable names

2007-03-24 Thread Daniel Folkinshteyn
on 03/24/2007 10:00 PM Marc Schwartz said the following: On Sat, 2007-03-24 at 21:47 -0400, Daniel Folkinshteyn wrote: Greetings to all. I need to concatenate data frames that do not have all the same variable names, there is only a partial overlap in the variables. So, for example, if i have

Re: [R] Contatenating data frames with partial overlap in variable names

2007-03-24 Thread hadley wickham
On 3/24/07, Daniel Folkinshteyn [EMAIL PROTECTED] wrote: Greetings to all. I need to concatenate data frames that do not have all the same variable names, there is only a partial overlap in the variables. So, for example, if i have two data frames, a and b, that look like the following: Have

Re: [R] Contatenating data frames with partial overlap in variable names

2007-03-24 Thread Marc Schwartz
On Sat, 2007-03-24 at 22:16 -0400, Daniel Folkinshteyn wrote: on 03/24/2007 10:00 PM Marc Schwartz said the following: On Sat, 2007-03-24 at 21:47 -0400, Daniel Folkinshteyn wrote: Greetings to all. I need to concatenate data frames that do not have all the same variable names, there is

Re: [R] Contatenating data frames with partial overlap in variable names

2007-03-24 Thread Daniel Folkinshteyn
on 03/24/2007 11:13 PM Marc Schwartz said the following: On Sat, 2007-03-24 at 22:16 -0400, Daniel Folkinshteyn wrote: on 03/24/2007 10:00 PM Marc Schwartz said the following: On Sat, 2007-03-24 at 21:47 -0400, Daniel Folkinshteyn wrote: Greetings to all. I need to concatenate data frames

Re: [R] Contatenating data frames with partial overlap in variable names

2007-03-24 Thread hadley wickham
On 3/24/07, Marc Schwartz [EMAIL PROTECTED] wrote: On Sat, 2007-03-24 at 22:16 -0400, Daniel Folkinshteyn wrote: on 03/24/2007 10:00 PM Marc Schwartz said the following: On Sat, 2007-03-24 at 21:47 -0400, Daniel Folkinshteyn wrote: Greetings to all. I need to concatenate data frames

Re: [R] objects of class matrix and mode list? [Broadcast]

2007-03-24 Thread Stephen Tucker
Hi Andy, I hadn't realized such objects (list matrices, list arrays, data frames with nested lists) existed before, but now that I do I am seeing the documentation with new eyes. I see that the pages for sapply(), lapply(), and class coercion functions are true to their word. Thanks, Stephen