Re: [R] Need help in R

2021-10-26 Thread Greg Minshall
Bert, > findprm <- function(n){ >nn <- seq.int(2, n) >i <- 2 >while(i <= floor(sqrt( n))){ > nn <- nn[(nn <= i) | (nn %% i > 0)] > i <- nn[nn > i][1] >} >nn > } +1 -- thanks! __ R-help@r-project.org mailing list -- To

Re: [R] Need help in R

2021-10-26 Thread Avi Gross via R-help
to guess and certainly won't supply a valid solution here! -Original Message- From: R-help On Behalf Of Anas Jamshed Sent: Tuesday, October 26, 2021 4:39 PM To: Rolf Turner Cc: R-help Mailing List Subject: Re: [R] Need help in R Its not homework . Basically i want to get easy solution:

Re: [R] Need help in R

2021-10-26 Thread Bert Gunter
Well, OK. I'll provide you an alternative and explanation. The way you are going about it would work, but it is usually not the best approach in R. Typically, the key in R is to whenever possible use whole object manipulation rather than iteration. This hides the iteration details and often

Re: [R] Need help in R

2021-10-26 Thread Anas Jamshed
Its not homework . Basically i want to get easy solution: I am trying this for ist problem: n= seq(1,100) for (j in n:100) { f = 1 i = 2 n = j while (i <= n / 2) { if (n %% i == 0) { f = 0 break } i = i + 1 } if (f

Re: [R] Need help in R

2021-10-26 Thread Jeff Newmiller
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. One of the items mentioned in the Posting Guide is that homework questions are not okay... we don't know what your instructor is looking for, and

Re: [R] Need help in R

2021-10-26 Thread Rolf Turner
On Wed, 27 Oct 2021 01:09:50 +0500 Anas Jamshed wrote: > I need help to these questions > > ### Question 1 > Create a variable containing a sequence of numbers from 1 to 100: > > Iterate over the variables and print those numbers which are prime. > > > ### Question 2 > Create a matrix of

Re: [R] Need help in R

2021-10-26 Thread Kevin Thorpe
This looks suspiciously like homework and this list does have a no homework policy. If it is not homework, please forgive the assumption. > On Oct 26, 2021, at 4:09 PM, Anas Jamshed wrote: > > I need help to these questions > > ### Question 1 > Create a variable containing a sequence of

[R] Need help in R

2021-10-26 Thread Anas Jamshed
I need help to these questions ### Question 1 Create a variable containing a sequence of numbers from 1 to 100: Iterate over the variables and print those numbers which are prime. ### Question 2 Create a matrix of size 3x3 called mat_1: Iterate over all the values one by one and print the

Re: [R] Need help in R code of the functional data .

2020-10-17 Thread Richard O'Keefe
I do not understand your question. Are you talking about "functional data analysis", the statistical analysis of data where some of the covariates are (samples from) continuous functions? There are books and tutorials about doing that in R. Are you talking about "functional data structures", as

Re: [R] Need help in R code of the functional data .

2020-10-16 Thread Rui Barradas
Hello, You have asked several times about functional data, I really do not understand what you mean but if you want to learn about writing R functions, take a look at doc/manual/R-intro.pdf, that comes with any installation of R, chap. 10 Writing your own functions. And at any of Hadley

[R] Need help in R code of the functional data .

2020-10-16 Thread Ablaye Ngalaba
Hello, Please, I want to know how the functional data are defined in programming code R. If possible an illustrative example of code can help me to understand better. Yours sincerely. [[alternative HTML version deleted]]

Re: [R] Need help with R studio

2018-12-14 Thread Madhavi Bhat
Thanks for the tip! On Fri, Dec 14, 2018 at 11:58 AM Jeff Newmiller wrote: > Looks fine to me, though you seem to be confused between what R is (on > topic in this mailing list) and what RStudio is (a fine software package > that relies on R but is not really on topic here). > > Do find the

Re: [R] Need help with R studio

2018-12-14 Thread Bert Gunter
... and R GUI is an interactive and command driven language. This means you have to learn how how to use it like a programming language. Please spend some time with R tutorials to do this -- there are many on the web. ... or see here for a GUI interface to some of R's basic, but most widely used,

Re: [R] Need help with R studio

2018-12-14 Thread Jeff Newmiller
Looks fine to me, though you seem to be confused between what R is (on topic in this mailing list) and what RStudio is (a fine software package that relies on R but is not really on topic here). Do find the link in the footer below about posting in R-help and read it before posting again. On

Re: [R] Need help with R in Boston area this Friday-Sunday paid gig

2014-09-24 Thread Olivier Crouzet
Sep 2014 22:20:07 To: r-help@r-project.org Reply-To: richa...@uchicago.edu Subject: [R] Need help with R in Boston area this Friday-Sunday paid gig I have a project that I have to do this Friday-Sunday. I have 2 dirty excel spreadsheets that I need brought into R, cleaned up, and then some

[R] Need help with R in Boston area this Friday-Sunday paid gig

2014-09-23 Thread Richard Lerner
I have a project that I have to do this Friday-Sunday. I have 2 dirty excel spreadsheets that I need brought into R, cleaned up, and then some descriptive statistics run. I am very new to R and not having fun. I can pay, but you will need to 1) be expert and 2) be willing to show me how the work

Re: [R] need help with R

2013-04-16 Thread John Kane
on how to describe a problem and lay out your code. Welcome John Kane Kingston ON Canada -Original Message- From: sam.ting...@gmail.com Sent: Mon, 15 Apr 2013 18:09:25 +1200 To: r-help@r-project.org Subject: [R] need help with R hey there can i email questions to this address

[R] need help with R

2013-04-15 Thread sam tingey
hey there can i email questions to this address to get help with using R thanks sam [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] need help with R

2013-04-15 Thread Sarah Goslee
Yes, but do read: http://www.R-project.org/posting-guide.html first. Sarah On Mon, Apr 15, 2013 at 2:09 AM, sam tingey sam.ting...@gmail.com wrote: hey there can i email questions to this address to get help with using R thanks sam __

Re: [R] need help with R

2013-04-15 Thread Dieter Menne
will post answers. -- View this message in context: http://r.789695.n4.nabble.com/need-help-with-R-tp4664259p4664264.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] Need help for R install

2012-05-21 Thread Cao, Renzhi (MU-Student)
Dear R committee: I am Renzhi, Ph.D student in computer science in the University of Missouri. I have one question for you. I try to install R in the linux server, but I don't have the root permission, is there any way to install the R locally? Thank you very much for helping me.

Re: [R] Need help for R install

2012-05-21 Thread Dominik Bruhn
Hy, I don't think there is a committee here but I'll try to help you nevertheless: If you don't have root permissions you can still install R in several ways: 1. Build it by yourself. If you have a compiler installed, you can build R from source. See [1] for a manual. 2. Install a virtual

Re: [R] Need help for R install

2012-05-21 Thread R. Michael Weylandt
It should certainly be possible to install to some directory where you have write permissions, but the exact specifics will depend on which Linux you're using. There are R-SIG-Debian and R-SIG-Fedora lists which can give OS specific advice, but it might be easier just to talk to your IT folks.

Re: [R] Need help for R install

2012-05-21 Thread Dominik Bruhn
-Student) Cc: r-help@R-project.org Subject: Re: [R] Need help for R install Hy, I don't think there is a committee here but I'll try to help you nevertheless: If you don't have root permissions you can still install R in several ways: 1. Build it by yourself. If you have a compiler installed

[R] need help for R Installation in AIX 5.3

2011-06-02 Thread Harvir Singh
Dear Sir/ Madam, I am trying to install R in my AIX-5.3 machine but its giving some error during configuration as given below: checking how to hardcode library paths into programs... immediate checking for cos in -lm... yes checking for sin in -lm... yes checking for dlopen in -ldl... yes

Re: [R] need help for R Installation in AIX 5.3

2011-06-02 Thread Prof Brian Ripley
1) Please ask about R installation on the R-devel list: as the posting guide says Questions likely to prompt discussion unintelligible to non-programmers should go to to R-devel. 2) This is covered quite explicitly in the 'R Installation and Administration Manual'. Search for 'readline'

[R] Need help with R-tasks

2010-01-14 Thread Nenita
-log transformed data for the two samples. Could you please tell me a code to log-transform the data? Is it possibly: Take the log-log transformation with n1 Y1=log(Y1) X1=log(X1) with n2 Y2=log(Y2) X2=log(X2) -- View this message in context: http://n4.nabble.com/Need-help

[R] Need Help on r-programming

2008-12-27 Thread Karen Goh
Hi, I would like to know how do I use R to evaluate the contribution of each regressor to a model using t-test with 5% significance level? I have attached a file which I have completed and am stuck at that question. __ R-help@r-project.org

Re: [R] Need Help on r-programming

2008-12-27 Thread Uwe Ligges
Karen Goh wrote: Hi, I would like to know how do I use R to evaluate the contribution of each regressor to a model using t-test with 5% significance level? What kind of model? I guess a simple linear regression model? I have attached a file which I have completed and am stuck at that