Re: [R] Request to Unsubscribe from R Forum Replies

2025-04-07 Thread David Winsemius via R-help
You need to unsubscribe yourself using the instructions at the list info page. You should be getting month reminder emails that include your password. None of the volunteer mods are able to access that password. — David. Sent from my iPhone > On Apr 7, 2025, at 4:23 AM, Loop Vinyl wrote: >

Re: [R] Request to Unsubscribe from R Forum Replies

2025-04-07 Thread Uwe Ligges
On 07.04.2025 12:20, Loop Vinyl wrote: Hello, I would like to request the removal of my email address from the R forum reply/update list. I no longer wish to receive notifications or messages related to forum discussions. Thank you for your attention and understanding. Best regards,

Re: [R] Request concerning use in book

2022-07-27 Thread Ebert,Timothy Aaron
My understanding is that the only requirement is to give proper credit. This is necessary anyway as readers would need to know what packages were used and what version of R was used. In R there is the citation() function that returns the approved citation. However, it might be useful to also inc

Re: [R] Request for some help: Error when joining multiple csv files together

2022-06-02 Thread Rui Barradas
Hello, I'm seeing two obvious errors, those are not csv files and the columns spec is wrong, you have a spec of 6 columns but the posted data only has 4 and of different classes. If the data is in comma separated values (CSV) files the following worked without errors. library(readr) col_

Re: [R] Request for help in solving an optimization problem

2021-12-23 Thread Bert Gunter
1. This ia a plain text list. No html. 2. Looks like homework. We don't do homework here. 3. Please read the posting guide. This is R-Help, not "R we do your work for you." We expect posters to show us their efforts to solve their problems. (In R, not Excel of course). 4. See here for R optimiza

Re: [R] request

2020-06-10 Thread Jim Lemon
Hi Mozhgan, This is pretty obscure. If you have entered all of the variables in your attached list, You can start by looking at the summary of the output. This may help: https://stat.ethz.ch/R-manual/R-devel/library/mgcv/html/summary.gam.html Jim On Thu, Jun 11, 2020 at 4:47 AM Mozhgan Soleimani

Re: [R] Request for help about running a loop and reading .NC files

2020-03-24 Thread David Pierce via R-help
Hey Bhaskar, Dave Pierce here, the author and maintainer of the ncdf4 package. What platform are you working on? If you work on Linux, I'd be happy to send you a new source tar version of the ncdf4 package I've made that handles this case. It now has a settable parameter in nc_open called "return

Re: [R] Request for help about running a loop and reading .NC files

2020-03-24 Thread Bert Gunter
?tryCatch See also: https://www.r-bloggers.com/error-handling-in-r/ Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Mar 24, 2020 at 5:13 AM Bhaskar Mitra

Re: [R] Request for help about running a loop and reading .NC files

2020-03-24 Thread Ivan Krylov
On Mon, 23 Mar 2020 16:16:42 -0700 Bhaskar Mitra wrote: > I would appreciate if anyone can suggest how can I modify >the loop, whereby the loop will continue to run by bypassing those >particular >files which it cannot read or if any particular file has an error. See ?try and ?tryCatch. With `tr

Re: [R] Request for aid in first R script

2018-11-19 Thread S Ellison
Pointers inline below: > > Since I'm a newbie on R, I was wondering if you could help me to achieve a > > small project that I think it's possible with this project (I cant seem to > > find a similar tool) > > > > I have a data file with about 2000 value lines, organized like this: > > > > x;y;z;j

Re: [R] Request for aid in first R script

2018-11-19 Thread Thierry Onkelinx via R-help
Dear Kepler, Yes, R can do this all. But this is is to help you when you get stuck, not to do all the work for you... You are asking basic stuff, so any introduction book on R should contain sufficient information to get you going. So please do read on of those first. Best regards, ir. Thierry O

Re: [R] Request for R Assistance: Downloading Data

2018-08-20 Thread Spencer Brackett
> > --JJS > > > -- > *From:* Jeff Newmiller > *Sent:* Sunday, August 19, 2018 4:38 PM > *To:* r-help@r-project.org; Sparks, John; Spencer Brackett; > r-help@r-project.org > *Subject:* Re: [R] Request for R Assistance: Downloading Data > > I think t

Re: [R] Request for R Assistance: Downloading Data

2018-08-19 Thread Sparks, John
-project.org Subject: Re: [R] Request for R Assistance: Downloading Data I think this hunch is off the mark... the file name is fine as it is... if anything will confuse R it would be that the data inside the file are not what was expected. If in fact the file is csv formatted then the function to read

Re: [R] Request for R Assistance: Downloading Data

2018-08-19 Thread Jeff Newmiller
I think this hunch is off the mark... the file name is fine as it is... if anything will confuse R it would be that the data inside the file are not what was expected. If in fact the file is csv formatted then the function to read it would be read.csv [1] or read.table [2]. Read the help pages

Re: [R] Request for R Assistance: Downloading Data

2018-08-19 Thread Sparks, John
Just a hunch, but I would recommend simplifying your filename: remove the (CSV) portion. It could be confusing in R read syntax. Create a filename with no unnecessary punctuation and no blank spaces. --John Sparks From: R-help on behalf of Spencer Brackett

Re: [R] Request for R Assistance: Downloading Data

2018-08-19 Thread David L Carlson
The load() function is only used for binary files that R creates with the save() function. You are trying to assign the data to an object (variable) called LGG Drug. R does not allow spaces in variable names. You could try LGGDrug, LGG_Drug, or LGG.Drug. Same issue with GBM Drug. David L. Car

Re: [R] Request for R Assistance: Downloading Data

2018-08-19 Thread Rich Shepard
On Sun, 19 Aug 2018, Spencer Brackett wrote: I am attempting to download Genomic data from the GDC onto R for analysis and am experiencing some difficulty. I have downloaded the GDC data into an Excel, CSV, and notepad (.txt) file and implemented what I believe to be the proper arguments, with e

Re: [R] Request for help with R program

2018-08-14 Thread Bert Gunter
R has no "associates". It is open source software with many users and developers with varying skill levels and interests. I think you are in over your head ("inexperienced in computer programming") and should seek local resources at Baylor to help you. This list probably cannot provide the level o

Re: [R] Request for information

2018-05-08 Thread Bert Gunter
See here: https://cran.r-project.org/web/views/MachineLearning.html Also search! e.g. at rseek.org ... Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic st

Re: [R] request for code

2018-01-19 Thread Treutwein Bernhard
> http://www.math.umaine.edu/~hiebeler/comp/matlabR.pdf You might also look up the book published by the same author, see http://www.math.umaine.edu/~hiebeler/comp/matlabR.html -- Bernhard __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and m

Re: [R] request for code

2018-01-18 Thread Marc Schwartz
> On Jan 18, 2018, at 7:49 AM, Anjali Karol Nair wrote: > > Hi, > > I want to convert my MATLAB programs to R studio programs. > Kindly guide on the same. Hi, Using Google with a search phrase such as "MATLAB to R" will yield a number of possible resources for you such as: http://www.math.

Re: [R] request for code

2018-01-18 Thread jim holtman
a simple Google search turns up several possible choices. There is a package 'matconv' that might serve your purposes. Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Thu, Jan 18, 2018 at 7:49 AM, Anjali

Re: [R] Request for help - adding text files to a data frame

2017-06-26 Thread Jim Lemon
Hi Bhaskar, You can put all sorts of stuff into a text file simply by using the "sink" command: sink("bm.txt") cat("\n") B9<-"B" cat(B9,"\n",sep="") for(i in 1:9) cat("C") cat("\n") print(df) sink() What you intend to do with a file like this is beyond me. Jim On Mon, Jun 26, 20

Re: [R] Request for help - adding text files to a data frame

2017-06-25 Thread David Winsemius
> On Jun 25, 2017, at 7:35 PM, Bhaskar Mitra wrote: > > Hello Everyone, > > I have a data frame which looks something like this: > >V1 <-c(1,2,3) >V2 <-c(5,6,7) >V3 <-c(9,10,11) > > df <- data.frame(V1,V2,V3) > > I want to add couple of text files at the beginning of df and s

Re: [R] Request for help - adding text files to a data frame

2017-06-25 Thread Bert Gunter
You appear to either be ignorant of the structure pf data frames or have not expressed yourself clearly enough (for me, anyway). Please go through a tutorial to learn about the fixed structure of data frames, for which your request does not appear to reflect an understanding. Cheers, Bert Bert G

Re: [R] Request for R code

2016-09-19 Thread S Ellison
> Heyy I want to apply LASSO method in AFT model. So can you guys please help > me by sending R code for that. Try help.search("LASSO") or RSiteSearch("LASSO") or Google "LASSO method in AFT using R" There are leads in both. S Ellison *

Re: [R] Request for help

2016-06-04 Thread Michael Dewey
Dear Suparna You do not say whether the problem is (a) creating a help page to start with (b) understanding how to edit it afterwards. If the former then Duncan's advice to use prompt (or package.skeleton if you have not got anything set up yet) is good advice. If (b) then try it and post agai

Re: [R] Request for help

2016-06-03 Thread Duncan Murdoch
On 03/06/2016 2:27 PM, Bert Gunter wrote: See the "Writing R Extensions" manual that ships with R. You might also want to consider Hadley Wickham's roxygen2 package, which allows one to include the Help information as specially formatted comments within the code files themselves. The package wil

Re: [R] Request for help

2016-06-03 Thread Roy Mendelssohn - NOAA Federal
Hi All: > On Jun 3, 2016, at 11:33 AM, jlu...@ria.buffalo.edu wrote: > > There is a video tutorial on the RStudio web site showing how to create R > packages within RStudio. Hadley Wickham also has a book on creating R > packages. > And I would add that Hadley has kindly put the book onlin

Re: [R] Request for help

2016-06-03 Thread JLucke
There is a video tutorial on the RStudio web site showing how to create R packages within RStudio. Hadley Wickham also has a book on creating R packages. Bert Gunter Sent by: "R-help" 06/03/2016 02:27 PM To suparna biswas , cc r-help Subject Re: [R] Request for help

Re: [R] Request for help

2016-06-03 Thread Bert Gunter
See the "Writing R Extensions" manual that ships with R. You might also want to consider Hadley Wickham's roxygen2 package, which allows one to include the Help information as specially formatted comments within the code files themselves. The package will then generate the Help files from this inf

Re: [R] Request Help

2015-12-10 Thread David Winsemius
> On Dec 10, 2015, at 2:55 PM, Pedro Malpartida wrote: > > Hello, > > I am currently facing difficulties while doing a couple of financial tasks > in R. I will appreciate if you give a solution code for these issues. > > 1) If I have to price an european call option non dividend paying stock >

Re: [R] Request

2015-06-15 Thread Michael Dewey
Dear Djamil On 15/06/2015 14:37, MALIOU Djamil wrote: Dear Sir or Madame, I am a novice in R, and I want to perform a meta analysis of case control studies (analytic), i want a step by step explanation if it's possible, You can find details about packages which support meta-analysis in R in t

Re: [R] Request for functions to calculate correlated factors influencing an outcome.

2015-05-04 Thread Prashant Sethi
Hi, >From my understanding of a model, you need to have one or more dependent parameter variables which you (y1, y2 etc) and the explanatory parameter variables (x1, x2 etc) which you fit along with certain coefficients to determine the dependent parameter with minimum error as possible. I don't t

Re: [R] Request for functions to calculate correlated factors influencing an outcome.

2015-05-04 Thread Bert Gunter
This would be better posted on a statistical list like stats.stackexchange.com, as it is largely about statistical methodology, not R code. Once you have determined what kinds of methods you want, you might then post back here -- or better yet, just search! -- for packages that implement those meth

Re: [R] Request for functions to calculate correlated factors influencing an outcome.

2015-05-04 Thread Lalitha Viswanathan
Hi I used the MASS library library(MASS) (by reading about examples at http://www.statmethods.net/stats/regression.html ) fit <- lm(Mileage~Disp+HP+Weight+Reliability,data=newx) step <- stepAIC(fit, direction="both"

Re: [R] Request for functions to calculate correlated factors influencing an outcome.

2015-05-03 Thread Prashant Sethi
Hi, I'm not an expert in data analysis (a beginner still learning tricks of the trade) but I believe in your case since you're trying to determine the correlation of a dependent variable with a number of factor variables, you should try doing the regression analysis of your model. The function you

Re: [R] Request for functions to calculate correlated factors influencing an outcome.

2015-05-03 Thread Michael Dewey
Dear Lalitha, see inline below On 03/05/2015 10:19, Lalitha Viswanathan wrote: Hi I have a dataset of the type attached. Here's my code thus far. dataset <-data.frame(read.delim("data", sep="\t", header=TRUE)); newData<-subset(dataset, select = c(Price, Reliability, Mileage, Weight, Disp, HP));

Re: [R] request

2014-11-15 Thread Jeff Newmiller
The data you are working with us at least as important as the algorithms you work with. You need to learn what information to give us in order for our response to help you. You can start by reading the Posting Guide mentioned in the footer of any message on this list. One important item mentione

Re: [R] request of information about creating DLL from R to be used in other languages/programs

2014-07-16 Thread Ludovic Brossard
Thanks for all these indications Regards Ludovic Brossard -Message d'origine- De : Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Envoyé : mercredi 16 juillet 2014 04:06 À : Ludovic.Brossard Cc : Ludovic Brossard; r-help@r-project.org Objet : Re: [R] request of information

Re: [R] request of information about creating DLL from R to be used in other languages/programs

2014-07-15 Thread Jeff Newmiller
You want algorithms compiled into a dll... I am satisfied with R in its current form, so I am not a particularly good guide for you. If you wish to continue with the wrapping-R approach then you should read the Writing R Extensions document that comes with R, and study R-devel mailing list inste

Re: [R] request of information about creating DLL from R to be used in other languages/programs

2014-07-15 Thread Ludovic.Brossard
Thanks for the answer. If it is possible, could you indicate me how to proceed? or what would be the best alternative? Regard Ludovic Brossard Jeff Newmiller a écrit : > Possible, but almost certainly not worth it. R is an interpreted > language, and the dll would have to encapsulate the who

Re: [R] request of information about creating DLL from R to be used in other languages/programs

2014-07-15 Thread Jeff Newmiller
Possible, but almost certainly not worth it. R is an interpreted language, and the dll would have to encapsulate the whole shebang. --- Jeff NewmillerThe . . Go Live... DCN:Ba

Re: [R] Request for R " Initial value of MLE"

2014-04-24 Thread S Ellison
> Sir I have this problem, > > >  res <- > maxLik(logLik=loglik1,start=c(a=1.5,b=1.5,c=1.5,dee=2),method="BFGS") > There were 50 or more warnings (use warnings() to see the first 50) > > summary(res) > "Maximum Likelihood estimation > BFGS maximisation, 0 iterations > Return code 100: Initial valu

Re: [R] request for help in R

2013-09-26 Thread John Kane
John Kane Kingston ON Canada -Original Message- From: atta_...@yahoo.com Sent: Wed, 25 Sep 2013 23:16:48 -0700 (PDT) To: jrkrid...@inbox.com Subject: Re: [R] request for help in R hi, i have data for 15 gauging stations of different rivers and for monthly maxmimum flows data, i want to

Re: [R] Request for Help on Named Vectors

2013-05-22 Thread arun
Hi, May be this helps: month.dayslong<-rep(31,7)  names(month.dayslong)<- c("January","March","May","July","August","October","December") month.dayslong # January    March  May July   August  October December  #     31   31   31   31   31   31   31  unname(month.

Re: [R] Request for unsubscribe from this forum.

2013-01-27 Thread Berend Hasselman
On 28-01-2013, at 06:17, Purna chander wrote: > Dear admin members, > > > My Inbox is being flooded with the posts every time. As a reason, I > wish to unsubscribe from this forum. > > Can you suggest me how to do that. > At the bottom of every message is a link to the R-help mailing list p

Re: [R] request

2012-12-05 Thread Rubel Das
Dear Dr. Bernhard Thank you very much for quick reply. One good news is that i can connect with Neos server. I appreciate your suggestion to change 'protocols' to 'proxy'. after assigning proxy, i can connect with my desired website. Thankyou very much With best regards Rubel On Thu, Dec 6, 2012

Re: [R] Request for Help: y-axis label overlapped by x-axis in subplots in big plot

2011-11-06 Thread Duncan Murdoch
On 11-11-06 3:19 PM, Chee Chen wrote: Dear All, I would like to seek for help on this issue: 1. I set par(mfrow=c(2,2)), hoping to plot 4 subgraphs in a whole graph 2. Each subgraph has its own x,y axes and each has x-axis label and y-axis label 3. moreover, subgraphs in the left column of the

Re: [R] Request for Help: remove zero in fraction from tick labe

2011-11-06 Thread Ted Harding
On 06-Nov-11 14:50:18, David Winsemius wrote: > > On Nov 6, 2011, at 9:07 AM, Chee Chen wrote: > >> Dear All, >> I would like to know how to do the following: >> 1. suppose I have x values from the ordered from 0, 0.5, 1, and >> would like to label these three points on the x-axis. >> 2. Howeve

Re: [R] Request for Help: remove zero in fraction from tick labeling

2011-11-06 Thread David Winsemius
On Nov 6, 2011, at 9:07 AM, Chee Chen wrote: Dear All, I would like to know how to do the following: 1. suppose I have x values from the ordered from 0, 0.5, 1, and would like to label these three points on the x-axis. 2. However, R labels them as 0.0, 0.5, 1.0. But I wan5 them to be 0, .5,

Re: [R] Request for Help

2011-03-14 Thread Joshua Wiley
Dear Caesar, Welcome to R. This is a great opportunity for you to start learning R and practicing writing your own code. The first thing I would do is go to: http://cran.r-project.org/doc/manuals/R-intro.htmland read the introduction to R manual. It has a lot of helpful information about us

Re: [R] Request update on A (Not So) Short Introduction to S4

2009-10-14 Thread Uwe Ligges
Peng Yu wrote: There are several '?'s on the last page of the following document. Apparently, they are not correct. Could somebody correct it? cran.r-project.org/doc/contrib/Genolini-S4tutorialV0-5en.pdf Please ask the author. Best, Uwe Ligges ___

Re: [R] Request Infomation

2009-10-13 Thread joris meys
The easy way out is to send the file containing only the function to the people willing to use it. They can load the function from the file "foo.R" using : source ("path/foo.R") The hard way out is to write a package. For that, see : http://cran.r-project.org/doc/manuals/R-exts.html Cheers Joris

Re: [R] Request Infomation

2009-10-13 Thread Duncan Murdoch
On 13/10/2009 4:07 PM, Andres Rincon wrote: Hello, I would like to know if is possible to load functions developed by users of R. I have been working in a function related to calculate some indicators to develop a credit scoring. I would like to know about the procedure to load this function

Re: [R] Request Infomation

2009-10-13 Thread stephen sefick
There is a "how to make R packages" in the document section of the cran website. On Tue, Oct 13, 2009 at 3:07 PM, Andres Rincon wrote: > Hello, I would like to know if is possible to load functions developed > by users of R. I have been working in a function related to calculate > some indicators

Re: [R] request: Help

2009-08-13 Thread Steve Lianoglou
Hi, On Aug 13, 2009, at 3:43 PM, Sarjinder Singh wrote: Dear Sir/Madam, Good Day! How can we make output file in R? In FORTRAN, we could do as follows: WRITE (42, 107) x, y 107 FORMAT ( 2x, F9.3, 2x, F4.2) What is equivalent to this in R? See: ?file ?cat ?sprintf -steve --

Re: [R] Request for some help

2009-04-25 Thread Tom Backer Johnsen
Abdul: First, read the posting guide. You will find a link to that one at the bottom of all messages. Also, read some of the documentation for R. Sorry, there is no way to avoid that. A very good source is the R web page (Google for the letter R, the link will be at the top of the list).

Re: [R] request: maximum depth reached problem

2009-04-09 Thread Uwe Ligges
Muhammad Azam wrote: Dear R community Hope all of you are fine. I have a question regarding the an error message. Actually, I am trying to generate classification trees using "tree" package. It works well but for some datasets e.g., wine, yeast, boston housing etc. it gives an error message.

Re: [R] Request: Optimum value of cost complexity parameter "k" in "tree" package

2009-04-02 Thread Uwe Ligges
Muhammad Azam wrote: Dear R community I have a question regarding the value of cost complexity parameter "k" used in "tree" package for pruning purpose. Any help in finding the optimum value of "k" is requested. Please give some suggestion in this regard. In the example below i used k=0 but i d

Re: [R] request

2009-02-20 Thread Jim Lemon
alis villiyam wrote: Dear Prof. Hello, Regarding to R Language , I have some problems.could you please help me.I have Four treatments in randomized block with 3 replications . I am going to comprise between medium of treatments with LSD test.is it possible in R. could you please advise me

Re: [R] request information

2008-12-10 Thread Stefan Grosse
Lisbeth Garzon schrieb: > Dear R-Help team, > > I'm researcher University Nacional of Colombia, I'll use R for my research, > and I would want to know, how i can to estimate Logistic Regression model > such as binary logistic model, multinomial logistic model, and logit models > with repeated measu

Re: [R] request: how to assign alphabets to integer values

2008-12-01 Thread Muhammad Azam
Dear Gabor Grothendieck Thanks a lot for the help. M. Azam From: Gabor Grothendieck <[EMAIL PROTECTED]> Cc: R-help request <[EMAIL PROTECTED]>; R Help Sent: Monday, December 1, 2008 12:46:06 PM Subject: Re: [R] request: how to assign alphabet

Re: [R] request: how to assign alphabets to integer values

2008-12-01 Thread Gabor Grothendieck
Try: transform(iris, Species = factor(Species, labels = letters[1:3])) On Mon, Dec 1, 2008 at 4:35 AM, Muhammad Azam <[EMAIL PROTECTED]> wrote: > Dear R community > I am trying to assign alphabets to integer values 1, 2, 3 etc. in y given > below. Can any body suggest some simple way to do the s

Re: [R] Request for Assistance in R with NonMem

2008-11-28 Thread Douglas Bates
On Wed, Nov 26, 2008 at 12:46 PM, Michael White <[EMAIL PROTECTED]> wrote: > Hi > I am having some problems running a covariate analysis with my > colleage using R with the NonMem program we are using for a graduate > school project. R and NonMem run fine without adding in the > covariates, but the

Re: [R] request: How to combine three matrices in the desired form

2008-10-30 Thread Muhammad Azam
Dear Jim Thanks a lot for such a nice solution. best regards M.Azam From: Jim Lemon <[EMAIL PROTECTED]> Cc: R Help Sent: Thursday, October 30, 2008 10:06:57 AM Subject: Re: [R] request: How to combine three matrices in the desired form Hi Muhammad, Tr

Re: [R] request: How to combine three matrices in the desired form

2008-10-30 Thread Jim Lemon
Hi Muhammad, Try this: cbind(matrix(paste(var,"(",val,")",sep=""),nrow=4),as.character(nod)) Jim __ 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/posting-guide.h

Re: [R] request: How can we ignore a component of list having no element

2008-10-15 Thread Adaikalavan Ramasamy
Try x[ !sapply(x, is.null) ] hadley wickham wrote: An alternative approach would be to store 0 x 0 matrices instead of NULLs. This way every object in your list is a consistent type. Hadley On Wed, Oct 15, 2008 at 5:23 AM, Muhammad Azam <[EMAIL PROTECTED]> wrote: Dear friends There

Re: [R] request: How can we ignore a component of list having no element

2008-10-15 Thread hadley wickham
An alternative approach would be to store 0 x 0 matrices instead of NULLs. This way every object in your list is a consistent type. Hadley On Wed, Oct 15, 2008 at 5:23 AM, Muhammad Azam <[EMAIL PROTECTED]> wrote: > Dear friends > There is a list of arrays comprising different no of rows and colu

Re: [R] request: How can we ignore a component of list having no element

2008-10-15 Thread Muhammad Azam
Dear Mahbub Thanks a lot for the help. - Original Message From: Mahbub Latif <[EMAIL PROTECTED]> To: Muhammad Azam <[EMAIL PROTECTED]> Sent: Wednesday, October 15, 2008 12:30:13 PM Subject: Re: [R] request: How can we ignore a component of list having no element try

Re: [R] request: How to ignore columns having zero sums

2008-10-14 Thread Muhammad Azam
Dear Jorge Thanks a lot. - Original Message From: Jorge Ivan Velez <[EMAIL PROTECTED]> To: Muhammad Azam <[EMAIL PROTECTED]> Cc: R mailing list Sent: Tuesday, October 14, 2008 1:52:15 PM Subject: Re: [R] request: How to ignore columns having zero sums Dear Muhammad,

Re: [R] request: How to ignore columns having zero sums

2008-10-14 Thread Jorge Ivan Velez
Dear Muhammad, Try also x <- c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,0,0,0,0,0,0,0,0); x1 <- array(x, dim=c(4,6)) x1[,apply(x1,2,function(x) !all(x==0))] HTH, Jorge On Tue, Oct 14, 2008 at 4:02 AM, Muhammad Azam <[EMAIL PROTECTED]> wrote: > Dear friends > I have an array consist of r-rows and c-col

Re: [R] request: How to ignore columns having zero sums

2008-10-14 Thread Dimitris Rizopoulos
try this: x <- c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,0,0,0,0,0,0,0,0); x1 <- array(x, dim=c(4,6)) ind <- colSums(x1) != 0 x1[, ind] I hope it helps. Best, Dimitris Muhammad Azam wrote: Dear friends I have an array consist of r-rows and c-columns e.g. x=c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,0,0,0,0

Re: [R] request: How to ignore columns having zero sums

2008-10-14 Thread Muhammad Azam
Dear Dimitris Thanks a lot. - Original Message From: Dimitris Rizopoulos <[EMAIL PROTECTED]> To: Muhammad Azam <[EMAIL PROTECTED]> Cc: R Help Sent: Tuesday, October 14, 2008 10:10:54 AM Subject: Re: [R] request: How to ignore columns having zero sums try t

Re: [R] request: most repeated component of a list

2008-09-12 Thread Jim Lemon
Muhammad Azam wrote: Thanks for the effort but still we are far from the desired result. May be this example will help you to understand the situation. Example a1=c(1:12); a1=array(a1,dim=c(3,4)); a2=c(1:12); a2=array(a2,dim=c(3,4)); a3=c(1:16) a3=array(a3,dim=c(4,4)); a=list(a1,a2,a3);

Re: [R] request: most repeated component of a list

2008-09-11 Thread Adam D. I. Kramer
mad Azam <[EMAIL PROTECTED]> Cc: R Help Sent: Thursday, September 11, 2008 9:53:40 AM Subject: Re: [R] request: most repeated component of a list That is indeed different from what I thought the first time. x <- sapply(1:length(l), function(x) { sum(sapply(l, function(y) { if ( nrow(

Re: [R] request: most repeated component of a list

2008-09-11 Thread Muhammad Azam
Thanks a lot for this effort. - Original Message From: Dimitris Rizopoulos <[EMAIL PROTECTED]> To: Muhammad Azam <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED]; R Help Sent: Thursday, September 11, 2008 10:52:16 AM Subject: Re: [R] request: most repeated component of a l

Re: [R] request: most repeated component of a list

2008-09-11 Thread Dimitris Rizopoulos
jority. The result should be like > this > [,1] [,2] [,3] [,4] > [1,]147 10 > [2,]258 11 > [3,]369 12 > > Hope it is much more clear as before. > > best regards > Muhammad Azam > > > - Original Message ---- > From

Re: [R] request: most repeated component of a list

2008-09-11 Thread Muhammad Azam
- Original Message > From: jim holtman <[EMAIL PROTECTED]> > To: Muhammad Azam <[EMAIL PROTECTED]> > Cc: R-help request <[EMAIL PROTECTED]>; R Help > Sent: Wednesday, September 10, 2008 5:59:28 PM > Subject: Re: [R] request: most repeated component of a list &

Re: [R] request: most repeated component of a list

2008-09-11 Thread Adam D. I. Kramer
ECTED]>; R Help Sent: Wednesday, September 10, 2008 5:59:28 PM Subject: Re: [R] request: most repeated component of a list If want you want is the summary from all of them, then 'rbind' the data together into one matrix and analyze it: totalMat <- do.call(rbind, listOfMatric

Re: [R] request: most repeated component of a list

2008-09-11 Thread Muhammad Azam
Azam - Original Message From: jim holtman <[EMAIL PROTECTED]> To: Muhammad Azam <[EMAIL PROTECTED]> Cc: R-help request <[EMAIL PROTECTED]>; R Help Sent: Wednesday, September 10, 2008 5:59:28 PM Subject: Re: [R] request: most repeated component of a list If want you w

Re: [R] request: most repeated component of a list

2008-09-10 Thread Adam D. I. Kramer
You might try apply(t(sapply(l,apply,2,sum)),2,sum) --Adam On Wed, 10 Sep 2008, Muhammad Azam wrote: Dear R community I have stored the results of arrays in a list consist of J-components (say 200 components). Each component containing same no of columns but may be different no of rows. e.

Re: [R] request: most repeated component of a list

2008-09-10 Thread jim holtman
If want you want is the summary from all of them, then 'rbind' the data together into one matrix and analyze it: totalMat <- do.call(rbind, listOfMatrices) On Wed, Sep 10, 2008 at 11:49 AM, Muhammad Azam <[EMAIL PROTECTED]> wrote: > Dear R community > I have stored the results of arrays in a list

Re: [R] Request for advice on character set conversions (those damn Excel files, again ...)

2008-09-08 Thread Peter Dalgaard
Emmanuel Charpentier wrote: On Mon, 08 Sep 2008 01:45:51 +0200, Peter Dalgaard wrote : Emmanuel Charpentier wrote: Dear list, [ Snip ... ] This looks reasonably sane, I think. The last loop could be d[] <- lapply(d, conv1, from, to), but I think that is cosmetic.

Re: [R] Request for advice on character set conversions (those damn Excel files, again ...)

2008-09-08 Thread Emmanuel Charpentier
On Mon, 08 Sep 2008 01:45:51 +0200, Peter Dalgaard wrote : > Emmanuel Charpentier wrote: >> Dear list, >> [ Snip ... ] > This looks reasonably sane, I think. The last loop could be d[] <- > lapply(d, conv1, from, to), but I think that is cosmetic. You can't > really do much better becau

Re: [R] Request for advice on character set conversions (those damn Excel files, again ...)

2008-09-07 Thread Peter Dalgaard
Emmanuel Charpentier wrote: Dear list, I have to read a not-so-small bunch of not-so-small Excel files, which seem to have traversed Window 3.1, Windows95 and Windows NT versions of the thing (with maybe a Mac or two thrown in for good measure...). The problem is that 1) I need to read

Re: [R] request: most repeated sequnce

2008-09-06 Thread jim holtman
s where all elements are zeros and interested to get "44 > 0000000 0" or just " 4 4 " in case 2. > Thanks and best regards > > Muhammad Azam > > > > > > - Original Message > From: jim holtman <[EMA

Re: [R] request: most repeated sequnce

2008-09-06 Thread Muhammad Azam
[EMAIL PROTECTED]> Cc: R Help ; R-help request <[EMAIL PROTECTED]> Sent: Saturday, September 6, 2008 2:39:19 PM Subject: Re: [R] request: most repeated sequnce Here is a start. You can delete the zeros: > x=c(1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,2,2,2,3,3,0,0,0,0,0,0,0

Re: [R] request

2008-09-06 Thread stephen sefick
I apologize, my naive understanding that if an email was sent to the list then the sender is subscribed. However, my hypothesis is falseifiable. On Sat, Sep 6, 2008 at 10:33 AM, Martin Maechler <[EMAIL PROTECTED]> wrote: >> "ss" == stephen sefick <[EMAIL PROTECTED]> >> on Sat, 6 Sep 2

Re: [R] request

2008-09-06 Thread Martin Maechler
> "ss" == stephen sefick <[EMAIL PROTECTED]> > on Sat, 6 Sep 2008 09:40:50 -0400 writes: ss> you are subscribed to the r-help list. Huh??? How would *you* know that? The list of subscribers to R-help is not at all public, and the fact that Ram Kumar's posting went through may w

Re: [R] request

2008-09-06 Thread stephen sefick
you are subscribed to the r-help list. On Sat, Sep 6, 2008 at 4:48 AM, Ram Kumar Basnet <[EMAIL PROTECTED]> wrote: > hi > I am expecting the mails that will flow in R- help after subscribing this but > could not. Can you provide me the right form. > Thanks. > > > >[[alternative HTML versi

Re: [R] request: most repeated sequnce

2008-09-06 Thread jim holtman
Here is a start. You can delete the zeros: > x=c(1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,2,2,2,3,3,0,0,0,0,0,0,0,0,0,0,1,1,1,2,2,3,3,3,4,4,4,0,0,0,0,0,0,0,1,1,1,2,2,2,3,3,3,4,4,4, + 0,0,0,0,0,0,1,2,2,2,2,2,0,3,3,0,4,4,0,0,0,0,0,0) > x=array(x,dim=c(3,6,5)) > apply(x,3,function(.mat){ + rows

Re: [R] request: How to get column name

2008-09-03 Thread Petr PIKAL
[EMAIL PROTECTED] napsal dne 03.09.2008 17:34:24: > On 9/3/2008 11:05 AM, Petr PIKAL wrote: > > [EMAIL PROTECTED] napsal dne 03.09.2008 15:54:08: > > > >> try this: > >> > >> x <- c(3,3,3,3,0,0,0,0,5,5,5,5,8,8,8,8) > >> x <- matrix(x, nrow=4) > >> > >> which(colSums(x == 0) == nrow(x)) > > > > I

Re: [R] request: How to get column name

2008-09-03 Thread Henrique Dallazuanna
Or: which(apply(x == 0, 2, all)) On Wed, Sep 3, 2008 at 12:46 PM, Marc Schwartz <[EMAIL PROTECTED]>wrote: > on 09/03/2008 10:34 AM Chuck Cleland wrote: > > On 9/3/2008 11:05 AM, Petr PIKAL wrote: > >> [EMAIL PROTECTED] napsal dne 03.09.2008 15:54:08: > >> > >>> try this: > >>> > >>> x <- c(3,3,3

Re: [R] request: How to get column name

2008-09-03 Thread Marc Schwartz
on 09/03/2008 10:34 AM Chuck Cleland wrote: > On 9/3/2008 11:05 AM, Petr PIKAL wrote: >> [EMAIL PROTECTED] napsal dne 03.09.2008 15:54:08: >> >>> try this: >>> >>> x <- c(3,3,3,3,0,0,0,0,5,5,5,5,8,8,8,8) >>> x <- matrix(x, nrow=4) >>> >>> which(colSums(x == 0) == nrow(x)) >> Isn't this the same? >>

Re: [R] request: How to get column name

2008-09-03 Thread Chuck Cleland
On 9/3/2008 11:05 AM, Petr PIKAL wrote: > [EMAIL PROTECTED] napsal dne 03.09.2008 15:54:08: > >> try this: >> >> x <- c(3,3,3,3,0,0,0,0,5,5,5,5,8,8,8,8) >> x <- matrix(x, nrow=4) >> >> which(colSums(x == 0) == nrow(x)) > > Isn't this the same? > > which(colSums(x)==0) No, because the column s

Re: [R] request: How to get column name

2008-09-03 Thread Petr PIKAL
[EMAIL PROTECTED] napsal dne 03.09.2008 15:54:08: > try this: > > x <- c(3,3,3,3,0,0,0,0,5,5,5,5,8,8,8,8) > x <- matrix(x, nrow=4) > > which(colSums(x == 0) == nrow(x)) Isn't this the same? which(colSums(x)==0) Regards Petr > > I hope it helps. > > Best, > Dimitris > > > Muhammad Azam wr

Re: [R] request: How to get column name

2008-09-03 Thread Jorge Ivan Velez
Dear Muhammad, Try also: x=c(3,3,3,3,0,0,0,0,5,5,5,5,8,8,8,8) x=matrix(x, nrow=4) which(colSums(x)==0) [1] 2 HTH, Jorge On Wed, Sep 3, 2008 at 9:45 AM, Muhammad Azam <[EMAIL PROTECTED]> wrote: > Dear R community > I have a problem regarding which of the column in a matrix contains all of > z

Re: [R] request: How to get column name

2008-09-03 Thread Dimitris Rizopoulos
try this: x <- c(3,3,3,3,0,0,0,0,5,5,5,5,8,8,8,8) x <- matrix(x, nrow=4) which(colSums(x == 0) == nrow(x)) I hope it helps. Best, Dimitris Muhammad Azam wrote: Dear R community I have a problem regarding which of the column in a matrix contains all of zero elements. e.g. x=c(3,3,3,3,0,0,0,

Re: [R] request for fine panel axis controls in lattice

2008-08-05 Thread Deepayan Sarkar
On 8/5/08, Chuck Cleland <[EMAIL PROTECTED]> wrote: > On 8/5/2008 8:37 AM, Chosid, David (FWE) wrote: > > > I'm trying to use fine axis controls in lattice for each panel. > > Specifically, within each panel, I want to set the limits for x and y > > equal to each other since it is paired data (usin

  1   2   >