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
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:
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
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
> 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
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
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
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
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
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
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]]
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
... 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,
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
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
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
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
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
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
__
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
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.
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
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.
-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
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
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'
-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
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
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
29 matches
Mail list logo