Re: [R] "non-numeric argument to binary operator"

2011-06-14 Thread the_big_kowalski
"Most likely reason is that the number of unique values in the rows of habs is not the same." Yes, I think that is the problem, thank you. How would I write the code to include 0s in the matrix, ie, I want to have a record of when 1, 2, or 3 does not get sampled, to come up with a frequency of e

[R] animation error

2011-06-14 Thread emorway
Hello, While running the following code I encountered a bit of a funny error. First the code: library(animation) ani.options(convert = shQuote('C:/Program Files/ImageMagick-6.7.0-Q16/convert.exe')) plot.ani<-function() { for (ts in 1:730){ dat<-read.table(paste("c:/temp/ConcProfile_",ts,

[R] How to include multiple random effects in 'lme' function

2011-06-14 Thread karena
How to include multiple random effects in a 'lme' function? For example, I want to set up 'days' and 'subject' as my random effects, library(nlme) fm <- lme(trait~time+money, random=~days|subject, data=example) However, if I have the following SAS code: --

Re: [R] Invalid Regular Expression

2011-06-14 Thread Jeff Newmiller
You didn't follow the posting guidelines and provide reproducible code, limiting both response accuracy and desire to help. However, your zip code regular expression string ends with a | symbol, suggesting that your vector of zip codes has an empty string at the end. (I can't resist asking whet

Re: [R] R 2.13.0 on windows 7 x32 - always requires admin to run

2011-06-14 Thread Jeff Newmiller
Reinstall it. Most people prefer to install it using an account with administrator privileges, but don't run the install using the "Run As Administrator" option, and don't re-run the install if windows suggests doing that. Install libraries locally (%HOMEPATH%\R\win-library\2.13 should be the d

Re: [R] xyplot Legend Title and Position

2011-06-14 Thread Dennis Murphy
Hi: Part of the problem is that you have a point in the upper right corner of your plot, so one way around it is to expand the y-range. Try this: xyplot(Yield ~ Date, groups=Machine, ylim = c(7, 22), auto.key=list(title="Machine", corner = c(0.95, 1), cex=1.0), par.settings = l

Re: [R] Calling R from Java

2011-06-14 Thread Jamie Olson
You might have better luck with the rJava mailing list: http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel Jamie Olson School of Computer Science Carnegie Mellon University 5000 Forbes Ave. Pittsburgh, PA 152

[R] xyplot Legend Title and Position

2011-06-14 Thread Justin McBride
Dear R Community, I'm using xyplot in Lattice with a legend and a title on the legend. The title on legend is being cut off, as can be seen by running the code below. The legend is on the right, but I would like to get to the top right of the graphics window. Is there a way to get the legend ti

Re: [R] "non-numeric argument to binary operator"

2011-06-14 Thread Peter Langfelder
Not sure ho to run the code since nn is not defined. Most likely reason is that the number of unique values in the rows of habs is not the same. That makes the tables produced in the apply command of different length and apply returns a list instead of a matrix, which makes the t() or the division

Re: [R] BIZARRE results from wilcox.test()

2011-06-14 Thread Jeremy Miles
The results weren't BIZARRE (or even bizarre). You didn't understand them, but that doesn't make them bizarre. (I didn't understand them either, but thanks to the replies, now I do). Why not send something more similar to your dataset to ensure you get relevant answers ? Jeremy On 14 June 20

Re: [R] BIZARRE results from wilcox.test()

2011-06-14 Thread Dr. D. P. Kreil (Boku)
Dear Mr or Ms genecleaner, I think you will find that Daniel's suggested explanation, the use of a normal approximation, fits well with your observation regarding the "exact" option. So I cannot see why you feel bullied, I found the replies that you received from the list topical and helpful. Sin

[R] "non-numeric argument to binary operator"

2011-06-14 Thread the_big_kowalski
Hello, For reasons unclear to me I am getting above error message when I change the value of b in the following code: rm(list=ls()) library("Hmisc") set.seed(4) #seems to have an effect on t(apply b=10 pop.props = c(0.6,0.2,0.2) x=matrix(pop.props,nrow=nn,ncol=length(pop.

[R] Invalid Regular Expression

2011-06-14 Thread Abraham Mathew
I'm working with some data, and am trying to generate it in the following format. statecity zipcode I like pizza0 0 0 I live in Denver 0 1 0

[R] R 2.13.0 on windows 7 x32 - always requires admin to run

2011-06-14 Thread Wes James
I have a faculty member who installed R 2.13.0 on a windows 7 (x32) machine. When they run it, it always requests an administrator password and the icon has the shield on it that indicates it needs to run in Admin mode. I went back to my student computer lab and it has 2.12.0 and it runs fine wit

Re: [R] BIZARRE results from wilcox.test()

2011-06-14 Thread genecleaner
Dear Daniel and Sarah, Thanks you for your rude replies . The script that I provided was only an example and to illustrate the problem. It makes perfectly sense to use the Wilcoxon test on my datasets. However, you replies were nonsensical, since you could not solve the problem but rather just bu

Re: [R] Off-topic: (Simple?) Random Sampling when n is a random variable

2011-06-14 Thread Andrew Robinson
Thanks Greg! Andrew On Tue, Jun 14, 2011 at 04:13:52PM -0600, Greg Snow wrote: > This sounds like what is called "domains" in survey sampling (possibly other > names, but that is what I learned it as). The idea is that you take a random > sample (or the population) then ask a question to deter

Re: [R] gridExtra with cairodevie and ggplots

2011-06-14 Thread Justin Haynes
Thats perfect, thank you! On Tue, Jun 14, 2011 at 2:10 PM, baptiste auguie wrote: > Hi, > > You can draw arrangeGrob in a rotated viewport, > > library(gridExtra) > library(ggplot2) > ps = replicate(4, qplot(rnorm(10), rnorm(10)), simplify=F) > g = gTree(children=gList(do.call(arrangeGrob, ps)),

Re: [R] Need script to create new waypoint

2011-06-14 Thread Michael Sumner
There is a function "interpequal" in the trip package that provides a way to generate new points "equally spaced in time" between irregular track points. Obviously this can only be approximate depending on the spacing you want. The function also maintains the input points without change. This was u

Re: [R] Off-topic: (Simple?) Random Sampling when n is a random variable

2011-06-14 Thread Andrew Robinson
On Tue, Jun 14, 2011 at 11:02:52AM +1000, Andrew Robinson wrote: > Hi everyone, > > I'm involved in a discussion with a colleague. He suggested a sample > design for a finite-sized process that (to all intents and purposes) > involves tossing a coin and examining the unit if the coin shows > Head

Re: [R] how to convert careers to social network description

2011-06-14 Thread Daniel Malter
Where are you stuck? A question without reproducible code or demonstrating own effort is much less likely to receive a response. Best, Daniel -- View this message in context: http://r.789695.n4.nabble.com/how-to-convert-careers-to-social-network-description-tp3597622p3598067.html Sent from the R

Re: [R] automatically generate the output name of my "for" loops

2011-06-14 Thread Greg Snow
If the list is simple enough, then you probably want the "unlist" function, otherwise you will probably need to use the "sapply" function to grab and/or process the important pieces in each list element. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@

Re: [R] automatically generate the output name of my "for" loops

2011-06-14 Thread jiliguala
thanks, Greg Snow-2. here i hav a question, how can i save the value of a list to a vector or a matrix? say, i have a list (data1) and a vector or a matrix (data2). if i made like this, data2 <- as.vector(data1) it does not change anything, the data2 is still a list. what i want to do is to c

Re: [R] automatically generate the output name of my "for" loops

2011-06-14 Thread Greg Snow
In the windows GUI you can click on the Help menu and then click on 'FAQ on R' to see the entire FAQ. Typing help.start() on any OS should open a new browser window with a link to the FAQ. Going to the R homepage (http://www.r-project.org) and clicking on the "FAQs" link on the left will also

Re: [R] plotting on an image

2011-06-14 Thread Gabor Grothendieck
On Mon, Jun 13, 2011 at 2:33 PM, Johann Kim wrote: > Hello all, > > has someone please a few hints about how to > 1.st: draw an image (preferrably a jpg) and then > 2nd: plot() on that image > > I am using a mac - and after searching and trying  different ways (I have > installed EBImage) I now w

Re: [R] Off-topic: (Simple?) Random Sampling when n is a random variable

2011-06-14 Thread Greg Snow
This sounds like what is called "domains" in survey sampling (possibly other names, but that is what I learned it as). The idea is that you take a random sample (or the population) then ask a question to determine which domain the subject is in, then ask the question of interest in the domain o

Re: [R] automatically generate the output name of my "for" loops

2011-06-14 Thread jiliguala
hi, im a new in R and this forum, so if there is something disturbing u, im gonna do it better. by the way, where can i see the FAQ 7.21?? thanks.. -- View this message in context: http://r.789695.n4.nabble.com/automatically-generate-the-output-name-of-my-for-loops-tp3592160p3597987.html Sent

Re: [R] plotting on an image

2011-06-14 Thread Greg Snow
If you are willing to prepend a step then you could: 1. Create an empty plot using your data and type='n' (or just plot the data, the points will be overwritten), you may want to set the asp argument, or explicitly do the xlim and ylim arguments. 2. Add the graphic using the rasterImage function

Re: [R] remove commas in a number when reading a text file

2011-06-14 Thread Greg Snow
The following link may be of interest. It shows a way to use gsub, but have it automatically applied while reading the data in rather than converting after: http://finzi.psych.upenn.edu/Rhelp10/2010-February/229550.html -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Hea

Re: [R] BIZARRE results from wilcox.test()

2011-06-14 Thread Daniel Malter
I would argue that your Wilcoxon test is meaningless. For all four datasets, the first data column has no overlap whatsoever with the second data column. All Wilcoxon Ws are 0. The "BIZARRE" behavior may be that the test tries to interpolate what the p value for W of 0 would be given your sample si

Re: [R] use variable value to create new variable name

2011-06-14 Thread Greg Snow
This is actually FAQ 7.21 (though the FAQ does not specify how to create the name in a loop). As others have mentioned, the most important part of the Answer is that it is better to use a list instead. What searching did you do before posting? Is there some way that the FAQ could be changed t

Re: [R] automatically generate the output name of my "for" loops

2011-06-14 Thread Greg Snow
This is actually FAQ 7.21. As others have mentioned, the most important part of the Answer is that it is better to use a list instead. What searching did you do before posting? Is there some way that the FAQ could be changed that would have made your searching turn up the FAQ answer? -- Greg

Re: [R] BIZARRE results from wilcox.test()

2011-06-14 Thread Sarah Goslee
The difference is so small as to be meaningless, and probably has to do with rounding error at the limits of machine precision. Really, why would you think this is either bizarre or important? Sarah On Tue, Jun 14, 2011 at 4:57 PM, genecleaner wrote: > I get these BIZARRE results from wilcox.tes

[R] BIZARRE results from wilcox.test()

2011-06-14 Thread genecleaner
I get these BIZARRE results from wilcox.test() When INCREASING the number of samples i get INCREASED p-values. When increasing the number of samples further, the p-values goes down again. This seems really bizarre! Can anyone explain why this is so?! Example: > w <- wilcox.test(c(1:40),(c(1:4

Re: [R] gridExtra with cairodevie and ggplots

2011-06-14 Thread baptiste auguie
Hi, You can draw arrangeGrob in a rotated viewport, library(gridExtra) library(ggplot2) ps = replicate(4, qplot(rnorm(10), rnorm(10)), simplify=F) g = gTree(children=gList(do.call(arrangeGrob, ps)), vp=viewport(angle=90)) grid.draw(g) though you get some warnings about clipping for some reason.

[R] Contrasts

2011-06-14 Thread klausflemloese
Thank you for your reply. I am working on how to understand the contrast(). I am a newcomer to R-programming. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/po

[R] gridExtra with cairodevie and ggplots

2011-06-14 Thread Justin Haynes
I apologise in advance for not providing code, but this seems like a straight forward question... I am making a few full page plots some of which are "portrait" and some of which are "landscape" I would like to open my cairo device once and put all the plots in the same .pdf. But since some need

Re: [R] color specific(!) lines in different color with in parcoord plots

2011-06-14 Thread Daniel Malter
Hi, Why does the second example on ?parcoord help page not help you with that? ?parcoord ir <- rbind(iris3[,,1], iris3[,,2], iris3[,,3]) parcoord(log(ir)[, c(3, 4, 2, 1)], col = 1 + (0:149)%/%50) If that does not do, feel free to get back. Daniel -- View this message in context: http://r.789

Re: [R] Standard deviation and Mean

2011-06-14 Thread Daniel Malter
Hi, pick up any introductory manual of which there are many online. It so happens that the functions for mean and sd are called mean() and sd(). If you want to know how to use them type ?mean or ?sd in the R-prompt and hit enter. Daniel -- View this message in context: http://r.789695.n4.nabble

Re: [R] Still have problems with tcltk in R 64 bit

2011-06-14 Thread Uwe Ligges
On 14.06.2011 22:01, Arnaud Mosnier wrote: I achieve to make tcltk work on R 64 installing Active tcltk8.5 64bit version then setting windows environment variables as in http://www.sciviews.org/_rgui/tcltk/InstallRTclTk.html. Don't read outdated sources but the manuals. The R binary distribu

[R] error message trying to plot survival curves from hypothetical covariate profiles

2011-06-14 Thread Simon Kiss
Dear colleagues, following John Fox' advice in this article (http://cran.r-project.org/doc/contrib/Fox-Companion/appendix-cox-regression.pdf), I'm trying to create a new data frame to examine the differential survival curves from a combination of covariates. These are derived from a Cox Proport

Re: [R] In rpart, how is "improve" calculated? (in the "class" case)

2011-06-14 Thread Tal Galili
Hi Ed, Thank you for the reply! Professor Atkinson already gave me that answer by pointing me to the technical report of rpart that describes this: *http://mayoresearch.mayo.edu/mayo/research/biostat/upload/61.pdf* However, I was a

[R] color specific(!) lines in different color with in parcoord plots

2011-06-14 Thread Patrick Großmann
Dear Madame or Sir, in my current project, I have so far used a lot of very different plots. I am now trying to gain informatin with the help of parallel coordinate plots. Therefore, I use the function "parcoord" of the MASS package. What I would like to do, is to color let's say the points

Re: [R] In rpart, how is "improve" calculated? (in the "class" case)

2011-06-14 Thread Ed Merkle
Tal, For the Gini criterion, the "improve" value can be calculated as a weighted sum of the improvement in impurity. Continuing with your original code: # for "gini" impurity_root<- gini(prop.table(table(y))) impurity_l<- gini(prop.table(table(obs_0))) impurity_R<-gini(prop.table(table(obs_1

Re: [R] Standard deviation and Mean

2011-06-14 Thread jdanielnd
Well, it depends on what mean and sd do you want to calculate. If it's the mean of the variation or frequency mean and sd from the showed variables, you should do: > mean(variation) > sd(variation) > mean(frequency) > sd(frequency) However, if you want to calculate the mean of variation, taking i

Re: [R] Still have problems with tcltk in R 64 bit

2011-06-14 Thread Arnaud Mosnier
I achieve to make tcltk work on R 64 installing Active tcltk8.5 64bit version then setting windows environment variables as in http://www.sciviews.org/_rgui/tcltk/InstallRTclTk.html. But now, it uses only this 64 bit version and thus do not work anymore in R 32 bit ! In my case, it solves my probl

Re: [R] Still have problems with tcltk in R 64 bit

2011-06-14 Thread Peter Langfelder
On Tue, Jun 14, 2011 at 12:47 PM, Adrienne Wootten wrote: > Taking a quick look for it, it seems that they have replaced it with > tcltk2.  I just did the installation with the same version in windows > and it auto loaded the tcltk package and I never installed that > package to begin with.  I wou

Re: [R] Still have problems with tcltk in R 64 bit

2011-06-14 Thread Adrienne Wootten
Taking a quick look for it, it seems that they have replaced it with tcltk2. I just did the installation with the same version in windows and it auto loaded the tcltk package and I never installed that package to begin with. I would try it with tcltk2 and see if you get the package to install app

[R] how to convert careers to social network description

2011-06-14 Thread Philipp Chapkovski
There is a dataframe in R that looks that Person --- Organization --- Year In --- Year Out P1X 20012005 P2X 20022006 What is the most quick way to convert it to the table of the connections between two people with a

Re: [R] About 'hazard ratio', urgent~~~

2011-06-14 Thread Mike Marchywka
> Date: Tue, 14 Jun 2011 09:11:25 -0700 > From: dr.jz...@gmail.com > To: r-help@r-project.org > Subject: Re: [R] About 'hazard ratio', urgent~~~ > > Thanks a lot for the great help~ well, if you are referring to my post, as I indicated I made a l

Re: [R] Putting commas in between character strings

2011-06-14 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Abraham Mathew > Sent: Tuesday, June 14, 2011 9:36 AM > To: r-help@r-project.org > Subject: [R] Putting commas in between character strings > > I have a number of strings in a ve

[R] sqlFetch and factor conversion

2011-06-14 Thread Hosack, Michael
R users, Hello, I used sqlFetch to import a data table from MS Access 2007 and I set as.is = TRUE to prevent character vectors from becoming factors. However, I can't figure out how to prevent the $ operator from being added by sqlFetch to the end of each character vector(e.g. TD$ and SITE$).

[R] Standard deviation and Mean

2011-06-14 Thread Won Cheol Yim
Dear R-help, Hi I've got data table with variation and freqeuncy. I don't know how to get mean and sd. Please help me. Cheers. == variation frequency 0.503 79930 0.174 291140 -0.444 95916 -0.731 11451 0.453 102899 0.596 46133 -0.295 204859 0.013 390121 0.311 187552 -0.085 378902 -0.63

Re: [R] panel.loess confidence interval

2011-06-14 Thread Mark Ebbert
I finally got back around to working on this again. panel.smoother worked perfectly. Thank you both for the tips. On Jun 5, 2011, at 5:40 PM, Felix Andrews wrote: > On 6 June 2011 06:45, Gabor Grothendieck wrote: >> On Sun, Jun 5, 2011 at 3:18 PM, Mark Ebbert wrote: >>> Dear R gurus, >>> >>

Re: [R] Heatmap in R and/or ggplot2

2011-06-14 Thread idris
Thanks for your help! Follow up question: My data contains x, y, height, and day. I want to create the heatmap for each day, keeping the color coding consistent. I've created an example with 2 days, and you can see the charts below. Notice that the legend changes from day 1 to day 2. How can I

[R] Using MLE Method to Estimate Regression Coefficients

2011-06-14 Thread boylangc
Good Afternoon, I am relatively new to R and have been trying to figure out how to estimate regression coefficients using the MLE method. Some background: I am trying to examine scenarios in which certain estimators might be preferred to others, starting with MLE. I understand that MLE will

[R] Putting commas in between character strings

2011-06-14 Thread Abraham Mathew
I have a number of strings in a vector, and want the output to be seperated by commas. > t [1] "35004" "35005" "35006" "35007" "35010" "35014" "35016" So I want want it to look like: "35004", 35005", "35006", "35007",... Can anyone help? I initially thought strsplit would be the correct funct

[R] problems with plots in loop (corrected Email)

2011-06-14 Thread Andreas Betz
Dear helpers, In an attempt to use a loop to generate graphs in a for loop in run into a problem. The plan is to fill each page with eight graphs (mfrow = c(4,2)) in to two columns. Only the buttom graphs ( meaning every fourth graph) have tick labels on the x axis to preserve space. I used a

[R] problems with plots in loop

2011-06-14 Thread Andreas Betz
Dear helpers, In an attempt to use a loop to generate graphs in a for loop in run into a problem. The plan is to fill each page with eight graphs (mfrow = c(4,2)) in to two columns. Only the buttom graphs ( meaning every fourth graph) have tick labels on the x axis to preserve space. I used a

Re: [R] About 'hazard ratio', urgent~~~

2011-06-14 Thread karena
Thanks a lot for the great help~ -- View this message in context: http://r.789695.n4.nabble.com/About-hazard-ratio-urgent-tp3595527p3597025.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.

Re: [R] Read in from multiple Excel wksheets

2011-06-14 Thread Gabor Grothendieck
On Tue, Jun 14, 2011 at 12:06 PM, dM/ wrote: > I’ve got an Excel workbook with about 30 worksheets.  Each worksheet > has 1 rows of data over 30 columns. > > I’d like to read the data from each worksheet into a dataframe or > matrix in R for processing.  Normally, I use read.csv when interacti

Re: [R] Read in from multiple Excel wksheets

2011-06-14 Thread Ben Bolker
dM/ gmail.com> writes: > > I’ve got an Excel workbook with about 30 worksheets. Each worksheet > has 1 rows of data over 30 columns. > > I’d like to read the data from each worksheet into a dataframe or > matrix in R for processing. Normally, I use read.csv when interacting > with Excel b

Re: [R] Read in from multiple Excel wksheets

2011-06-14 Thread Jonathan Daily
Java uses "heap space" when creating new objects. My guess is that since the default size is 128 Mb iirc, you are reading in an object larger than this. I don't know the guts of the xlsx package or if there is a way to increase the heap, but you may get by if you can divide up your data import. HT

Re: [R] Still have problems with tcltk in R 64 bit

2011-06-14 Thread Adrienne Wootten
Arnaud, I've had a similar problem with several packages in R 2.13.0 recently, which was more caused because the package installation failed in the new version. Judging from the error messages you have up here, I'd guess that it's a similar problem surrounding the package installation, specifical

Re: [R] Procesamiento paralelo

2011-06-14 Thread Carlos Ortega
Hola Javier, Sí, mira este detalle: http://cran.at.r-project.org/web/views/HighPerformanceComputing.html Saludos, Carlos Ortega www.qualityexcellence.es 2011/6/14 Javier Alfonso Valdés > Hola, soy nuevo en la lista y en R, disculpen esta pregunta, pero no he > encontrado información actualiza

[R] How to generate bivariate exponential distribution?

2011-06-14 Thread xuyongdeng
Any one know is there any package or function to generate bivariate exponential distribution? I gusee there should be three parameters, two rate parameters and one correlation parameter. I just did not find any function available on R. Any suggestion is appreciated. -- View this message in cont

[R] Procesamiento paralelo

2011-06-14 Thread Javier Alfonso Valdés
Hola, soy nuevo en la lista y en R, disculpen esta pregunta, pero no he encontrado información actualizada. Mi pregunta, es R capaz de realizar procesamiento paralelo? -- Atentamente Ing. Javier Alfonso Valdés Universidad de las Ciencias Informáticas. ___

[R] Read in from multiple Excel wksheets

2011-06-14 Thread dM/
I’ve got an Excel workbook with about 30 worksheets. Each worksheet has 1 rows of data over 30 columns. I’d like to read the data from each worksheet into a dataframe or matrix in R for processing. Normally, I use read.csv when interacting with Excel but I’d rather manipulate a multisheet wo

Re: [R] [Resolved] combine the data frames into comma separated list.

2011-06-14 Thread Gabor Grothendieck
On Tue, Jun 14, 2011 at 11:40 AM, Mary Kindall wrote: > Hi > Thanks Gabor for your suggestion. I am posting the code that worked for me. > > > dataframe1 = data.frame(cbind(Src = c(1,1,1,2,3), Target1 = > c('aaa','bbb','ccc','aaa','ddd')));  #must be data frame > dataframe2 = data.frame(cbind(Src

[R] Still have problems with tcltk in R 64 bit

2011-06-14 Thread Arnaud Mosnier
Dear R users, Since a long time now, I have the following error when I want to load the tcltk library in R 64 bit. Loading Tcl/Tk interface ...Error : .onLoad failed in loadNamespace() for 'tcltk', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared

[R] [Resolved] combine the data frames into comma separated list.

2011-06-14 Thread Mary Kindall
Hi Thanks Gabor for your suggestion. I am posting the code that worked for me. dataframe1 = data.frame(cbind(Src = c(1,1,1,2,3), Target1 = c('aaa','bbb','ccc','aaa','ddd'))); #must be data frame dataframe2 = data.frame(cbind(Src = c(2,3,4,4,4), Target2 = c('','','','','')));

Re: [R] Factor analysis on ordinal & nominal data

2011-06-14 Thread William Revelle
At 6:19 AM -0700 6/14/11, Jay wrote: Hi, are there readily available R packages that are able to perform FA on ordinal and/or nominal data? If not, what other approaches and helpful packages would you suggest? If by ordinal and nominal you mean just a few categories (e.g., a mood scale or per

[R] Textmin

2011-06-14 Thread Philip Heinrich
Working my way through Feinerer, Hornik, & Meyer's (2008) Text Mining Infrastructure in R but am having trouble duplicating some of the examples in 3.2 Algorithms. When I try to use functions such as appendMeta, tmupdate, and appendMeta I get a "cannot find function..." error. The R documentation

Re: [R] Need script to create new waypoint

2011-06-14 Thread Mike Marchywka
> Now I need to change this data set into one with waypoints at regular > intervals: for example 2 I guess your question is about algorithm ideas for making up data due to unspecified percrived need. Anything you can specify completely should be easy to code in R, maybe a bash script, or c

[R] Factor analysis on ordinal & nominal data

2011-06-14 Thread Jay
Hi, are there readily available R packages that are able to perform FA on ordinal and/or nominal data? If not, what other approaches and helpful packages would you suggest? BR, Jay __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/lis

[R] Lattice legend

2011-06-14 Thread Julio Rojas
Dear all, I have been working in a plot based on figure 5.6 of the Lattice book (http://lmdvr.r-forge.r-project.org/figures/figures.html). I have already modified it to include the size of the circles as another variable, but I would like to modify the legend to show it (like they do it in http

Re: [R] using Scheirer-Ray-Hare in R?

2011-06-14 Thread peter dalgaard
On Jun 13, 2011, at 20:28 , jcallaway wrote: > Does anyone know if a module already exists to run the Scheirer-Ray-Hare > extension to Kruskal-Wallis in R, in order to run a non-parametric > equivalent to a two-way ANOVA? I had a look at the JSTOR copy of the original Biometrics paper, and tend

Re: [R] Renaming variables

2011-06-14 Thread Dennis Murphy
Hi: names() typically has to do with the names associated with *components* of a data frame or list, which appears to be what you have, reading between the lines. Here's a toy example: > mydf <- data.frame(a = rnorm(5)) > mydf a 1 1.291952883 2 -0.136706733 3 0.219528682 4 -0.17483

[R] 2d loess question

2011-06-14 Thread Saurav Pathak
Hi, We have been trying to use loess on 2D data (basically a matrix) in the following way: x <- 1:256 y <- 1:256 z <- data # input from data z.loess = loess(z ~ x + y) We get a 256 x 1 vector of fitted values with a 256 x 256 array of residuals, but not a 256 x 256 array of fitted values.

[R] rstatistics.com

2011-06-14 Thread Alex
Preferred Domain Availability Notice: rstatistics.com will be listed for auction in a few days. This domain might be useful for you, since you own a domain similar to rstatistics.com To express interest in owning this domain, just fill out the simple form here: http://THEIHUB.COM/417ef778ab

[R] Renaming variables

2011-06-14 Thread mosojn
Hi guys, I checked previous posts and I saw similar questions have been answered; they didn't help me solve my problem though. I am using R version 2.13.0 (2011-04-13), Platform: x86_64-pc-mingw32/x64 (64-bit) and I am having difficulties renaming variables. I tried with this command: names (old

[R] Obtaining OLAP cubes using R

2011-06-14 Thread Saravanan
Hello All, I have a dataset and I wish to obtain all possible data cuboids from it using R . For eg if my data frame is : ABC 111 121 221 The output intended is : A=1 A=2 B=1 B=2 C=1 A=1,B=1 A=1,B=2 A=2,B=2 A=1,C=1 A=2,C=1 B=1,C=1 B=2,C=1 A=1,B=1,C=1 A=1,B=2,C=

[R] heatmap with values

2011-06-14 Thread Agustin Lobo
Hi! I'm displaying a contingency table with heatmap(): > svm.predPix.tabla svm.predPix CC DD LL NN NN2 CC 22 0 3 8 3 DD 0 27 0 1 0 LL 1 1 90 3 7 NN 2 0 1 11 4 NN2 0 0 5 1 20 > heatmap(svm.predPix.tabla[5:1,], Rowv=NA, Colv=NA,c

[R] Need script to create new waypoint

2011-06-14 Thread anneloes de raad
Dear help-list members, I am a student at Durham University (UK) conducting a PhD on spatial representation in baboons. Currently, I'm analysing the effect of sampling interval on home range calculations. I have followed the baboons for 234 days in the field, each day is represented by abou

Re: [R] How to run zero inflated mixed model and hurdle mixed model in R

2011-06-14 Thread Ben Bolker
ONKELINX, Thierry inbo.be> writes: > > Have a look at the MCMCglmm package. > Best regards, > The glmmADMB package will also allow you to fit zero-inflated (but not hurdle) mixed models (the syntax is slightly easier). For further questions you may want to contact the r-sig-mixed-models

Re: [R] Reset R's library to base packages only (remove all installed contributed packages)

2011-06-14 Thread Janko Thyson
On 14.06.2011 13:34, Uwe Ligges wrote: On 14.06.2011 12:04, Janko Thyson wrote: Dear list, is there a way to comfortably "reset" R's library such that it only contains only the base packages again? In other words, how can I uninstall all contributed packages that I installed? Is there some so

Re: [R] Expand DF with all levels of a variable

2011-06-14 Thread Dimitris Rizopoulos
here is a solution with expand.grid(), a <- c(2,2,3,4,5,6,7,8,9) a.cut <- cut(a, breaks=c(0,2,6,9,12,13,15,16), right=FALSE ) x <- data.frame(a, a.cut) out <- expand.grid(a = 0, a.cut = setdiff(levels(a.cut), unique(a.cut))) rbind(out, x) I hope it helps. Best, Dimitris On 6/14/2011 1:32 P

Re: [R] Reset R's library to base packages only (remove all installed contributed packages)

2011-06-14 Thread Uwe Ligges
On 14.06.2011 12:04, Janko Thyson wrote: Dear list, is there a way to comfortably "reset" R's library such that it only contains only the base packages again? In other words, how can I uninstall all contributed packages that I installed? Is there some sort of index that's keeping track of what

[R] Expand DF with all levels of a variable

2011-06-14 Thread Patrick Hausmann
Dear list, I would like to expand a DF with all the missing levels of a variable. a <- c(2,2,3,4,5,6,7,8,9) a.cut <- cut(a, breaks=c(0,2,6,9,12), right=FALSE ) (x <- data.frame(a, a.cut)) # In 'x' the level "[0,2)" is "missing". AddMissingLevel <- function(xdf) { xfac <- factor( c("[0,2)

Re: [R] persp and trans3d for type="h" points

2011-06-14 Thread Uwe Ligges
You are drawing the line to the center of the plot (which is 0 be design). What you actually want is to plot segments to the min(z) value. Example: Z <- matrix(1:9, 3) surf <- persp(1:3, 1:3, Z) points(trans3d(x=2, y=2, z=5, surf), col="red", pch=19) from <- trans3d(x=2, y=2, z=5, surf) to <- t

Re: [R] txtProgressBar and parallelized foreach

2011-06-14 Thread Uwe Ligges
I think you do not understand how the parallelization works: Different iterations from your foreach() are run on different nodes, hence you change the progressbar on the node rather on the master in your loop. Uwe Ligges On 14.06.2011 12:23, Julian TszKin Chan wrote: Hi all, I can create a

Re: [R] Setting up RODBC or RMySQL package.

2011-06-14 Thread Uwe Ligges
On 14.06.2011 12:22, amrita gs wrote: Hi all, I have installed RODBC package. But am not able to connect it for using MySQL. For accessing MySQL Db a connector is required.For that can i use the mysql db which is a part of WAMP server or use separate mysql db. Just install the myodbc dr

[R] Calling R from Java

2011-06-14 Thread Mohed Alhammed
Up, Any helps in this would be really appreciated. I stuck with this. Regards --- On Mon, 6/13/11, saleh [via R] wrote: From: saleh [via R] Subject: Calling R from Java To: "saleh" Date: Monday, June 13, 2011, 12:35 PM Dear Sir/Madam, Sorry for my previous message. I am to call R

Re: [R] About 'hazard ratio', urgent~~~

2011-06-14 Thread Mike Marchywka
> Date: Mon, 13 Jun 2011 19:44:15 -0700 > From: dr.jz...@gmail.com > To: r-help@r-project.org > Subject: [R] About 'hazard ratio', urgent~~~ > > Hi, > > I am new to R. > > My question is: how to get the 'hazard ratio' using the 'coxph' function i

[R] txtProgressBar and parallelized foreach

2011-06-14 Thread Julian TszKin Chan
Hi all, I can create a text-progress bar in a foreach loop by the following code : n=10 foreach( i = 1:n ,.combine=c) %do%{ setTxtProgressBar(pb, i) Sys.sleep(0.1) } However, once i use the parallelized foreach, the text-progress bar disappear. Any solution to this problem? How

[R] Setting up RODBC or RMySQL package.

2011-06-14 Thread amrita gs
Hi all, I have installed RODBC package. But am not able to connect it for using MySQL. For accessing MySQL Db a connector is required.For that can i use the mysql db which is a part of WAMP server or use separate mysql db. I know there is a package called RMySQL. But i find it very difficult

Re: [R] glm with binomial errors - problem with overdispersion

2011-06-14 Thread peter dalgaard
On Jun 14, 2011, at 09:53 , Anna Mill wrote: > > Also note that success+failure is exactly 102 in fragment 1 and 105 in > fragment 2, as is the sum of the successes for each fragment (of course it > has to to make exactly 1/4). It is rather easy to suspect that it is actually > a 0/1 coding o

Re: [R] Can we prepare a questionaire in R

2011-06-14 Thread amrita gs
Hi all So we can retrieve data from mysql database and do the data analysis in R. Is it easy to do the data analysis with the values of the form elements stored in mysql db,which are of different patterns for eg:- for radio buttons there may be values yes or no,some may have textarea values.S

[R] Reset R's library to base packages only (remove all installed contributed packages)

2011-06-14 Thread Janko Thyson
Dear list, is there a way to comfortably "reset" R's library such that it only contains only the base packages again? In other words, how can I uninstall all contributed packages that I installed? Is there some sort of index that's keeping track of what has been installed? If so, a pointer wo

Re: [R] computer name

2011-06-14 Thread Martin Maechler
> Erich Neuwirth > on Mon, 13 Jun 2011 11:16:08 +0200 writes: > This depends on your OS. on Windows, > Sys.getenv('computername') should work. > Sys.info()['nodename'] should work on all systems. yes, indeed! BTW: Learn something more by considering the slight

Re: [R] How to run zero inflated mixed model and hurdle mixed model in R

2011-06-14 Thread ONKELINX, Thierry
Have a look at the MCMCglmm package. http://www.freestatistics.org/cran/web/packages/MCMCglmm/vignettes/Overview.pdf Best regards, Thierry > -Oorspronkelijk bericht- > Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > Namens Xiongqing Zhang > Verzonden: dinsdag 1

  1   2   >