Re: [R] Need help to convert data frame to transaction set.

2014-04-19 Thread arun
Hi Satish, Using your code: part<-read.csv("spares.csv") str(part) #'data.frame':    838 obs. of  1 variable: # $ Cust_ID.Parts: Factor w/ 838 levels "100\tAIR\tFILTER\tHOUSING\t",..: 161 333 495 727 728 768 769 770 784 785 ... #I guess you have only two columns in the dataset  lines1 <- read

Re: [R] Need help to convert data frame to transaction set.

2014-04-19 Thread arun
Hi, Without a reproducible example using ?dput() or the package name, it is a bit difficult to comment. Assuming that you used: library(arules)  data("AdultUCI") AdultUCI$ID <- 1:nrow(AdultUCI) lst1 <- split(AdultUCI[,"ID"], AdultUCI[,"marital-status"])  as(lst1, "transactions") #transactions

Re: [R] How to use rainbow function without the gamma argument

2014-04-19 Thread Boris Steipe
If it MUST be parameter-compatible with the old call, you could just add "..." to your local version of rainbow. The unused parameter will then be dropped. Here's how: # The original creates an error ... rainbow(100, s = 1.0, v = 0.75, start = 0.0, end = 0.75, gamma = 1.5) Error in rainbow(100

Re: [R] inverse normal distribution function

2014-04-19 Thread Suzen, Mehmet
Not sure how would you do that but there is a package SEM on CRAN for structural equation models. On 20 April 2014 01:10, thanoon younis wrote: > thank you so much Suzen > i want to use bayesian analysis in structural equation models with ordered > categorical data and i want to use inverse norma

Re: [R] inverse normal distribution function

2014-04-19 Thread Suzen, Mehmet
You may want to read about generalized linear modelling and link functions for forming appropriate categorical variable/link function. See documentations in R: ?glm, ?family and ?inverse.gaussian. Also look at the original paper of Nelder, John; Wedderburn, Robert , it is available freely with th

Re: [R] How to use rainbow function without the gamma argument

2014-04-19 Thread Boris Steipe
Have you looked at ?rainbow ? Is there a reason why you don't simply leave the gamma parameter away? Try: pie(rep(1,100), col=rainbow(100, s = 1.0, v = 0.75, start = 0.0, end = 0.75)) Cheers, B. On 2014-04-19, at 6:05 AM, Francesco Brundu wrote: > Hi all, > I am using an old code (probably wri

Re: [R] R Statistical Computing Language Preference Help

2014-04-19 Thread Bert Gunter
Search! Googling on "How to set language for R" produced this: https://stat.ethz.ch/pipermail/r-help/2008-October/178503.html If this is not what you need, a little more searching may be required. Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not infor

Re: [R] cex values being ignored in the curve function

2014-04-19 Thread Bert Gunter
Don't know if this helps, but works for me on a PC under Windows 7 with the default graphics device. Try a different device, maybe (e.g. pdf) ?? -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374(650) 467-7374 "Data is not information. Information is not knowledge. And know

[R] Extracting the names of coefficients of random effects

2014-04-19 Thread Brian Willis
Hi All, I need to be able to manipulate the names of the coefficients from *ranef()*. If there is any missing data when fitting a mixed model using lmer, no estimate is returned for the associated level for that random effect. Thus if the data input for regions had levels *Region*

Re: [R] Difference between times

2014-04-19 Thread Nicola Sturaro Sommacal
I forgot: sysname release "Linux" "3.5.0-48-generic" version "#72-Ubuntu SMP Mon Mar 10 23:18:29 UTC 2014" 2014-04-19 14:03 GMT+02:00 Nicola Sturaro Sommacal < mailin

[R] How to use rainbow function without the gamma argument

2014-04-19 Thread Francesco Brundu
Hi all, I am using an old code (probably written for R 2.5) and it stops when calling rainbow() with gamma argument. I saw that gamma argument is not present in newer version of R rainbow function. How can I translate this line of code: rainbow(100, s = 1.0, v = 0.75, start = 0.0, end = 0.75, gamm

[R] R Statistical Computing Language Preference Help

2014-04-19 Thread burak ömer saraçoglu
Dear R Developers and Help Specialists; I downloaded and installed R to learn and use it during solutions of my scientific studies. At first, I got in trouble with it with the menu languages. It is in Turkish and I have to change it to English but I can not find where the language preferences

[R] Need help to convert data frame to transaction set.

2014-04-19 Thread Sathish Kumar
Hi, To convert coerce the data set to transaction data set I used the code trans4 <- as(split(a[,"Cust_ID"], a[,"Parts"]), "transactions") but I am getting the following error- Error in as(split(a[, "Cust_ID"], a[, "Parts"]), "transactions") : nomethod or default for coercing “list” to “transac

Re: [R] Difference between times

2014-04-19 Thread Nicola Sturaro Sommacal
Thank you for your reply. I discovered the OlsonNames() function to get the time-zone names in my system. Rui get a warning message when using a not recognized tz. On my system this doesn't succed. I solved as follow: dt1 = as.POSIXct("2014-04-18 09.00", format="%Y-%m-%d %H.%M", tz = "Europe/Rom

[R] cex values being ignored in the curve function

2014-04-19 Thread Philip Robinson
Dear R-Community, The cex values in curve seem to be being ignored. I have searched previous help questions and also the web generally, and cannot find this being a major problem so I am suspicious of something odd happening but I am at a loss to work out why. I am trying to plot this: b1

Re: [R] cbind with row names to serveral files in R

2014-04-19 Thread arun
Hi, The rownames part is not clear as your expected output and input files didn't show them as rownames. ##Suppose you have all the files in a folder ##here I am creating the names of those files files1 <- paste0("sample", rep(1:777, each=29),"chr",1:29,".txt") length(files1) #[1] 22533 lst1 <

[R] Foreign function interface

2014-04-19 Thread Alex van der Spek
I read the Foreign Function Interface for R. The documentation does not prescribe the calling convention though. Does that mean __stdcall on W32 and __cdecl for Linux? Regards, Alex van der Spek __ R-help@r-project.org mailing list https://stat.ethz.

Re: [R] XML getNodeSet

2014-04-19 Thread Timothy W. Cook
SOLVED: (mostly) So I'll post this here in case it helps someone in the future. fileName <- '001.xml' doc <- xmlTreeParse(fileName, handlers=list("comment"=function(x,...){NULL}), asTree = TRUE) root <- xmlRoot(doc) Connected_To <- xmlToDataFrame(getNodeSet(root, '//ccd:el-e3657392-8e26-42a4-a9

Re: [R] problem with pip2d() from ptinpoly

2014-04-19 Thread Waichler, Scott R
Thank you for catching that, Boris. I'm surprised, given that there is no mention of sense of direction in the package documentation. Scott Waichler > -Original Message- > From: Boris Steipe [mailto:boris.ste...@utoronto.ca] > Sent: Friday, April 18, 2014 3:49 PM > To: Waichler, Scott R

Re: [R] Read.table mucks up headers

2014-04-19 Thread Uwe Ligges
On 19.04.2014 14:30, starter wrote: Hello Milan It had worked perfectly before, but now I am trying on a different text file but using the trick you showed I just get the headers in the output and that too as "row.names" and "X". *code:* corr <- read.table("E:/temp/corrosion data.txt",header=

Re: [R] Read.table mucks up headers

2014-04-19 Thread starter
Hello Milan It had worked perfectly before, but now I am trying on a different text file but using the trick you showed I just get the headers in the output and that too as "row.names" and "X". *code:* corr <- read.table("E:/temp/corrosion data.txt",header=T,fileEncoding="UTF-8-BOM") > dput(corr

Re: [R] R Example scripts

2014-04-19 Thread Duncan Murdoch
On 18/04/2014, 6:07 PM, Gene Leynes wrote: A few years ago R changed the way help was handled so that the HTML files are no longer available in the library directory. Around that time the R example files that used to be in some of the libraries also vanished. I'm wondering where the "r-ex" fold

[R] R: interpreting weight in meta-analysis of proportion

2014-04-19 Thread Mario Petretta
Fine ! Many many thanks! Mario -Messaggio originale- Da: Bernd Weiss [mailto:bernd.we...@uni-koeln.de] Inviato: venerdì 18 aprile 2014 15.58 A: petre...@unina.it; R-help@r-project.org Oggetto: Re: [R] interpreting weight in meta-analysis of proportion On 18.04.2014 13:02, petre...@uni