Re: [R] Sparse KMeans/KDE/Nearest Neighbors?

2010-02-25 Thread Tal Galili
Hello Manyu, I am guessing you refer to the netflix dataset. Try looking at ways to represent large data sets, that is, the list from here: http://cran.r-project.org/web/views/HighPerformanceComputing.html Here it is: *Large memory and out-of-memory data* - The biglm

[R] different types graphs

2010-02-25 Thread chinna
library(RODBC) ch- odbcConnect(durga) sqlQuery(ch, paste(SELECT * from emp)) sqlQuery(ch, (SELECT * from xyz)) store revenue year_y 1 bigbazar 7878752008 2 more 87876 2008 plot(revenue ~ year_y, data=xyz, pch=16) can i get any

[R] What is assign attribute?

2010-02-25 Thread rkevinburton
I am just curious. Every once and a while I see an attribute attached to an object called assign. What meaning does this have? For example: dist ~ speed, data=cars forms a matrix like: num [1:50, 1:2] 1 1 1 1 1 1 1 1 1 1 ... - attr(*, dimnames)=List of 2 ..$ : chr [1:50] 1 2 3 4 ... ..$

[R] What is assign attribute?

2010-02-25 Thread rkevinburton
I am just curious. Every once and a while I see an attribute attached to an object called assign. What meaning does this have? For example: dist ~ speed, data=cars forms a matrix like: num [1:50, 1:2] 1 1 1 1 1 1 1 1 1 1 ... - attr(*, dimnames)=List of 2 ..$ : chr [1:50] 1 2 3 4 ... ..$

Re: [R] different types graphs

2010-02-25 Thread Ivan Calandra
Hi! Here are a few tips to start finding what you need (in R): apropos(pie) RSiteSearch(pie) Try also: ?pie ?barplot I guess there are hundreds of commands to do every type of graphics, but you can start there. The manual Using R for Data Analysis and Graphics from JH Maindonald is also

Re: [R] different types graphs

2010-02-25 Thread Detlef Steuer
On Thu, 25 Feb 2010 00:48:04 -0800 (PST) chinna durgache...@gmail.com wrote: library(RODBC) ch- odbcConnect(durga) sqlQuery(ch, paste(SELECT * from emp)) sqlQuery(ch, (SELECT * from xyz)) store revenue year_y 1 bigbazar 7878752008 2 more

[R] how to fast extract values from different list elements

2010-02-25 Thread Heym, Peter-Paul
hi, I have a list L having more than 14000 Elements, each of these contains an array of about length 1200. L[[1]][26:30] # e.g. print 5 entries of first element of L [1] 0.000 6.7982652 114.4737184 89.7328239 3.2001664 Furthermore I get two arrays A and B of same length as input.

[R] locfit: max number of predictors?

2010-02-25 Thread Keith Jewell
Hi All, In another thread Andy Liaw, who CRAN lists as locfit maintainer; said: quote From: Liaw, Andy andy_l...@merck.com To: Guy Green guygr...@netvigator.com; r-help@r-project.org Subject: Re: Alternatives to linear regression with multiple variables Date: 22 February 2010 17:50 You can try

Re: [R] problem with looping on sqlSave()

2010-02-25 Thread Ivan Calandra
Hi! I've tried it, but the problem is that each element has a different size, with makes rbind() useless. Is there then a function/package that allows appending data in an Excel sheet? I've searched already for a few packages, but none (except, in theory, RODBC) can append. Any suggestion?

[R] Help with split.

2010-02-25 Thread rkevinburton
I read in the documentation for split: ‘split’ divides the data in the vector ‘x’ into the groups defined by ‘f’. But I am still unclear as to its function. Take for example: x - 1:4 split(x, c(0,1)) $`0` [1] 1 3 $`1` [1] 2 4 I am not clear on how this result is reached. Thank you. Kevin

Re: [R] problem with looping on sqlSave()

2010-02-25 Thread Dieter Menne
Ivan Calandra wrote: I've tried it, but the problem is that each element has a different size, with makes rbind() useless. Assuming that size means different number of columns, then appending is not valid, because it would change the structure of the table, and with ODBC we are in the

[R] Updating a hexbinplot

2010-02-25 Thread Marcin Kozak
Dear all, Considering this simple example of hexbinplot: mixdata - data.frame(x = c(rnorm(5000), rnorm(5000,4,1.5)), y = c(rnorm(5000), rnorm(5000,2,3)), a = gl(2, 5000)) fig - hexbinplot(y ~ x | a, mixdata) print(fig) update(fig, colramp = BTC) produces a

Re: [R] different types graphs

2010-02-25 Thread Jim Lemon
On 02/25/2010 07:48 PM, chinna wrote: library(RODBC) ch- odbcConnect(durga) sqlQuery(ch, paste(SELECT * from emp)) sqlQuery(ch, (SELECT * from xyz)) store revenue year_y 1 bigbazar 7878752008 2 more 87876 2008 plot(revenue ~

Re: [R] problem with looping on sqlSave()

2010-02-25 Thread Ivan Calandra
What if size means both columns and rows? Here is one of such lists: test - structure(list(m = structure(c(0.090909090909091, 0.181818181818182, 0.272727272727273, 0.363636363636364, 0.454545454545455, 0.545454545454545, 0.636363636363636, 0.727272727272727, 0.818181818181818,

Re: [R] problem with looping on sqlSave()

2010-02-25 Thread Dieter Menne
Ivan Calandra wrote: What if size means both columns and rows? Then you are not longer in the database world, and should use one of the half dozen other methods to write to Excel, either native, via Perl (portable) or RCOM. Search R-search for write Excel. Dieter -- View this message

Re: [R] Odp: Subset Question

2010-02-25 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 25.02.2010 08:22:48: This shall work. What really are values of region? What does str(eu08$region) tell you about it? If it is really factor, what are really its levels? What does level(eu08$region) show? My thoughts were also that it would

[R] Odp: different types graphs

2010-02-25 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 25.02.2010 09:48:04: library(RODBC) ch- odbcConnect(durga) sqlQuery(ch, paste(SELECT * from emp)) sqlQuery(ch, (SELECT * from xyz)) store revenue year_y 1 bigbazar 7878752008 2 more

Re: [R] problem with looping on sqlSave()

2010-02-25 Thread Ivan Calandra
As I said earlier, none of the packages I have found (dataframes2xls, WriteXLS, xlsReadWrite, xlsx) to export to xls allow appending on the same sheet. So at the end, write.csv() is more flexible for my use. Do you know if the RExcel add-on would be useful in my case? I took a look at the

Re: [R] multicore in R

2010-02-25 Thread Mario Valle
Why don't use the mclapply() function? It takes care of everything. mario On 25-Feb-10 8:56, dikshie wrote: Hi, i have a function: zz- (constrOptim(c(.5,0), fr, grr, ui=rbind(c(-1,0),c(1,-1)), ci=c(-0.9,0.1))) i can get the result by using command (for example):

Re: [R] angle phase mapping

2010-02-25 Thread Magali teurlai
Hi all, sorry, here is the pdf and I re post my question : could anyone give me a clue for the name of a function that would allow me to create the same kind of plot as the attached image in R? I know how to create a map (shapefile polygons), I just want to add the phase information as

[R] Help with Beta Distribution and Transformation method

2010-02-25 Thread tbmcea
The following are problems for my Data Analysis course. The professor has allowed us to use internet help sites such as these to solve the problems since he didn't teach us how to use R in class. 1. I have learned how many random numbers must be simulated for the Beta distribution using

Re: [R] Bimodal distribution

2010-02-25 Thread Samor Gandhi
Hi Ingmar, Thank you for your reply! How to fit a mixture distribution to the data, do you mean by using mixed model? Regards, Samor --- On Wed, 24/2/10, Ingmar Visser i.vis...@uva.nl wrote: From: Ingmar Visser i.vis...@uva.nl Subject: Re: [R] Bimodal distribution To: Samor Gandhi

[R] Barplot colours

2010-02-25 Thread koj
Hi all, my plotbase (height) is a 2x2 matrix and I want to draw a plot with different colours. I used beside = FALSE and so the elements (1,1) and (2,1) are in one bar and the elements (1,2) and (2,2) are in the other bar (stacked). This is no problem, if the first row has one colour and the

Re: [R] problem with looping on sqlSave()

2010-02-25 Thread Dieter Menne
Ivan Calandra wrote: As I said earlier, none of the packages I have found (dataframes2xls, WriteXLS, xlsReadWrite, xlsx) to export to xls allow appending on the same sheet. Please check again. WriteXLS has a parameter where to start writing. D -- View this message in context:

[R] how to install rattle for data mining

2010-02-25 Thread chinna
library(rattle) Loading required package: pmml Loading required package: XML Error: package 'XML' could not be loaded In addition: Warning message: In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) : there is no package called 'XML' i have installed glade

Re: [R] export tables to Excel files

2010-02-25 Thread Erich Neuwirth
OK, I think dirung the disuccion we mixed up the directions of transfer. The example I sent was Excel - R For R - Excel you need something like RInterface.GetDataframe dfname, Worksheets(wsname).Range(A1) dfname, wsname and the cell refence (A1) have to be given for each dataframe you want to

Re: [R] Barplot colours

2010-02-25 Thread Jim Lemon
On 02/25/2010 08:59 PM, koj wrote: Hi all, my plotbase (height) is a 2x2 matrix and I want to draw a plot with different colours. I used beside = FALSE and so the elements (1,1) and (2,1) are in one bar and the elements (1,2) and (2,2) are in the other bar (stacked). This is no problem, if the

[R] data mining

2010-02-25 Thread chinna
how can we achieve data mining using R Project. how to install Rattle gui for R project. can anyone please help me. i want to forecast the results . Thanks in advance. -- View this message in context: http://n4.nabble.com/data-mining-tp1568872p1568872.html Sent from the R help mailing list

Re: [R] how to install rattle for data mining

2010-02-25 Thread Cedrick W. Johnson
A little googling goes a LONG way: [1]http://datamining.togaware.com/survivor/Install_MS_Windows.html Explicity states how to install the 'XML' package required by R. References 1. http://datamining.togaware.com/survivor/Install_MS_Windows.html

Re: [R] Help with split.

2010-02-25 Thread Peter Dalgaard
rkevinbur...@charter.net wrote: I read in the documentation for split: ‘split’ divides the data in the vector ‘x’ into the groups defined by ‘f’. But I am still unclear as to its function. Take for example: x - 1:4 split(x, c(0,1)) $`0` [1] 1 3 $`1` [1] 2 4 I am not clear on how this

Re: [R] What is assign attribute?

2010-02-25 Thread Peter Dalgaard
rkevinbur...@charter.net wrote: I am just curious. Every once and a while I see an attribute attached to an object called assign. What meaning does this have? For example: dist ~ speed, data=cars forms a matrix like: num [1:50, 1:2] 1 1 1 1 1 1 1 1 1 1 ... - attr(*, dimnames)=List of 2

[R] Rearranging entries in a matrix

2010-02-25 Thread Juliet Ndukum
I have a matrix, called data. I used the code below to rearrange the data such that the first column remains the same, but the y value falls under either columns 2, 3 or 4, depending on the value of z. If z=1 for example, then the value of y will fall under column 2, if z=2, the value of y

[R] adonis(), design

2010-02-25 Thread Kay Cichini
hello list, i'd appreciate help regarding formula expression in adonis(), package vegan. i'm interested in the effect of an impact on species composition and if this effect is the same for different sites. i have an impact survey with plot pairs, one plot with impact the other with similar

Re: [R] R and Wordpress

2010-02-25 Thread Steve Lianoglou
Hi, On Wed, Feb 24, 2010 at 11:40 PM, C.H. chainsawti...@gmail.com wrote: Dear R helpers, I have a question regarding wordpress and R. I have asked this question in Wordpress support ( http://wordpress.org/support/topic/368312 ) but there is no answer so far, maybe the R community can have

Re: [R] how to fast extract values from different list elements

2010-02-25 Thread Tom Short
On Thu, Feb 25, 2010 at 4:10 AM, Heym, Peter-Paul ph...@ipb-halle.de wrote: this works fine but it is very slow (since A and B can be very large and I have to repeat this about 5000 times). I would like to make this faster using e.g. apply or lapply but I didn't get it work using these

Re: [R] Rearranging entries in a matrix

2010-02-25 Thread Dennis Murphy
Hi: Loop? We don't need no steeenking loop!! Here's a way to create a matrix with matrix indexing that you can attach with x to create a new data frame. Calling your original data frame df, m - matrix(NA, nrow = nrow(df), ncol = 3) # Create the indices of the initialized matrix to modify idx -

Re: [R] Rearranging entries in a matrix

2010-02-25 Thread Henrique Dallazuanna
Try this also: reshape(cbind(Id = 1:8, DF), v.names = 'y', timevar = 'z', direction = 'wide', idvar = 'Id')[-1] On Thu, Feb 25, 2010 at 10:17 AM, Juliet Ndukum jpnts...@yahoo.com wrote: I have a matrix, called data. I used the code below to rearrange the data such that the first column

Re: [R] Zero inflation model - pscl package

2010-02-25 Thread Achim Zeileis
On Wed, 24 Feb 2010, Nicholas M. Caruso wrote: I have some questions regarding Zero Inflation Poisson models. I am using count data to analyze abundance trends of salamanders. However, I have surveys which differ in the amount of effort (i.e. the number of people searching and amount of time

Re: [R] Reading a password-protected Excel workbook

2010-02-25 Thread Dieter Menne
Dimitri Shvorob wrote: I try reading a password-protected spreadsheet with RODBC, passing a file or an ODBC source to odbcConnect, e.g. con = odbcConnect(dsn = mywkbk, uid = , pwd = mypwd) but get Could not decrypt file pop-up error message. Not really:

Re: [R] latent class factor analysis (LCFA) in R?

2010-02-25 Thread Friedrich Leisch
On Tue, 23 Feb 2010 13:43:44 +0100, Ingmar Visser (IV) wrote: Dear Mark, I don't know whether it has ... But there are some packages that provide functionality for specifying mixtures of user-defined distributions, in your case a factor model. package flexmix has an example of

[R] behavior of seq_along

2010-02-25 Thread Dale Steele
I'm trying to understand the behavior of seq_along in the following example: x - 1:5; sum(x) y - 6:10; sum(y) data - c(x,y) S - sum( data[seq_along(x)] ) S T - sum( data[seq_along(y)] ) T Why is T != sum(y) ? __ R-help@r-project.org mailing list

Re: [R] problem with looping on sqlSave()

2010-02-25 Thread Ivan Calandra
I've checked in the package WriteXLS and couldn't find such parameter (I hope I didn't overlook anything!). However write.xls() in xlsReadWrite package has such parameter. I've tried it and the problem is that, even though I can make the writing start at the last line, it will overwrite the

Re: [R] Subset Question

2010-02-25 Thread Erik Iverson
Chertudi wrote: Hello helpful R folks, First off, please forgive my English. Second, I'm new with R, I've searched the archives about subsets, and I haven't found quite the help I need. I'm currently analysing a population survey whose data set has about 15000 households (the

Re: [R] latent class factor analysis (LCFA) in R?

2010-02-25 Thread Friedrich Leisch
Hi, We (i.e. Bettina Grün) have some experimental code for mixtures of factor analyzers in flexmix, because we needed it for one paper. We have not released it yet because the code is not very well tested (and we do have concerns about identification of such models, but that's a different

[R] Building R packages in Windows 7

2010-02-25 Thread Eric Ferreira
Dear useRs, I'm having trouble building R packages in Windows 7 regarding HTML help Workshop. Pointing PATH to c:\Program Files\HTML help Workshop does work in Windows (e.g. Vista) and does not in Windows 7. Some tips?? Kind regards, -- Dr Eric B Ferreira Exact Sciences Department Federal

Re: [R] behavior of seq_along

2010-02-25 Thread Dieter Menne
Dale Steele wrote: x - 1:5; sum(x) y - 6:10; sum(y) data - c(x,y) S - sum( data[seq_along(x)] ) S T - sum( data[seq_along(y)] ) T If in doubt, divide and conquer: seq_along(x) [1] 1 2 3 4 5 seq_along(y) [1] 1 2 3 4 5 You expected that the second vector is 6,7... Dieter --

Re: [R] behavior of seq_along

2010-02-25 Thread Henrique Dallazuanna
Because, data[seq_along(x)] == data[seq_along(y)], You need this: sum(data[length(x) + seq_along(y)]) On Thu, Feb 25, 2010 at 11:02 AM, Dale Steele dale.w.ste...@gmail.com wrote: I'm trying to understand the behavior of seq_along in the following example: x - 1:5; sum(x) y - 6:10; sum(y)

Re: [R] angle phase mapping

2010-02-25 Thread David Winsemius
On Feb 25, 2010, at 5:51 AM, Magali teurlai wrote: Hi all, sorry, here is the pdf and I re post my question : could anyone give me a clue for the name of a function that would allow me to create the same kind of plot as the attached image in R? I know how to create a map (shapefile

Re: [R] problem with looping on sqlSave()

2010-02-25 Thread Marc Schwartz
Just to confirm, WriteXLS() does not have such a parameter, but write.xls() in the xlsReadWRite package does. As you have noted however, none of these approaches are really designed to enable flexible appending to an existing Excel file. As I believe Dieter noted in an earlier post, your best

Re: [R] reducing data.frame

2010-02-25 Thread John Kane
Perhaps the reshape package? It's just about impossible to read your data layout. Could you resubmit the example using dput()? Thanks --- On Thu, 2/25/10, AC Del Re de...@wisc.edu wrote: From: AC Del Re de...@wisc.edu Subject: [R] reducing data.frame To: r-help@r-project.org Received:

Re: [R] Building R packages in Windows 7

2010-02-25 Thread Duncan Murdoch
On 25/02/2010 9:06 AM, Eric Ferreira wrote: Dear useRs, I'm having trouble building R packages in Windows 7 regarding HTML help Workshop. Pointing PATH to c:\Program Files\HTML help Workshop does work in Windows (e.g. Vista) and does not in Windows 7. Some tips?? We don't use the HTML

Re: [R] behavior of seq_along

2010-02-25 Thread David Winsemius
On Feb 25, 2010, at 9:02 AM, Dale Steele wrote: I'm trying to understand the behavior of seq_along in the following example: x - 1:5; sum(x) y - 6:10; sum(y) data - c(x,y) S - sum( data[seq_along(x)] ) S T - sum( data[seq_along(y)] ) T Why is T != sum(y) ? Look at seq_along(y)

[R] error using pvcm() on unbalanced panel data

2010-02-25 Thread Liviu Andronic
Dear all I am trying to fit Variable Coefficients Models on Unbalanced Panel Data. I managed to fit such models on balanced panel data (the example from the plm vignette), but I failed to do so on my real, unbalanced panel data. I can reproduce the error on a modified example from the vignette:

[R] Reading a password-protected Excel workbook

2010-02-25 Thread Dimitri Shvorob
I try reading a password-protected spreadsheet with RODBC, passing a file or an ODBC source to odbcConnect, e.g. con = odbcConnect(dsn = mywkbk, uid = , pwd = mypwd) but get Could not decrypt file pop-up error message. Can anyone help? Thank you. -- View this message in context:

[R] mtext with at=NULL

2010-02-25 Thread Ulrike Feldmann
Hello, in the help of mtext I found at: If ‘length(at)==0’ (the default), the location will be determined by ‘adj’ But if I use mtext( hello world, at=NULL) there comes the following error message: Fehler in mtext(hallo Welt, side = 3, adj = NA, at = NULL) : 'at' mit Länge 0 angegeben So

[R] export results

2010-02-25 Thread Wendy
Hi all, I am looping through a function for 100 time in the middle of my code, and I want to output the results from this function. Is there a way to write the results into a txt or csv fil? For example, I write the results from the first loop to the first column of a spreadsheet and the

Re: [R] error using pvcm() on unbalanced panel data

2010-02-25 Thread Liviu Andronic
On 2/25/10, Liviu Andronic landronim...@gmail.com wrote: I can reproduce the error on a modified example from the vignette: require(plm) data(Hedonic) Hed - pvcm(mv ~ crim + zn + indus + chas + nox + rm + age + dis +rad + tax + ptratio + blacks + lstat, Hedonic, model = within,index =

Re: [R] mtext with at=NULL

2010-02-25 Thread Duncan Murdoch
On 25/02/2010 8:58 AM, Ulrike Feldmann wrote: Hello, in the help of mtext I found at: If ‘length(at)==0’ (the default), the location will be determined by ‘adj’ But if I use mtext( hello world, at=NULL) there comes the following error message: Fehler in mtext(hallo Welt, side = 3, adj = NA,

[R] Odp: export results

2010-02-25 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 25.02.2010 12:42:46: Hi all, I am looping through a function for 100 time in the middle of my code, and I want to output the results from this function. Is there a way to write the results into a txt or csv fil? For example, I write the

[R] How to extract one of four plots in a linear regression model

2010-02-25 Thread FMH
Dear All, A linear regression model could be fitted by using lm function and the plot function can be used to check the assumption of the model. The help menu shows few instances on suitable coding for fitting such a linear model. In addition, four different plots could be extracted

Re: [R] Building R packages in Windows 7

2010-02-25 Thread Duncan Murdoch
On 25/02/2010 10:40 AM, Eric Ferreira wrote: Dear Duncan Thank so much for your reply. Actually, I'm using the latest version of R and the problem persists. What do you use instead of HTML Help Workshop for newer R versions? We just produce text and HTML help pages on demand, and LaTeX

[R] How to do: Correlation with blocks (or - repeated measures ?!) ?

2010-02-25 Thread Tal Galili
Hello dear R help group, I have the following setup to analyse: We have about 150 subjects, and for each subject we performed a pair of tests (under different conditions) 18 times. The 18 different conditions of the test are complementary, in such a way so that if we where to average over the

[R] How to add a title to represent four different plot in lm function

2010-02-25 Thread FMH
Dear All, A linear regression model could be fitted by using lm function and the plot function can be used to check the assumptions of the model. The example is as followed. require(graphics) ## Annette Dobson (1990) An Introduction to Generalized Linear Models. ## Page 9: Plant Weight Data.

Re: [R] Building R packages in Windows 7

2010-02-25 Thread Duncan Murdoch
On 25/02/2010 10:56 AM, Eric Ferreira wrote: This is my first package. I'm just getting started doing that, following the steps described on you website... I really don't know how I asking for CHMs to be produced, sorry. All I can suggest is that you need to be less stingy with information.

Re: [R] How to extract one of four plots in a linear regression model

2010-02-25 Thread Alain Guillet
Hi, You can extract a plot in using the option which in specifying the number of the plot (from 1 to 6). For example: plot(lm.D9, which=1) Regards, Alain Guillet On 25-Feb-10 16:50, FMH wrote: Dear All, A linear regression model could be fitted by using lm function and the plot

Re: [R] data mining

2010-02-25 Thread Tal Galili
It depends on what you want to do. Start by looking at: http://cran.r-project.org/web/views/ http://cran.r-project.org/web/views/There are also some nice startup tutorials on google, start from that... Tal Contact Details:---

Re: [R] Odp: export results

2010-02-25 Thread jim holtman
If your data can fit in memory, consider creating a list of the intermediate values and then 'cbind'ing the result into a matrix that you want to write out. result - lapply(1:100, function(x) your function ) # if everything is the same size result - do.call(cbind, result) On Thu, Feb

Re: [R] Use 2 ifelse to sort data

2010-02-25 Thread Greg Snow
There is the %% operator in the TeachingDemos package that allows comparisons like: 5 %% a %% 10 But in this case it is not needed (and in this case it takes more key strokes than 5 a a 5, so may not be worth it). -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain

Re: [R] Normal distribution (Lillie.test())

2010-02-25 Thread Greg Snow
You should probably read fortune(117) and fortune(234) (and possibly some of the original discussions that lead to the fortunes). Reading the help page for the SnowsPenultimateNormalityTest function (TeachingDemos package) may also help. If you are happy with the plots, but still feel the

[R] error in lmLists in lme4 package (bug?)

2010-02-25 Thread Elizabeth Purdom
Hello, I am trying to use lmLists in the lme4 package and copying over very standard code from the nlme package given in 'Mixed-Effects Models in S and S-Plus'. It appears to not accept an 'I(age-11)' in the formula, though it will accept the formula with out the subtraction of 11 from age.

Re: [R] Reading a password-protected Excel workbook

2010-02-25 Thread Gabor Grothendieck
Use RDCOMClient or rcom to open it and then use RODBC to read it. On Thu, Feb 25, 2010 at 7:26 AM, Dimitri Shvorob dimitri.shvo...@gmail.com wrote: I try reading a password-protected spreadsheet with RODBC, passing a file or an ODBC source to odbcConnect, e.g. con = odbcConnect(dsn = mywkbk,

Re: [R] Single character input without Enter

2010-02-25 Thread Greg Snow
The getGraphicsEvent function only works on windows (at least last time I checked), so if you are working only on windows, you can use that. If you want something that works cross platform, then the tcltk solution is a possibility. Your original question did not indicate if you would be

Re: [R] Normal distribution (Lillie.test())

2010-02-25 Thread Greg Snow
Install and load the fortunes package first, then run fortune(117), etc. Then run fortune() quite a few times for possible enlightenment (or at least mild entertainment). Do your NoiseGenerotors need to generate exactly normal data (they don't, see SnowsPenultimateNormalityTest), or is there

Re: [R] Normal distribution (Lillie.test())

2010-02-25 Thread Ravi Varadhan
May be you should have said: Normality tests are standard farce in a host of statistical texts. Ravi. --- Ravi Varadhan, Ph.D. Assistant Professor, The Center on Aging and Health Division of Geriatric Medicine

Re: [R] two questions for R beginners

2010-02-25 Thread Clint Bowman
I started using statistical software with the commercial product S+ when I obtained a new HP735 workstation. We kept the S+ license going for a number of years until I heard about R. It was an easy transition and because I have been proficient in fortran and perl, the scripting came

Re: [R] Bimodal distribution

2010-02-25 Thread Greg Snow
You could use: library(TeachingDemos) x - c(rnorm(1000,0,1),rnorm(1000,3,1)) TeachingDemos:::vis.test( x, TeachingDemos:::vt.normhist ) Then click on the plot that looks most different. Sorry about needing TeachingDemos::: for now, the functions were accidentally left out of the NAMESPACE

Re: [R] Building R packages in Windows 7

2010-02-25 Thread Duncan Murdoch
On 25/02/2010 11:49 AM, Eric Ferreira wrote: Ok, I'm working under: Windows 7 Professional 32bits, 4 GB RAM, 320 GB HD, Intel Core 2 Duo processor R 2.10.1 I've installed: Rtools211 MikteX 2.8 HTML Help Workshop Setting my PATH to:

Re: [R] angle phase mapping

2010-02-25 Thread Greg Snow
Look at the my.symbols function in the TeachingDemos package. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of

Re: [R] Minimum Spanning Trees

2010-02-25 Thread Steve Lianoglou
Hi, On Thu, Feb 25, 2010 at 12:16 PM, harunpirim harunpi...@gmail.com wrote: Hi, I need to find all minimum spanning trees of an unweighted graph. Is there a way in R to do that? If you're working with graphs in R, you'll probably want to see what the igraph library has to offer. For

[R] read.table (trying one more time)

2010-02-25 Thread Mestat
Hey listers, I've posted this doubt other day... But I am still having a hard time... I have a MAC and I am not getting how to use the read.table command... At the bottom of the FINDER application I have the following path: Macintosh HDUsuáriosUserMarcioUdeMTravail DirigéDataMU284 Population.txt

Re: [R] Help with simple bootstrap test

2010-02-25 Thread Robert A LaBudde
The boot() function in the 'boot' package expects to find a function for the statistic with two arguments: The data object plus a row index object. You don't indicate enough to see how you will be resampling. It you sum all elements in your table, resampling would have to be one of: 1. A

Re: [R] two questions for R beginners

2010-02-25 Thread Patrick Burns
Apparently I need to explain the lazy and impatient comment. No offence was intended (quite the contrary). The meaning of it is that the higher your level of frustration, the more valuable your comments are likely to be to me. On 25/02/2010 17:31, Patrick Burns wrote: * What were your biggest

Re: [R] two questions for R beginners

2010-02-25 Thread Liviu Andronic
On 2/25/10, Patrick Burns pbu...@pburns.seanet.com wrote: * What were your biggest misconceptions or stumbling blocks to getting up and running with R? * What documents helped you the most in this initial phase? I especially want to hear from people who are lazy and impatient. I'm

[R] nested design

2010-02-25 Thread ixi10
This is a nested design where team is nested in group. Method is fixed, while team and group are random. Is this the correct R code for this? gunload.aov - aov(rounds ~ method+group + Error((team %in% group)/method),data=gunload, qr=T) -- View this message in context:

[R] Minimum Spanning Trees

2010-02-25 Thread harunpirim
Hi, I need to find all minimum spanning trees of an unweighted graph. Is there a way in R to do that? Thanks -- View this message in context: http://n4.nabble.com/Minimum-Spanning-Trees-tp1569351p1569351.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] two questions for R beginners

2010-02-25 Thread Greg Snow
Patrick, I would add one more question: * where did you look for help expecting answers, but did not find them? If you add hubris to laziness and impatience, you have Larry Wall's 3 virtues of a programmer. To new users of R who may not understand why Patrick is asking: Patrick Burns is the

Re: [R] How to add a title to represent four different plot in lm function

2010-02-25 Thread Greg Snow
Try something like: par(oma=c(0,0,3,0)) your plotting commands here mtext(your text here, outer=TRUE Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From:

Re: [R] How to fill in a region with different patterns?

2010-02-25 Thread Greg Snow
The rect function will draw a rectangle and can fill it with diagonal lines at specified angle and density. But before you do that, really consider if and why you want to. Using the diagonal lines became popular when the only way to get quality graphics was with a pen plotter (mechanical arm

Re: [R] Single character input without Enter

2010-02-25 Thread Dieter Menne
Greg Snow-2 wrote: The playSudoku function in the sudoku package has 2 examples/methods of responding to single key strokes, whether those methods will work for your application or not depends on what you are trying to do. Thanks, Greg, it boils down to the rather basic

Re: [R] Inverse function

2010-02-25 Thread Greg Snow
?uniroot -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of li li Sent: Wednesday, February 24, 2010 2:31 PM To:

Re: [R] Normal distribution (Lillie.test())

2010-02-25 Thread Bosken
Hi, Thanks for your reaction. The purpose of my test is to check if my NoiseGenerators really are Normal Distributed en witch circuit is the best! So I need some good test to do this. But what with: Fortune(117) and fortune(234), can't find anything about it.. Thanks for the help! Bosken --

Re: [R] Restructure some data

2010-02-25 Thread William Dunlap
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Doran, Harold Sent: Thursday, February 25, 2010 10:35 AM To: r-help@r-project.org Subject: [R] Restructure some data Suppose I have a data frame like dat below. For some

[R] Help with simple bootstrap test

2010-02-25 Thread xonix
Hi all Forgive me, I'm a total R newbie, and this seems to be a straightforward simple bootstrap problem, but after a whole day of trying to figure out how to do it I'm ready to give up. Part of the problem is that every example and every help page seems to be about doing something more far more

Re: [R] Odp: How to read percentage and currency data?

2010-02-25 Thread Greg Snow
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Hrishi Mittal Sent: Wednesday, February 24, 2010 8:56 AM To: r-help@r-project.org Subject: Re: [R] Odp: How to read percentage and currency data? [snip] It's a shame that

Re: [R] Alternatives to linear regression with multiple variables

2010-02-25 Thread Greg Snow
Well, the help page for the loess function says that the formula can include up to 4 predictor variables. There are also additive models (mgcv or gam (or other) package). -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111

[R] Linear models interaction

2010-02-25 Thread gauravbhatti
My data looks like following: cera3[i, ] batch lcl29 pdt Untreated 3.185867 1 0 0 Untreated.4 3.185867 0 0 0 LCL29 4.357552 1 1 0 LCL29.6 3.446256 0 1 0 PDT 2.765535 1 0 1 PDT.5 3.584963

Re: [R] How to fill in a region with different patterns?

2010-02-25 Thread baptiste auguie
Hi, If you are curious you might like to try a highly experimental Grid function I wrote some time ago, library(grid) source(http://gridextra.googlecode.com/svn/trunk/R/patternGrob.r;) grid.newpage() grid.pattern(x=seq(1/6, 5/6, length=6), width=unit(1/8,npc), height=unit(0.5,npc),

Re: [R] read.table (trying one more time)

2010-02-25 Thread David Winsemius
On Feb 25, 2010, at 3:10 PM, Mestat wrote: Hey listers, I've posted this doubt other day... But I am still having a hard time... I have a MAC and I am not getting how to use the read.table command... At the bottom of the FINDER application I have the following path: Macintosh

[R] Restructure some data

2010-02-25 Thread Doran, Harold
Suppose I have a data frame like dat below. For some context, this is the format that represents student's taking a computer adaptive test. first.item is the first item that student was administered and then score.1 is the student's response to that item and so forth. item.pool - paste(item,

Re: [R] How to add a title to represent four different plot in lm function

2010-02-25 Thread Tal Galili
Hi there, Try this: par(mfrow=c(2,2)) for( i in 1:4 ) plot(1:10) mtext(Title,side=3,outer=TRUE,padj=3) Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) |

  1   2   >