Re: [R] Hi

2017-06-05 Thread David Winsemius
> On Jun 5, 2017, at 4:33 AM, Moshe Kelner wrote: > > Hi , > > I'm asking for a way to compute the integral of: > function(x) {x*(log(x)+b)*((log(x)+b)^(a-1)-b^(a-1))/(a-1)*(b^(a-1)} Problems here ^^^-and if(a==1)-^^^---paren--^

Re: [R] Hi

2017-06-05 Thread Jeff Newmiller
Your function has mismatching parentheses. I recommend using a computer algebra system like Maxima. -- Sent from my phone. Please excuse my brevity. On June 5, 2017 4:33:56 AM PDT, Moshe Kelner wrote: >Hi , > >I'm asking for a way to compute the integral of: function(x)

Re: [R] hi

2014-11-14 Thread Cox Lwaka
Thanks,Following your explanation i have through bi conductor but still unable to figure out how to group. for the data, my data takes values 0,1,2  hence simulating from a multinomial distribution such as (rmultinom(10, size = 3, prob = c(0.1,0.2,0.8))) gives 10 variables from three

Re: [R] hi

2014-11-14 Thread PIKAL Petr
, November 14, 2014 10:20 AM To: r-help@r-project.org Subject: Re: [R] hi Thanks,Following your explanation i have through bi conductor but still unable to figure out how to group. for the data, my data takes values 0,1,2 hence simulating from a multinomial distribution such as (rmultinom(10

Re: [R] hi

2014-11-13 Thread PIKAL Petr
Hi 1. Do not post in html 2. Post example of data, preferably by dput function 3. Based on posted data explain what do you want to achieve 4. As it seems to be biological issue did you look at Bioconductor? Cheers Petr -Original Message- From:

Re: [R] Hi , Is it possible select a different number of rows by each group with R????

2014-04-24 Thread arun
Hi Marta, If your first dataset field2 is greater than the number of rows for a particular field1 in second dataset, this error could happen. e.g. using modified dat1: dat1 - structure(list(field1 = 1:3, field2 = c(3L, 20L, 4L)), .Names = c(field1, field2), class = data.frame, row.names =

Re: [R] Hi , Is it possible select a different number of rows by each group with R????

2014-04-23 Thread arun
Hi Marta, If you need random selection, you could use: do.call(rbind,lapply(split(dat2,dat2$field1),function(x) x[sample(1:nrow(x),dat1$field2[!is.na(match(dat1$field1,x$field1))],replace=FALSE),])) A.K. On Tuesday, April 22, 2014 1:45 PM, arun smartpink...@yahoo.com wrote: Hi Marta, It's

Re: [R] Hi , Is it possible select a different number of rows by each group with R????

2014-04-22 Thread arun
Hi Marta, It's not clear whether you wanted to select the first n rows specified by field2 in the first dataset or just random rows. ##using a modified example if my guess is correct dat1 - structure(list(field1 = 1:3, field2 = c(3L, 6L, 4L)), .Names = c(field1, field2), class = data.frame,

Re: [R] Hi , Is it possible select a different number of rows by each group with R????

2014-04-21 Thread David Carlson
Look below at your question. R-help does not support html email so you must use plain text if you want to get an answer. - David L Carlson -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Marta

Re: [R] Hi

2013-04-29 Thread Ben Bolker
Fatos Baruti fatosbaruti at gmail.com writes: What is the entry code formula autocovariance and autocorrelation in R program for these data? a-c(2,3.5,3.5,2.2,2.2,3.3,2.5,2.5,3.2,2.5,2.5,2.7,1.7,2.7,2.9,2. 3,2.7,3,1.8,2.5,3.1,2.5,2.5,3.2,2.7,1.9,2.6,2.3,2.7,3.2,

Re: [R] Hi

2011-12-17 Thread Uwe Ligges
On 14.12.2011 23:11, Trying To learn again wrote: Hi all, I have solved my question Output- matrix(0, length(x), 1) for (i in 1:length(x)){ files- paste('KT', i, '.csv', sep = '') da1- read.csv(files) Output[i,1]-da1[1,2] } 2 comments: 1: use seq:_along(x) rather than 1:length(x)

Re: [R] Hi

2011-12-14 Thread Trying To learn again
Hi all, I have solved my question Output- matrix(0, length(x), 1) for (i in 1:length(x)){ files - paste('KT', i, '.csv', sep = '') da1 - read.csv(files) Output[i,1]-da1[1,2] } 2011/12/14 Trying To learn again tryingtolearnag...@gmail.com Hi all, I have 100 csv files always with

Re: [R] Hi

2011-12-14 Thread Trying To learn again
First PRoblem solved read.csv(KT80.csv) X x 1 1 0.01331361 I ommitt in calling the file name... 2011/12/14 Trying To learn again tryingtolearnag...@gmail.com Hi all, I have 100 csv files always with this information (I Attach two example excels) KT80.csv contains:

Re: [R] hi all.regarding quantile regression results..

2011-12-01 Thread R. Michael Weylandt michael.weyla...@gmail.com
This really isn't the appropriate forum for most of your questions: I'd suggest you work through the Wikipedia article on quantiles regression and direct follow up to stats.stackexchange.com. As to the R question: use the predict() function. Michael On Dec 1, 2011, at 8:12 AM, narendarreddy

Re: [R] Hi

2011-10-03 Thread chunjiang he
thanks On Fri, Sep 30, 2011 at 5:25 PM, Francois Pepin francois.pe...@sequentainc.com wrote: Hi Jiang, where did you get that definition of the Benjamini-Hochberg correction? That is simply not how it works. You can take a look at the original paper, it is available online (

Re: [R] Hi

2011-09-30 Thread Francois Pepin
Hi Jiang, where did you get that definition of the Benjamini-Hochberg correction? That is simply not how it works. You can take a look at the original paper, it is available online (http://www.math.tau.ac.il/~ybenja/MyPapers/benjamini_hochberg1995.pdf). You can also look at the p.adjust

Re: [R] hi have a question about merging.

2010-12-08 Thread Joshua Wiley
Hi, Just as a note, it is preferred that you use plain text rather than rich text or html emails for this list. On Wed, Dec 8, 2010 at 7:32 PM, tanzia chaudhury lumous_hill...@hotmail.com wrote: this is the problem: load this R data frame over the internet and save it to your hard drive.

Re: [R] hi have a question about merging.

2010-12-08 Thread Santosh Srinivas
Try this male.df - subset(raceprofiling, (male==1)) female.df - subset(raceprofiling, (male==0)) people.df - rbind(male.df,female.df) works? -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of tanzia chaudhury Sent: 09 December 2010

Re: [R] hi have a question about merging.

2010-12-08 Thread Dieter Menne
helloR wrote: this is the problem: load this R data frame over the internet and save it to your hard drive. http://rss.acs.unt.edu/Rdoc/library/twang/data/racepro ling.RData ... please show how to save a dataset of males only (the variable male=1) to a new dataframe. Then do the now

Re: [R] Hi!

2010-08-11 Thread Ben Bolker
leepama butchman at hanmail.net writes: I found some amazing package called lqa [enthusiasm snipped] Can I use this package in linaer model(not GLM)? It's helpful to use informative subject lines in your posts to the list. A linear model is a special case of a generalized linear model

Re: [R] hi!! please help me!

2010-08-06 Thread Sarah Goslee
Didn't we just go through this? In general, you need to translate your matlab code into R. There are some good R-octave equivalence guides online that will help you with that task. In specific, you need to read the posting guide and ask an answerable question. Sarah On Fri, Aug 6, 2010 at 1:31

Re: [R] hi!! please help me!

2010-08-06 Thread Stefan Grosse
Am 06.08.2010 07:31, schrieb leepama: I made some anonymous function which performs some process in matlab code.. But I want to perform it in R program... Is there any method??? You have already got answers to this. Please read the posting guide and please stop using an unspecific subject a

Re: [R] hi!!! guestion!!

2010-08-03 Thread jim holtman
Translate the matlab code to the appropriate R expressions. On Mon, Aug 2, 2010 at 9:57 PM, leepama butch...@hanmail.net wrote: I made some matlab codes... Is there any method to perform matlab codes in R program?? -- View this message in context:

Re: [R] hi!!! guestion!!

2010-08-03 Thread Gabor Grothendieck
On Mon, Aug 2, 2010 at 9:57 PM, leepama butch...@hanmail.net wrote: I made some matlab codes... Is there any method to perform matlab codes in R program?? There is an Octave/R lexicon here: http://cran.r-project.org/doc/contrib/R-and-octave.txt There are also ROctave and R.matlab

Re: [R] hi!!! guestion!!

2010-08-03 Thread David Winsemius
On Aug 2, 2010, at 9:57 PM, leepama wrote: I made some matlab codes... Is there any method to perform matlab codes in R program?? Octave/Matlab equivalencies: http://cran.r-project.org/doc/contrib/R-and-octave.txt http://rosettacode.org/wiki/Main_Page David Winsemius, MD West

Re: [R] hi!!! guestion!!

2010-08-03 Thread Dennis Murphy
Hi: In addition to the previous replies, there is package R.Matlab and a Matlab/R reference at CRAN by David Hiebeler under Contributed Documentation. HTH, Dennis On Mon, Aug 2, 2010 at 6:57 PM, leepama butch...@hanmail.net wrote: I made some matlab codes... Is there any method to perform

Re: [R] hi!! please help me

2010-07-31 Thread Stefan Grosse
On Fri, 30 Jul 2010 18:59:50 -0700 (PDT) leepama wrote: L please give me answer! Please do your homework yourself and PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Thanks Stefan

Re: [R] hi! l have a question please help me

2010-07-30 Thread Tal Galili
Is this a question from your homework? Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)

Re: [R] hi! l have a question please help me

2010-07-30 Thread leepama
yes!! I join group study that study R-programming... so I really tried..only to fail and made many erros.. I really don't know how to perform this... -- View this message in context: http://r.789695.n4.nabble.com/hi-l-have-a-question-please-help-me-tp2307569p2308091.html Sent from the R

Re: [R] hi! l have a question please help me

2010-07-30 Thread Tal Galili
Then please read this: http://www.r-project.org/posting-guide.html *Basic statistics and classroom homework:* R-help is not intended for these. If you want learning materials for R you can check out: http://stats.stackexchange.com/questions/138/resources-for-learning-r And:

Re: [R] hi! l have a question please help me

2010-07-30 Thread leepama
hey!!! this is not classroom homework!! To do main programming, I find some good training problems in paper... I tried to do that...but failed so please help me Nobody help me...I relly don't know how to perform this... If you solve this probelm,I will study your work to solve main

Re: [R] hi... problems about adjacency matrix

2010-07-08 Thread Ted Harding
On 08-Jul-10 10:33:56, Gina Liao wrote: Dear all, Hi, I have the problems about converting the matrix to adjacency matrix.Here's my example, ab cd e fa 1.000 0.4048823682 0.1228531 0.49046991 0.4945158868

Re: [R] hi... problems about adjacency matrix

2010-07-08 Thread Steve Lianoglou
Hi Gina, On Thu, Jul 8, 2010 at 6:33 AM, Gina Liao yi...@hotmail.com wrote: Dear all, Hi, I have the problems about converting the matrix to adjacency matrix.Here's my example,          a            b               c                d                 e               fa 1.000

Re: [R] Hi

2010-03-04 Thread stephen sefick
I would help, but I don't know matlab. Stephen On Thu, Mar 4, 2010 at 2:50 PM, hussain abu-saaq hussain...@hotmail.com wrote: How Can I write this this matlab code in R: options=optimset('TolFun',1e-9,'TolX',1e-9,'MaxIter',1e8,'MaxFunEvals',1e8); c=c/2; [alpha, delta, epsilon, nofcup] =

Re: [R] Hi

2010-03-04 Thread Rob Forler
a quick google of fminsearch in R resulted in this http://www.google.com/search?q=fminsearch+in+Rie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a take a look. there appears to be a function called optim that you can look at http://sekhon.berkeley.edu/stats/html/optim.html

Re: [R] Hi

2010-03-04 Thread Dieter Menne
hussain abu-saaq wrote: ... y = fminsearch('pbond',.15,options,p,c,nofcup,delta/epsilon); Check documentation on optim. There are several method available, SANN probably is the most robust if you really need gradient-free methods such as in fminsearch. Dieter -- View this message in

Re: [R] Hi problem with read.csv

2010-02-08 Thread Dieter Menne
dvkirankumar wrote: I am getting problem with read.csv() ... but if I am converting those files to UTF-8 formate and after loading to R-project Object and again I checked for coloumn names then its giving like ... ï..FILEID Add fileEncoding=UTF-8 Dieter -- View this

Re: [R] hi there!

2009-12-06 Thread milton ruser
Hi Dave, May be a good idea you (1) use subjects avoiding help, Hi there, problem, etc. The list is archived for future search, and nobody with problems with MCMC, Metropholis Hasting algorithm will search Hi there; (2) how about minimum reproducible problem? If you are needing use this kind of

Re: [R] hi, i have a problem in R

2009-08-06 Thread Jim Lemon
Hi vie, I've inserted comments within your message below. Gina Liao wrote: Hi, I'm new to R language. There is a problem I couldn't understand. Hope you can answer my question. when i type for (i in 1:10){ + print(sample(9,4,replace=T)) +} The above produces 10

Re: [R] hi, i have a problem in R

2009-08-05 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Gina Liao Sent: Wednesday, August 05, 2009 7:15 AM To: r-h...@stat.math.ethz.ch Subject: [R] hi, i have a problem in R Hi, I'm new to R language. There is a problem I

Re: [R] hi, i have a problem in R

2009-08-05 Thread Gina Liao
Hi, I'm sorry i didn't say clearly. for (i in 1:10){ + print(sample(9,4,replace=T)) + } [1] 2 5 5 2 [1] 6 2 1 5 [1] 9 5 9 7 [1] 2 6 4 1 [1] 8 5 4 5 [1] 6 2 3 7 [1] 6 1 7 3 [1] 9 5 4 7 [1] 6 4 8 5 [1] 1 5 6 3 I mean when it shows these reults. Then, what should I do to show the top

Re: [R] hi, i have a problem in R

2009-08-05 Thread Steve Lianoglou
Hi Gina, On Aug 5, 2009, at 11:25 PM, Gina Liao wrote: Hi, I'm sorry i didn't say clearly. for (i in 1:10){ + print(sample(9,4,replace=T)) + } [1] 2 5 5 2 [1] 6 2 1 5 [1] 9 5 9 7 [1] 2 6 4 1 [1] 8 5 4 5 [1] 6 2 3 7 [1] 6 1 7 3 [1] 9 5 4 7 [1] 6 4 8 5 [1] 1 5 6 3 I mean when it

Re: [R] hi friends, is there any wait function in R

2009-07-15 Thread Petr PIKAL
Hi deepak m r deepak...@gmail.com napsal dne 14.07.2009 16:07:16: Hi, I am not an expert to debug the R can u please help. best regards deepak See fortune(brain) You does not need to debug R. I believe R-Core will do it for you (If you really find some bug in R, which seems to be

Re: [R] hi friends, is there any wait function in R

2009-07-14 Thread ONKELINX, Thierry
Dear Deepak, You'll need to clarify what EXACTLY is happening? If empty plots are created then try to wrap the plot() in print() statements. print(plot(...)). Furthermore I would recommend to avoid attach. HTH, Thierry

Re: [R] hi friends, is there any wait function in R

2009-07-14 Thread deepak m r
Hi, Empty plot is getting i dont know why. can u please clarify how can i use Print function instead of plot function. best regards deepak On Tue, Jul 14, 2009 at 7:48 AM, Petr PIKALpetr.pi...@precheza.cz wrote: Hi For this type of problems I do multipage pdf. pdf(file, ) for (i in

Re: [R] hi friends, is there any wait function in R

2009-07-14 Thread deepak m r
Hi, where can i use this par(ask=TRUE) function i tried before dev.off() code but it is again the same. best regards, Deepak On Tue, Jul 14, 2009 at 8:56 AM, deepak m rdeepak...@gmail.com wrote: Hi,    Empty plot is getting i dont know why. can u please clarify how can i use Print function

Re: [R] hi friends, is there any wait function in R

2009-07-14 Thread Duncan Murdoch
On 7/14/2009 8:56 AM, deepak m r wrote: Hi, Empty plot is getting i dont know why. can u please clarify how can i use Print function instead of plot function. You need print() if you are using grid-based graphics (lattice, ggplot2,...) in a script. You are using classic graphics so it

Re: [R] hi friends, is there any wait function in R

2009-07-14 Thread deepak m r
Hi, I am not an expert to debug the R can u please help. best regards deepak On Tue, Jul 14, 2009 at 10:06 AM, deepak m rdeepak...@gmail.com wrote: Hi, On Tue, Jul 14, 2009 at 9:38 AM, Duncan Murdochmurd...@stats.uwo.ca wrote: On 7/14/2009 8:56 AM, deepak m r wrote: Hi,    Empty plot

Re: [R] hi friends, is there any wait function in R

2009-07-14 Thread deepak m r
Hi, On Tue, Jul 14, 2009 at 9:38 AM, Duncan Murdochmurd...@stats.uwo.ca wrote: On 7/14/2009 8:56 AM, deepak m r wrote: Hi,    Empty plot is getting i dont know why. can u please clarify how can i use Print function instead of plot function. You need print() if you are using grid-based

Re: [R] hi friends, is there any wait function in R

2009-07-14 Thread Duncan Murdoch
On 7/14/2009 10:07 AM, deepak m r wrote: Hi, I am not an expert to debug the R can u please help. No, because you haven't given us anything to work with. Simplify your example to something we can run, explain what you see and what you think you should see, and then maybe one of us could

Re: [R] hi friends, is there any wait function in R

2009-07-14 Thread deepak m r
hi, first plot command and legend commands are working but lines command is not working i dont know how it happening so. can u please help. best regards deepak On Tue, Jul 14, 2009 at 10:32 AM, Duncan Murdochmurd...@stats.uwo.ca wrote: On 7/14/2009 10:07 AM, deepak m r wrote: Hi,   I am not

Re: [R] hi, how can we avoid maskiing error in R

2009-07-14 Thread Charles C. Berry
On Tue, 14 Jul 2009, deepak m r wrote: Hi, How can we avoid masking variable in R Scripting. It really isn't clear what you are asking. Please follow the suggestions in the Posting Guide to frame a better question. Guessing what your issue might be, I suggest you consult

Re: [R] hi, how can we avoid maskiing error in R

2009-07-14 Thread deepak m r
I wrote a script in which there is a for group, In that for loop i am reading 4 files and plotting. while plotting it shows previous variable is masking like that it is showing. On Tue, Jul 14, 2009 at 1:05 PM, Charles C. Berrycbe...@tajo.ucsd.edu wrote: On Tue, 14 Jul 2009, deepak m r wrote:

Re: [R] hi, how can we avoid maskiing error in R

2009-07-14 Thread Steve Lianoglou
I wrote a script in which there is a for group, In that for loop i am For group? Did you mean loop there, also? reading 4 files and plotting. while plotting it shows previous variable is masking like that it is showing. Can you just paste your code into an email? It might be easier to see

Re: [R] Hi Friends

2009-07-10 Thread deepak m r
Hi, Can u please help me to cleaning my R History. I will be very greatful to u if u r helping in this regards. best regards, Deepak.M.R PhD Student Department of Computer Science University of Bologna Italy __ R-help@r-project.org mailing list

Re: [R] Hi Friends

2009-07-10 Thread deepak m r
Hi,   Can u please help me to cleaning my R History.  I will be very greatful to u if u r helping in this regards. best regards, Deepak.M.R PhD Student Department of Computer Science University of Bologna Italy __ R-help@r-project.org mailing

Re: [R] Hi Friends

2009-07-10 Thread Jim Lemon
deepak m r wrote: Hi, Can u please help me to cleaning my R History. I will be very greatful to u if u r helping in this regards. Hi Deepak, Do you mean deleting the .Rhistory file in the directory in which you run R? Jim __

Re: [R] Hi

2009-06-15 Thread Chuck Cleland
On 6/15/2009 5:42 PM, Oscar Bayona wrote: Hi I have a simple question. I want to run a n times a simple linear regession and save beta in a matrix but I´m not able. Imagine: Data.txt is a 10*5 file and want to run 4 different stimations always regressing first column on the rest. So I

Re: [R] Hi

2009-06-15 Thread Henrique Dallazuanna
You can use (*)apply functions: sapply(paste(V1 ~, names(dat)[2:5]), function(f)coef(lm(as.formula(f), data = dat))) Where V1 is your first column and dat is your data.frame object. On Mon, Jun 15, 2009 at 6:42 PM, Oscar Bayona osba...@gmail.com wrote: Hi I have a simple question. I want to

Re: [R] Hi, Coding problem

2009-02-26 Thread Uwe Ligges
Ssophia wrote: Hi, there Below is my code to one Homework question. I couldn't come up with the reasonable answer. PLEASE do read the posting guide http://www.R-project.org/posting-guide.html could you please help me to figure out what is

Re: [R] Hi, Coding problem

2009-02-26 Thread Greg Snow
It looks like what you did was something like: tmp - sim(100) table(tmp)/100 To get your results (it is easier for us to help if you tell us what you actually did, also setting a seed and telling us that seed helps us reproduce what you did exactly). The reason that you did not see 9 and 10

Re: [R] HI

2008-09-17 Thread nalluri pratap
If you have read the table as a data frame say, DF then the following should work   DF[DF==0]-NA --- On Tue, 16/9/08, Amit Patel [EMAIL PROTECTED] wrote: From: Amit Patel [EMAIL PROTECTED] Subject: [R] HI To: r-help@r-project.org Date: Tuesday, 16 September, 2008, 7:02 PM Does anyone know an

Re: [R] HI

2008-09-16 Thread Johannes Huesing
Amit Patel [EMAIL PROTECTED] [Tue, Sep 16, 2008 at 03:32:01PM CEST]: Does anyone know an easy way to convert all the zero values in a imported csv table into NA's Depends on the data structure you gave your imported table. In a single numeric vector (named, say, vec), the syntax is

Re: [R] HI

2008-09-16 Thread Richard . Cotton
Does anyone know an easy way to convert all the zero values in a imported csv table into NA's Depends on the data structure you gave your imported table. In a single numeric vector (named, say, vec), the syntax is is.na(vec[vec==0]) - TRUE That throws errors for me. An alternative is

Re: [R] HI

2008-09-16 Thread Marc Schwartz
on 09/16/2008 09:20 AM [EMAIL PROTECTED] wrote: Does anyone know an easy way to convert all the zero values in a imported csv table into NA's Depends on the data structure you gave your imported table. In a single numeric vector (named, say, vec), the syntax is is.na(vec[vec==0]) - TRUE

Re: [R] HI

2008-09-16 Thread Nutter, Benjamin
Perhaps a simpler way might be to use the na argument in read.table. for instance: read.table( filename, na=0, ...) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Amit Patel Sent: Tuesday, September 16, 2008 9:32 AM To: r-help@r-project.org Subject:

Re: [R] Hi~problem with the two sample test: ks2Test in the package of fbasics

2008-07-07 Thread Ben Bolker
l y pligly at gmail.com writes: Hi everyone, when I use the two sample Kolmogorov¨CSmirnov ks2Test like this: x=read.table(e:/x.txt) y=rstable(1000,alpha,beta,gamma,delta) I alway get results as follows: Warning messages: [snip] Strangely,I got a total same result! I really want to