Re: [R] Hacked

2018-04-17 Thread K. Elo
Hi!

Not just an gmail issue. After my last reply I have gotten tons of
spams from "Samantha Smith". Keep hitting my "rank as spam"-button in
the hope that my MUA could learn :)

Best,
Kimmo

ti, 2018-04-17 kello 19:34 +, Ding, Yuan Chun kirjoitti:
> No, I do not use gmail, still got dirty spam email twice. 
> 
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of
> Fowler, Mark
> Sent: Tuesday, April 17, 2018 12:32 PM
> To: Luis Puerto; Peter Langfelder
> Cc: R-Help ML R-Project; Neotropical bat risk assessments
> Subject: Re: [R] Hacked
> 
> [Attention: This email came from an external source. Do not open
> attachments or click on links from unknown senders or unexpected
> emails.]
> 
> 
> 
> 
> 
> Just an observation. I have not seen the spam you are discussing.
> Possibly it is specific to gmail addresses?
> 
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Luis
> Puerto
> Sent: April 17, 2018 4:11 PM
> To: Peter Langfelder
> Cc: R-Help ML R-Project; Neotropical bat risk assessments
> Subject: Re: [R] Hacked
> 
> Hi! 
> 
> This happened to me also! I just got a spam email just after posting
> and then in following days I got obnoxious spam emails in my spam
> filter. As the others, I think that there is some kind of bot
> subscribed to the list, but also perhaps a spider or crawler
> monitoring the R-Help archive and getting email addresses there.
> Nabble is a possibility too. 
> 
> > 
> > On 17 Apr 2018, at 21:50, Peter Langfelder  > com> wrote:
> > 
> > I got some spam emails after my last post to the list, and the
> > emails 
> > did not seem to go through r-help. The spammers may be subscribed
> > to 
> > the r-help, or they get the poster emails from some of the web
> > copies 
> > of this list (nabble or similar).
> > 
> > Peter
> > 
> > On Tue, Apr 17, 2018 at 11:37 AM, Ulrik Stervbo  > l.com> wrote:
> > > 
> > > I asked the moderators about it. This is the reply
> > > 
> > > "Other moderators have looked into this a bit and may be able to
> > > shed 
> > > more light on it. This is a "new" tactic where the spammers
> > > appear to 
> > > reply to the r-help post. They are not, however, going through
> > > the r-help server.
> > > 
> > > It also seems that this does not happen to everyone.
> > > 
> > > I am not sure how you can automatically block the spammers.
> > > 
> > > Sorry I cannot be of more help."
> > > 
> > > --Ulrik
> > > 
> > > Jeff Newmiller  schrieb am Di., 17.
> > > Apr. 
> > > 2018,
> > > 14:59:
> > > 
> > > > 
> > > > Likely a spammer has joined the mailing list and is auto-
> > > > replying to 
> > > > posts made to the list. Unlikely that the list itself has been 
> > > > "hacked". Agree that it is obnoxious.
> > > > 
> > > > On April 17, 2018 5:01:10 AM PDT, Neotropical bat risk
> > > > assessments < 
> > > > neotropical.b...@gmail.com> wrote:
> > > > > 
> > > > > Hi all,
> > > > > 
> > > > > Site has been hacked?
> > > > > Bad SPAM arriving
> > > > > 
> > > > > __
> > > > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,
> > > > > see 
> > > > > https://stat.ethz.ch/mailman/listinfo/r-help
> > > > > PLEASE do read the posting guide
> > > > > http://www.R-project.org/posting-guide.html
> > > > > and provide commented, minimal, self-contained, reproducible
> > > > > code.
> > > > --
> > > > Sent from my phone. Please excuse my brevity.
> > > > 
> > > > __
> > > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,
> > > > see 
> > > > https://stat.ethz.ch/mailman/listinfo/r-help
> > > > PLEASE do read the posting guide
> > > > http://www.R-project.org/posting-guide.html
> > > > and provide commented, minimal, self-contained, reproducible
> > > > code.
> > > > 
> > >    [[alternative HTML version deleted]]
> > > 
> > > __
> > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,
> > > see 
> > > https://stat.ethz.ch/mailman/listinfo/r-help
> > > PLEASE do read the posting guide
> > > http://www.R-project.org/posting-guide.html
> > > and provide commented, minimal, self-contained, reproducible
> > > code.
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see htt
> ps://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-gui
> de.html
> and provide commented, minimal, self-contained, reproducible code.
> 
> 

Re: [R] Hacked

2018-04-17 Thread Jim Lemon
It's happened 3 or 4 times for me, only on the R list. It only happens
when answering certain questions and I think all responders to that
question may get it. Seems to have nothing to do with the OP. I just
block the email address.

Jim

On Wed, Apr 18, 2018 at 1:33 PM, Mark Leeds  wrote:
> Hi All: I lately get a lot more spam-porn type emails lately also but I
> don't know if they are due to me being on
> the R-list.
>
>
>
> On Tue, Apr 17, 2018 at 5:09 PM, Rui Barradas  wrote:
>
>> Hello,
>>
>> Nor do I, no gmail, also got spam.
>>
>> Rui Barradas
>>
>> On 4/17/2018 8:34 PM, Ding, Yuan Chun wrote:
>>
>>> No, I do not use gmail, still got dirty spam email twice.
>>>
>>> -Original Message-
>>> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Fowler,
>>> Mark
>>> Sent: Tuesday, April 17, 2018 12:32 PM
>>> To: Luis Puerto; Peter Langfelder
>>> Cc: R-Help ML R-Project; Neotropical bat risk assessments
>>> Subject: Re: [R] Hacked
>>>
>>> [Attention: This email came from an external source. Do not open
>>> attachments or click on links from unknown senders or unexpected emails.]
>>>
>>>
>>>
>>>
>>>
>>> Just an observation. I have not seen the spam you are discussing.
>>> Possibly it is specific to gmail addresses?
>>>
>>> -Original Message-
>>> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Luis
>>> Puerto
>>> Sent: April 17, 2018 4:11 PM
>>> To: Peter Langfelder
>>> Cc: R-Help ML R-Project; Neotropical bat risk assessments
>>> Subject: Re: [R] Hacked
>>>
>>> Hi!
>>>
>>> This happened to me also! I just got a spam email just after posting and
>>> then in following days I got obnoxious spam emails in my spam filter. As
>>> the others, I think that there is some kind of bot subscribed to the list,
>>> but also perhaps a spider or crawler monitoring the R-Help archive and
>>> getting email addresses there. Nabble is a possibility too.
>>>
>>> On 17 Apr 2018, at 21:50, Peter Langfelder 
 wrote:

 I got some spam emails after my last post to the list, and the emails
 did not seem to go through r-help. The spammers may be subscribed to
 the r-help, or they get the poster emails from some of the web copies
 of this list (nabble or similar).

 Peter

 On Tue, Apr 17, 2018 at 11:37 AM, Ulrik Stervbo 
 wrote:

> I asked the moderators about it. This is the reply
>
> "Other moderators have looked into this a bit and may be able to shed
> more light on it. This is a "new" tactic where the spammers appear to
> reply to the r-help post. They are not, however, going through the
> r-help server.
>
> It also seems that this does not happen to everyone.
>
> I am not sure how you can automatically block the spammers.
>
> Sorry I cannot be of more help."
>
> --Ulrik
>
> Jeff Newmiller  schrieb am Di., 17. Apr.
> 2018,
> 14:59:
>
> Likely a spammer has joined the mailing list and is auto-replying to
>> posts made to the list. Unlikely that the list itself has been
>> "hacked". Agree that it is obnoxious.
>>
>> On April 17, 2018 5:01:10 AM PDT, Neotropical bat risk assessments <
>> neotropical.b...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> Site has been hacked?
>>> Bad SPAM arriving
>>>
>>> __
>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>
>> --
>> Sent from my phone. Please excuse my brevity.
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

 __
 R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.


Re: [R] Hacked

2018-04-17 Thread Mark Leeds
Hi All: I lately get a lot more spam-porn type emails lately also but I
don't know if they are due to me being on
the R-list.



On Tue, Apr 17, 2018 at 5:09 PM, Rui Barradas  wrote:

> Hello,
>
> Nor do I, no gmail, also got spam.
>
> Rui Barradas
>
> On 4/17/2018 8:34 PM, Ding, Yuan Chun wrote:
>
>> No, I do not use gmail, still got dirty spam email twice.
>>
>> -Original Message-
>> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Fowler,
>> Mark
>> Sent: Tuesday, April 17, 2018 12:32 PM
>> To: Luis Puerto; Peter Langfelder
>> Cc: R-Help ML R-Project; Neotropical bat risk assessments
>> Subject: Re: [R] Hacked
>>
>> [Attention: This email came from an external source. Do not open
>> attachments or click on links from unknown senders or unexpected emails.]
>>
>>
>>
>>
>>
>> Just an observation. I have not seen the spam you are discussing.
>> Possibly it is specific to gmail addresses?
>>
>> -Original Message-
>> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Luis
>> Puerto
>> Sent: April 17, 2018 4:11 PM
>> To: Peter Langfelder
>> Cc: R-Help ML R-Project; Neotropical bat risk assessments
>> Subject: Re: [R] Hacked
>>
>> Hi!
>>
>> This happened to me also! I just got a spam email just after posting and
>> then in following days I got obnoxious spam emails in my spam filter. As
>> the others, I think that there is some kind of bot subscribed to the list,
>> but also perhaps a spider or crawler monitoring the R-Help archive and
>> getting email addresses there. Nabble is a possibility too.
>>
>> On 17 Apr 2018, at 21:50, Peter Langfelder 
>>> wrote:
>>>
>>> I got some spam emails after my last post to the list, and the emails
>>> did not seem to go through r-help. The spammers may be subscribed to
>>> the r-help, or they get the poster emails from some of the web copies
>>> of this list (nabble or similar).
>>>
>>> Peter
>>>
>>> On Tue, Apr 17, 2018 at 11:37 AM, Ulrik Stervbo 
>>> wrote:
>>>
 I asked the moderators about it. This is the reply

 "Other moderators have looked into this a bit and may be able to shed
 more light on it. This is a "new" tactic where the spammers appear to
 reply to the r-help post. They are not, however, going through the
 r-help server.

 It also seems that this does not happen to everyone.

 I am not sure how you can automatically block the spammers.

 Sorry I cannot be of more help."

 --Ulrik

 Jeff Newmiller  schrieb am Di., 17. Apr.
 2018,
 14:59:

 Likely a spammer has joined the mailing list and is auto-replying to
> posts made to the list. Unlikely that the list itself has been
> "hacked". Agree that it is obnoxious.
>
> On April 17, 2018 5:01:10 AM PDT, Neotropical bat risk assessments <
> neotropical.b...@gmail.com> wrote:
>
>> Hi all,
>>
>> Site has been hacked?
>> Bad SPAM arriving
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
> --
> Sent from my phone. Please excuse my brevity.
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
 [[alternative HTML version deleted]]

 __
 R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.

>>>
>>> __
>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posti
>> ng-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 

Re: [R] Hacked

2018-04-17 Thread Roslina Zakaria
Mee too got nasty email after i responded the r help email.

Sent from my Sony Xperia™ smartphone

 Sariya, Sanjeev wrote 

>I've been receiving nasty e-mails too. No g-mail, but official/work e-mail 
>address. 
>
>-Original Message-
>From: R-help  On Behalf Of Rui Barradas
>Sent: Tuesday, April 17, 2018 5:09 PM
>To: Ding, Yuan Chun ; Fowler, Mark 
>; Luis Puerto ; Peter 
>Langfelder 
>Cc: R-Help ML R-Project ; Neotropical bat risk 
>assessments 
>Subject: Re: [R] Hacked
>
>Hello,
>
>Nor do I, no gmail, also got spam.
>
>Rui Barradas
>
>On 4/17/2018 8:34 PM, Ding, Yuan Chun wrote:
>> No, I do not use gmail, still got dirty spam email twice.
>> 
>> -Original Message-
>> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of 
>> Fowler, Mark
>> Sent: Tuesday, April 17, 2018 12:32 PM
>> To: Luis Puerto; Peter Langfelder
>> Cc: R-Help ML R-Project; Neotropical bat risk assessments
>> Subject: Re: [R] Hacked
>> 
>> [Attention: This email came from an external source. Do not open 
>> attachments or click on links from unknown senders or unexpected 
>> emails.]
>> 
>> 
>> 
>> 
>> 
>> Just an observation. I have not seen the spam you are discussing. Possibly 
>> it is specific to gmail addresses?
>> 
>> -Original Message-
>> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Luis 
>> Puerto
>> Sent: April 17, 2018 4:11 PM
>> To: Peter Langfelder
>> Cc: R-Help ML R-Project; Neotropical bat risk assessments
>> Subject: Re: [R] Hacked
>> 
>> Hi!
>> 
>> This happened to me also! I just got a spam email just after posting and 
>> then in following days I got obnoxious spam emails in my spam filter. As the 
>> others, I think that there is some kind of bot subscribed to the list, but 
>> also perhaps a spider or crawler monitoring the R-Help archive and getting 
>> email addresses there. Nabble is a possibility too.
>> 
>>> On 17 Apr 2018, at 21:50, Peter Langfelder  
>>> wrote:
>>>
>>> I got some spam emails after my last post to the list, and the emails 
>>> did not seem to go through r-help. The spammers may be subscribed to 
>>> the r-help, or they get the poster emails from some of the web copies 
>>> of this list (nabble or similar).
>>>
>>> Peter
>>>
>>> On Tue, Apr 17, 2018 at 11:37 AM, Ulrik Stervbo  
>>> wrote:
 I asked the moderators about it. This is the reply

 "Other moderators have looked into this a bit and may be able to 
 shed more light on it. This is a "new" tactic where the spammers 
 appear to reply to the r-help post. They are not, however, going through 
 the r-help server.

 It also seems that this does not happen to everyone.

 I am not sure how you can automatically block the spammers.

 Sorry I cannot be of more help."

 --Ulrik

 Jeff Newmiller  schrieb am Di., 17. Apr.
 2018,
 14:59:

> Likely a spammer has joined the mailing list and is auto-replying 
> to posts made to the list. Unlikely that the list itself has been 
> "hacked". Agree that it is obnoxious.
>
> On April 17, 2018 5:01:10 AM PDT, Neotropical bat risk assessments 
> < neotropical.b...@gmail.com> wrote:
>> Hi all,
>>
>> Site has been hacked?
>> Bad SPAM arriving
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
> --
> Sent from my phone. Please excuse my brevity.
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

 [[alternative HTML version deleted]]

 __
 R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.
>>>
>>> __
>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, 

Re: [R] Hacked

2018-04-17 Thread Erin Hodgess
Me as well, but I have gmail.



On Tue, Apr 17, 2018 at 4:24 PM Sariya, Sanjeev 
wrote:

> I've been receiving nasty e-mails too. No g-mail, but official/work e-mail
> address.
>
> -Original Message-
> From: R-help  On Behalf Of Rui Barradas
> Sent: Tuesday, April 17, 2018 5:09 PM
> To: Ding, Yuan Chun ; Fowler, Mark <
> mark.fow...@dfo-mpo.gc.ca>; Luis Puerto ; Peter
> Langfelder 
> Cc: R-Help ML R-Project ; Neotropical bat risk
> assessments 
> Subject: Re: [R] Hacked
>
> Hello,
>
> Nor do I, no gmail, also got spam.
>
> Rui Barradas
>
> On 4/17/2018 8:34 PM, Ding, Yuan Chun wrote:
> > No, I do not use gmail, still got dirty spam email twice.
> >
> > -Original Message-
> > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of
> > Fowler, Mark
> > Sent: Tuesday, April 17, 2018 12:32 PM
> > To: Luis Puerto; Peter Langfelder
> > Cc: R-Help ML R-Project; Neotropical bat risk assessments
> > Subject: Re: [R] Hacked
> >
> > [Attention: This email came from an external source. Do not open
> > attachments or click on links from unknown senders or unexpected
> > emails.]
> >
> >
> >
> >
> >
> > Just an observation. I have not seen the spam you are discussing.
> Possibly it is specific to gmail addresses?
> >
> > -Original Message-
> > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Luis
> > Puerto
> > Sent: April 17, 2018 4:11 PM
> > To: Peter Langfelder
> > Cc: R-Help ML R-Project; Neotropical bat risk assessments
> > Subject: Re: [R] Hacked
> >
> > Hi!
> >
> > This happened to me also! I just got a spam email just after posting and
> then in following days I got obnoxious spam emails in my spam filter. As
> the others, I think that there is some kind of bot subscribed to the list,
> but also perhaps a spider or crawler monitoring the R-Help archive and
> getting email addresses there. Nabble is a possibility too.
> >
> >> On 17 Apr 2018, at 21:50, Peter Langfelder 
> wrote:
> >>
> >> I got some spam emails after my last post to the list, and the emails
> >> did not seem to go through r-help. The spammers may be subscribed to
> >> the r-help, or they get the poster emails from some of the web copies
> >> of this list (nabble or similar).
> >>
> >> Peter
> >>
> >> On Tue, Apr 17, 2018 at 11:37 AM, Ulrik Stervbo <
> ulrik.ster...@gmail.com> wrote:
> >>> I asked the moderators about it. This is the reply
> >>>
> >>> "Other moderators have looked into this a bit and may be able to
> >>> shed more light on it. This is a "new" tactic where the spammers
> >>> appear to reply to the r-help post. They are not, however, going
> through the r-help server.
> >>>
> >>> It also seems that this does not happen to everyone.
> >>>
> >>> I am not sure how you can automatically block the spammers.
> >>>
> >>> Sorry I cannot be of more help."
> >>>
> >>> --Ulrik
> >>>
> >>> Jeff Newmiller  schrieb am Di., 17. Apr.
> >>> 2018,
> >>> 14:59:
> >>>
>  Likely a spammer has joined the mailing list and is auto-replying
>  to posts made to the list. Unlikely that the list itself has been
>  "hacked". Agree that it is obnoxious.
> 
>  On April 17, 2018 5:01:10 AM PDT, Neotropical bat risk assessments
>  < neotropical.b...@gmail.com> wrote:
> > Hi all,
> >
> > Site has been hacked?
> > Bad SPAM arriving
> >
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> 
>  --
>  Sent from my phone. Please excuse my brevity.
> 
>  __
>  R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>  https://stat.ethz.ch/mailman/listinfo/r-help
>  PLEASE do read the posting guide
>  http://www.R-project.org/posting-guide.html
>  and provide commented, minimal, self-contained, reproducible code.
> 
> >>>
> >>> [[alternative HTML version deleted]]
> >>>
> >>> __
> >>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >>> https://stat.ethz.ch/mailman/listinfo/r-help
> >>> PLEASE do read the posting guide
> >>> http://www.R-project.org/posting-guide.html
> >>> and provide commented, minimal, self-contained, reproducible code.
> >>
> >> __
> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide
> >> http://www.R-project.org/posting-guide.html

Re: [R] Hacked

2018-04-17 Thread Sariya, Sanjeev
I've been receiving nasty e-mails too. No g-mail, but official/work e-mail 
address. 

-Original Message-
From: R-help  On Behalf Of Rui Barradas
Sent: Tuesday, April 17, 2018 5:09 PM
To: Ding, Yuan Chun ; Fowler, Mark ; 
Luis Puerto ; Peter Langfelder 

Cc: R-Help ML R-Project ; Neotropical bat risk 
assessments 
Subject: Re: [R] Hacked

Hello,

Nor do I, no gmail, also got spam.

Rui Barradas

On 4/17/2018 8:34 PM, Ding, Yuan Chun wrote:
> No, I do not use gmail, still got dirty spam email twice.
> 
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of 
> Fowler, Mark
> Sent: Tuesday, April 17, 2018 12:32 PM
> To: Luis Puerto; Peter Langfelder
> Cc: R-Help ML R-Project; Neotropical bat risk assessments
> Subject: Re: [R] Hacked
> 
> [Attention: This email came from an external source. Do not open 
> attachments or click on links from unknown senders or unexpected 
> emails.]
> 
> 
> 
> 
> 
> Just an observation. I have not seen the spam you are discussing. Possibly it 
> is specific to gmail addresses?
> 
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Luis 
> Puerto
> Sent: April 17, 2018 4:11 PM
> To: Peter Langfelder
> Cc: R-Help ML R-Project; Neotropical bat risk assessments
> Subject: Re: [R] Hacked
> 
> Hi!
> 
> This happened to me also! I just got a spam email just after posting and then 
> in following days I got obnoxious spam emails in my spam filter. As the 
> others, I think that there is some kind of bot subscribed to the list, but 
> also perhaps a spider or crawler monitoring the R-Help archive and getting 
> email addresses there. Nabble is a possibility too.
> 
>> On 17 Apr 2018, at 21:50, Peter Langfelder  
>> wrote:
>>
>> I got some spam emails after my last post to the list, and the emails 
>> did not seem to go through r-help. The spammers may be subscribed to 
>> the r-help, or they get the poster emails from some of the web copies 
>> of this list (nabble or similar).
>>
>> Peter
>>
>> On Tue, Apr 17, 2018 at 11:37 AM, Ulrik Stervbo  
>> wrote:
>>> I asked the moderators about it. This is the reply
>>>
>>> "Other moderators have looked into this a bit and may be able to 
>>> shed more light on it. This is a "new" tactic where the spammers 
>>> appear to reply to the r-help post. They are not, however, going through 
>>> the r-help server.
>>>
>>> It also seems that this does not happen to everyone.
>>>
>>> I am not sure how you can automatically block the spammers.
>>>
>>> Sorry I cannot be of more help."
>>>
>>> --Ulrik
>>>
>>> Jeff Newmiller  schrieb am Di., 17. Apr.
>>> 2018,
>>> 14:59:
>>>
 Likely a spammer has joined the mailing list and is auto-replying 
 to posts made to the list. Unlikely that the list itself has been 
 "hacked". Agree that it is obnoxious.

 On April 17, 2018 5:01:10 AM PDT, Neotropical bat risk assessments 
 < neotropical.b...@gmail.com> wrote:
> Hi all,
>
> Site has been hacked?
> Bad SPAM arriving
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

 --
 Sent from my phone. Please excuse my brevity.

 __
 R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.

>>>
>>> [[alternative HTML version deleted]]
>>>
>>> __
>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> 

Re: [R] Time intervals in a datframe

2018-04-17 Thread David Winsemius

> On Apr 17, 2018, at 10:10 AM, Allaisone 1  wrote:
> 
> 
> Hi all
> 
> I have a list of multiple datframes with the same column headers. The last 
> column in each datframe contains a vector of "Interval" class after I have 
> produced this column using "lubridate" package. I needed to convert my list 
> of dataframes to be in a single dataframe for further analysis. I did this 
> using the following syntax :
> 
> SingleDataframe <- ldply (MylistofDFs,data.frame)
> 
> The problem is that after this conversion, the the column with time intervals 
> has been converted into numeric type with number of seconds during the time 
> interval instead of the interval itself as follows :
> 
> The column Before conversion looks like this:
> 
> TimeInterval (class 'interval')
> 2012-12-13 UTC--2016-02-16 UTC
> 
> but after conversion the list into dataframe,
> This column becomes number of seconds as follows :
> 
> TimeInterval (class : numeric)
> 100224000
> 
> Is there any method to convert my list into a a single dataframe without 
> affecting the types of
> vectors in my dataframes?. i.e. I want to keep the interval column as it with 
> avoidance its conversion into numeric when I convert my list of dataframes 
> into a single dataframe... Or at least keep the same format of the interval 
> even if this has been changed to "character" type vector even though I prefer 
> to be in "interval" class.

There is no base R class called "interval". Perhaps lubridate has not provided 
you with an `ldply( . ,data.frame)`-accessible method for concatenation. You 
should construct an example that starts with the loading code for whatever 
package(s) are being used.


> 
> Any suggestions would be very appreciated.
> 
> Regards
> 
>   [[alternative HTML version deleted]]
> 

You should also read the Posting Guide.


> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius
Alameda, CA, USA

'Any technology distinguishable from magic is insufficiently advanced.'   
-Gehm's Corollary to Clarke's Third Law

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Hacked

2018-04-17 Thread Rui Barradas

Hello,

Nor do I, no gmail, also got spam.

Rui Barradas

On 4/17/2018 8:34 PM, Ding, Yuan Chun wrote:

No, I do not use gmail, still got dirty spam email twice.

-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Fowler, Mark
Sent: Tuesday, April 17, 2018 12:32 PM
To: Luis Puerto; Peter Langfelder
Cc: R-Help ML R-Project; Neotropical bat risk assessments
Subject: Re: [R] Hacked

[Attention: This email came from an external source. Do not open attachments or 
click on links from unknown senders or unexpected emails.]





Just an observation. I have not seen the spam you are discussing. Possibly it 
is specific to gmail addresses?

-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Luis Puerto
Sent: April 17, 2018 4:11 PM
To: Peter Langfelder
Cc: R-Help ML R-Project; Neotropical bat risk assessments
Subject: Re: [R] Hacked

Hi!

This happened to me also! I just got a spam email just after posting and then 
in following days I got obnoxious spam emails in my spam filter. As the others, 
I think that there is some kind of bot subscribed to the list, but also perhaps 
a spider or crawler monitoring the R-Help archive and getting email addresses 
there. Nabble is a possibility too.


On 17 Apr 2018, at 21:50, Peter Langfelder  wrote:

I got some spam emails after my last post to the list, and the emails
did not seem to go through r-help. The spammers may be subscribed to
the r-help, or they get the poster emails from some of the web copies
of this list (nabble or similar).

Peter

On Tue, Apr 17, 2018 at 11:37 AM, Ulrik Stervbo  wrote:

I asked the moderators about it. This is the reply

"Other moderators have looked into this a bit and may be able to shed
more light on it. This is a "new" tactic where the spammers appear to
reply to the r-help post. They are not, however, going through the r-help 
server.

It also seems that this does not happen to everyone.

I am not sure how you can automatically block the spammers.

Sorry I cannot be of more help."

--Ulrik

Jeff Newmiller  schrieb am Di., 17. Apr.
2018,
14:59:


Likely a spammer has joined the mailing list and is auto-replying to
posts made to the list. Unlikely that the list itself has been
"hacked". Agree that it is obnoxious.

On April 17, 2018 5:01:10 AM PDT, Neotropical bat risk assessments <
neotropical.b...@gmail.com> wrote:

Hi all,

Site has been hacked?
Bad SPAM arriving

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


--
Sent from my phone. Please excuse my brevity.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


-
-SECURITY/CONFIDENTIALITY WARNING-
This message (and any attachments) are intended solely f...{{dropped:28}}

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



__

Re: [R] nMDS with R: missing values

2018-04-17 Thread David L Carlson
I think you will have to provide some more information. What function/package 
are you using for nMDS (eg. isoMDS in MASS, monoMDS in vegan)? What 
function/package are you using to compute your distance/dissimilarities (eg. 
dist in stats, vegdist in vegan)? 

Zero represents absence. It is not a missing value, so that part of your 
question is not clear.

The dist() function computes distance ignoring missing values if they are 
properly represented as NAs in the data. The vegdist() function does this if 
na.rm=TRUE. 

The results will be affected by how much data is missing. It would be useful to 
know if the missing values are concentrated in particular rows or columns so 
that eliminating a few rows and columns could substantially reduce the 
percentage of missing values.


David L Carlson
Department of Anthropology
Texas A University
College Station, TX 77843-4352


0-Original Message-
From: R-help  On Behalf Of Jessie Woodbridge
Sent: Tuesday, April 17, 2018 2:05 PM
To: r-help@r-project.org
Subject: [R] nMDS with R: missing values

Dear All,

I was wondering whether anyone might be able to provide some advice with an 
nMDS / R problem. I’m trying to run nMDS on a dataset that contains many 
missing values and was wondering how I can account for the missing values when 
running nMDS? It seems as though the data are being grouped depending on where 
the zero values appear. Any suggestions greatly appreciated. Thank you very 
much in advance.

Apologies if this message isn’t relevant to you.

Kind regards,

Jessie


[http://www.plymouth.ac.uk/images/email_footer.gif]

This email and any files with it are confidential and intended solely for the 
use of the recipient to whom it is addressed. If you are not the intended 
recipient then copying, distribution or other use of the information contained 
is strictly prohibited and you should not rely on it. If you have received this 
email in error please let the sender know immediately and delete it from your 
system(s). Internet emails are not necessarily secure. While we take every 
care, Plymouth University accepts no responsibility for viruses and it is your 
responsibility to scan emails and their attachments. Plymouth University does 
not accept responsibility for any changes made after it was sent. Nothing in 
this email or its attachments constitutes an order for goods or services unless 
accompanied by an official order form.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Hacked

2018-04-17 Thread Ding, Yuan Chun
No, I do not use gmail, still got dirty spam email twice. 

-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Fowler, Mark
Sent: Tuesday, April 17, 2018 12:32 PM
To: Luis Puerto; Peter Langfelder
Cc: R-Help ML R-Project; Neotropical bat risk assessments
Subject: Re: [R] Hacked

[Attention: This email came from an external source. Do not open attachments or 
click on links from unknown senders or unexpected emails.]





Just an observation. I have not seen the spam you are discussing. Possibly it 
is specific to gmail addresses?

-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Luis Puerto
Sent: April 17, 2018 4:11 PM
To: Peter Langfelder
Cc: R-Help ML R-Project; Neotropical bat risk assessments
Subject: Re: [R] Hacked

Hi! 

This happened to me also! I just got a spam email just after posting and then 
in following days I got obnoxious spam emails in my spam filter. As the others, 
I think that there is some kind of bot subscribed to the list, but also perhaps 
a spider or crawler monitoring the R-Help archive and getting email addresses 
there. Nabble is a possibility too. 

> On 17 Apr 2018, at 21:50, Peter Langfelder  wrote:
> 
> I got some spam emails after my last post to the list, and the emails 
> did not seem to go through r-help. The spammers may be subscribed to 
> the r-help, or they get the poster emails from some of the web copies 
> of this list (nabble or similar).
> 
> Peter
> 
> On Tue, Apr 17, 2018 at 11:37 AM, Ulrik Stervbo  
> wrote:
>> I asked the moderators about it. This is the reply
>> 
>> "Other moderators have looked into this a bit and may be able to shed 
>> more light on it. This is a "new" tactic where the spammers appear to 
>> reply to the r-help post. They are not, however, going through the r-help 
>> server.
>> 
>> It also seems that this does not happen to everyone.
>> 
>> I am not sure how you can automatically block the spammers.
>> 
>> Sorry I cannot be of more help."
>> 
>> --Ulrik
>> 
>> Jeff Newmiller  schrieb am Di., 17. Apr. 
>> 2018,
>> 14:59:
>> 
>>> Likely a spammer has joined the mailing list and is auto-replying to 
>>> posts made to the list. Unlikely that the list itself has been 
>>> "hacked". Agree that it is obnoxious.
>>> 
>>> On April 17, 2018 5:01:10 AM PDT, Neotropical bat risk assessments < 
>>> neotropical.b...@gmail.com> wrote:
 Hi all,
 
 Site has been hacked?
 Bad SPAM arriving
 
 __
 R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.
>>> 
>>> --
>>> Sent from my phone. Please excuse my brevity.
>>> 
>>> __
>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>> 
>> 
>>[[alternative HTML version deleted]]
>> 
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


-
-SECURITY/CONFIDENTIALITY WARNING-
This message (and any attachments) are intended solely f...{{dropped:28}}

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide 

Re: [R] Hacked

2018-04-17 Thread Fowler, Mark
Just an observation. I have not seen the spam you are discussing. Possibly it 
is specific to gmail addresses?

-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Luis Puerto
Sent: April 17, 2018 4:11 PM
To: Peter Langfelder
Cc: R-Help ML R-Project; Neotropical bat risk assessments
Subject: Re: [R] Hacked

Hi! 

This happened to me also! I just got a spam email just after posting and then 
in following days I got obnoxious spam emails in my spam filter. As the others, 
I think that there is some kind of bot subscribed to the list, but also perhaps 
a spider or crawler monitoring the R-Help archive and getting email addresses 
there. Nabble is a possibility too. 

> On 17 Apr 2018, at 21:50, Peter Langfelder  wrote:
> 
> I got some spam emails after my last post to the list, and the emails 
> did not seem to go through r-help. The spammers may be subscribed to 
> the r-help, or they get the poster emails from some of the web copies 
> of this list (nabble or similar).
> 
> Peter
> 
> On Tue, Apr 17, 2018 at 11:37 AM, Ulrik Stervbo  
> wrote:
>> I asked the moderators about it. This is the reply
>> 
>> "Other moderators have looked into this a bit and may be able to shed 
>> more light on it. This is a "new" tactic where the spammers appear to 
>> reply to the r-help post. They are not, however, going through the r-help 
>> server.
>> 
>> It also seems that this does not happen to everyone.
>> 
>> I am not sure how you can automatically block the spammers.
>> 
>> Sorry I cannot be of more help."
>> 
>> --Ulrik
>> 
>> Jeff Newmiller  schrieb am Di., 17. Apr. 
>> 2018,
>> 14:59:
>> 
>>> Likely a spammer has joined the mailing list and is auto-replying to 
>>> posts made to the list. Unlikely that the list itself has been 
>>> "hacked". Agree that it is obnoxious.
>>> 
>>> On April 17, 2018 5:01:10 AM PDT, Neotropical bat risk assessments < 
>>> neotropical.b...@gmail.com> wrote:
 Hi all,
 
 Site has been hacked?
 Bad SPAM arriving
 
 __
 R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.
>>> 
>>> --
>>> Sent from my phone. Please excuse my brevity.
>>> 
>>> __
>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>> 
>> 
>>[[alternative HTML version deleted]]
>> 
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide 
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Hacked

2018-04-17 Thread Luis Puerto
Hi! 

This happened to me also! I just got a spam email just after posting and then 
in following days I got obnoxious spam emails in my spam filter. As the others, 
I think that there is some kind of bot subscribed to the list, but also perhaps 
a spider or crawler monitoring the R-Help archive and getting email addresses 
there. Nabble is a possibility too. 

> On 17 Apr 2018, at 21:50, Peter Langfelder  wrote:
> 
> I got some spam emails after my last post to the list, and the emails
> did not seem to go through r-help. The spammers may be subscribed to
> the r-help, or they get the poster emails from some of the web copies
> of this list (nabble or similar).
> 
> Peter
> 
> On Tue, Apr 17, 2018 at 11:37 AM, Ulrik Stervbo  
> wrote:
>> I asked the moderators about it. This is the reply
>> 
>> "Other moderators have looked into this a bit and may be able to shed more
>> light on it. This is a "new" tactic where the spammers appear to reply to
>> the r-help post. They are not, however, going through the r-help server.
>> 
>> It also seems that this does not happen to everyone.
>> 
>> I am not sure how you can automatically block the spammers.
>> 
>> Sorry I cannot be of more help."
>> 
>> --Ulrik
>> 
>> Jeff Newmiller  schrieb am Di., 17. Apr. 2018,
>> 14:59:
>> 
>>> Likely a spammer has joined the mailing list and is auto-replying to posts
>>> made to the list. Unlikely that the list itself has been "hacked". Agree
>>> that it is obnoxious.
>>> 
>>> On April 17, 2018 5:01:10 AM PDT, Neotropical bat risk assessments <
>>> neotropical.b...@gmail.com> wrote:
 Hi all,
 
 Site has been hacked?
 Bad SPAM arriving
 
 __
 R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.
>>> 
>>> --
>>> Sent from my phone. Please excuse my brevity.
>>> 
>>> __
>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>> 
>> 
>>[[alternative HTML version deleted]]
>> 
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] nMDS with R: missing values

2018-04-17 Thread Jessie Woodbridge
Dear All,

I was wondering whether anyone might be able to provide some advice with an 
nMDS / R problem. I’m trying to run nMDS on a dataset that contains many 
missing values and was wondering how I can account for the missing values when 
running nMDS? It seems as though the data are being grouped depending on where 
the zero values appear. Any suggestions greatly appreciated. Thank you very 
much in advance.

Apologies if this message isn’t relevant to you.

Kind regards,

Jessie


[http://www.plymouth.ac.uk/images/email_footer.gif]

This email and any files with it are confidential and intended solely for the 
use of the recipient to whom it is addressed. If you are not the intended 
recipient then copying, distribution or other use of the information contained 
is strictly prohibited and you should not rely on it. If you have received this 
email in error please let the sender know immediately and delete it from your 
system(s). Internet emails are not necessarily secure. While we take every 
care, Plymouth University accepts no responsibility for viruses and it is your 
responsibility to scan emails and their attachments. Plymouth University does 
not accept responsibility for any changes made after it was sent. Nothing in 
this email or its attachments constitutes an order for goods or services unless 
accompanied by an official order form.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Hacked

2018-04-17 Thread Peter Langfelder
I got some spam emails after my last post to the list, and the emails
did not seem to go through r-help. The spammers may be subscribed to
the r-help, or they get the poster emails from some of the web copies
of this list (nabble or similar).

Peter

On Tue, Apr 17, 2018 at 11:37 AM, Ulrik Stervbo  wrote:
> I asked the moderators about it. This is the reply
>
> "Other moderators have looked into this a bit and may be able to shed more
> light on it. This is a "new" tactic where the spammers appear to reply to
> the r-help post. They are not, however, going through the r-help server.
>
> It also seems that this does not happen to everyone.
>
> I am not sure how you can automatically block the spammers.
>
> Sorry I cannot be of more help."
>
> --Ulrik
>
> Jeff Newmiller  schrieb am Di., 17. Apr. 2018,
> 14:59:
>
>> Likely a spammer has joined the mailing list and is auto-replying to posts
>> made to the list. Unlikely that the list itself has been "hacked". Agree
>> that it is obnoxious.
>>
>> On April 17, 2018 5:01:10 AM PDT, Neotropical bat risk assessments <
>> neotropical.b...@gmail.com> wrote:
>> >Hi all,
>> >
>> >Site has been hacked?
>> >Bad SPAM arriving
>> >
>> >__
>> >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> >https://stat.ethz.ch/mailman/listinfo/r-help
>> >PLEASE do read the posting guide
>> >http://www.R-project.org/posting-guide.html
>> >and provide commented, minimal, self-contained, reproducible code.
>>
>> --
>> Sent from my phone. Please excuse my brevity.
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Hacked

2018-04-17 Thread Ulrik Stervbo
I asked the moderators about it. This is the reply

"Other moderators have looked into this a bit and may be able to shed more
light on it. This is a "new" tactic where the spammers appear to reply to
the r-help post. They are not, however, going through the r-help server.

It also seems that this does not happen to everyone.

I am not sure how you can automatically block the spammers.

Sorry I cannot be of more help."

--Ulrik

Jeff Newmiller  schrieb am Di., 17. Apr. 2018,
14:59:

> Likely a spammer has joined the mailing list and is auto-replying to posts
> made to the list. Unlikely that the list itself has been "hacked". Agree
> that it is obnoxious.
>
> On April 17, 2018 5:01:10 AM PDT, Neotropical bat risk assessments <
> neotropical.b...@gmail.com> wrote:
> >Hi all,
> >
> >Site has been hacked?
> >Bad SPAM arriving
> >
> >__
> >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >https://stat.ethz.ch/mailman/listinfo/r-help
> >PLEASE do read the posting guide
> >http://www.R-project.org/posting-guide.html
> >and provide commented, minimal, self-contained, reproducible code.
>
> --
> Sent from my phone. Please excuse my brevity.
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] nMDS with R: missing values

2018-04-17 Thread Jessie Woodbridge
Dear All,

I was wondering whether anyone might be able to provide some advice with an 
nMDS / R problem. I'm trying to run nMDS on a dataset that contains many 
missing values and was wondering how I can account for the missing values when 
running nMDS? It seems as though the data are being grouped depending on where 
the zero values appear. Any suggestions greatly appreciated. Thank you very 
much in advance.

Apologies if this message isn't relevant to you.

Kind regards,

Jessie


[http://www.plymouth.ac.uk/images/email_footer.gif]

This email and any files with it are confidential and intended solely for the 
use of the recipient to whom it is addressed. If you are not the intended 
recipient then copying, distribution or other use of the information contained 
is strictly prohibited and you should not rely on it. If you have received this 
email in error please let the sender know immediately and delete it from your 
system(s). Internet emails are not necessarily secure. While we take every 
care, Plymouth University accepts no responsibility for viruses and it is your 
responsibility to scan emails and their attachments. Plymouth University does 
not accept responsibility for any changes made after it was sent. Nothing in 
this email or its attachments constitutes an order for goods or services unless 
accompanied by an official order form.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Hacked

2018-04-17 Thread Jeff Newmiller
Likely a spammer has joined the mailing list and is auto-replying to posts made 
to the list. Unlikely that the list itself has been "hacked". Agree that it is 
obnoxious.

On April 17, 2018 5:01:10 AM PDT, Neotropical bat risk assessments 
 wrote:
>Hi all,
>
>Site has been hacked?
>Bad SPAM arriving
>
>__
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

-- 
Sent from my phone. Please excuse my brevity.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] iterative read - write

2018-04-17 Thread Thierry Onkelinx
Dear Bruce,

I'd write a function that take filenames as arguments. It should read
the file, do the calculations and write that output to another file
which can be calculated from the input. You can get all input files in
a directory with e.g. list.files(). Then you can simply loop over the
inputs. Here is some pseudo code.

my_summary <- function(input) {
   raw <- read.table(input)
   summarised <- summary(raw)
   output <- calculate_output(input)
   write.csv(summarised, output)
}
inputs <- list.files("raw/data/path")
sapply(inputs, my_summary)

Best regards,

ir. Thierry Onkelinx
Statisticus / Statistician

Vlaamse Overheid / Government of Flanders
INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE
AND FOREST
Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance
thierry.onkel...@inbo.be
Havenlaan 88 bus 73, 1000 Brussel
www.inbo.be

///
To call in the statistician after the experiment is done may be no
more than asking him to perform a post-mortem examination: he may be
able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does
not ensure that a reasonable answer can be extracted from a given body
of data. ~ John Tukey
///




2018-04-17 13:20 GMT+02:00 Neotropical bat risk assessments
:
> Hi all,
>
> I would like to set up an iterative read & write sequence to avoid
> reading and writing each file one at a time.
> Hundreds of data sets to re-calculate.  The code I have works well
> individually, but would like to set up an iterative read, calculate and
> write changing the input and output file names each iteration.
>
> I  think I have read that there is an R  feature using "Pipes" and %
> that may help but have not figured out how to do this.
> What I am seeking is a way to read a list of TXT files, calculate the
> values and write the results in an iterative manner to avoid manually
> reading each file individually
>
> Suggestions?
>
> Tnx,
> Bruce*
> *
>
> *# This works*
>
> *#read in a data file
> *
>
> *>Corbre_2 <- read.table("E:/Acoustic Parameters/~Emballonuridae/Data by
> genus/~Corbre/Corbre_2.txt",header=T,sep="\t",quote="")*
>
> *# create and calculate a new variable for time between call pusles
> *
>
> *Corbre_2 [c("TBC")] <- recode.variables(Corbre_2[c("TBC")] , "0 -> NA;")*
>
> *# Create new BW variable for band width then change data file name*
>
> *BW<-within(Corbre_2,BW<-Fmax-Fmin)*
>
> *# Create 2 new variables for fundamental H1 and third harmonic H3
> frequencies
> *
>
> *#based on Fc that is generally loudest at the 2^nd harmonic.*
>
> *BW<-within(BW,FcH1<-Fc*.5)*
>
> *BW<-within(BW,FcH3<-FcH1*3)*
>
> *#rename to a DF to calculate the stats
> *
>
> *BatStats<-BW*
>
> *BatStats<-Deducer::descriptive.table (vars = d
> (Dur,TBC,Fmin,Fmax,BW,Fmean,Fk,FcH1,Fc,FcH3,Sc,Pmc),data=
> BatStats,func.names =c("Valid N","Minimum","Maximum","Mean","St.
> Deviation"),func.additional= list(p10=function(x) quantile(x, c(0.10),
> na.rm=TRUE),p25=function(x) quantile(x, c(0.25),
> na.rm=TRUE),p75=function(x) quantile(x,
> c(0.75),na.rm=TRUE),p90=function(x) quantile(x, c(0.90),na.rm=TRUE)))*
>
> *## Write the results and change output name and directory for the
> calculated stats.*
>
> *write.csv(BatStats,file="C:\\=Bat data working\\Acoustic
> Parameters\\Corbre_Stats.csv")*
>
>
>
> --
> Bruce W. Miller, PhD.
> Neotropical bat risk assessments
> Conservation Fellow - Wildlife Conservation Society
>
> If we lose the bats, we may lose much of the tropical vegetation and the 
> lungs of the planet
>
> Using acoustic sampling to identify and map species distributions for >25 
> years.
>
> Providing free Interactive identification keys and call fact sheets for the 
> vocal signatures of New World Bats
>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Hacked

2018-04-17 Thread Neotropical bat risk assessments

Hi all,

Site has been hacked?
Bad SPAM arriving

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] iterative read - write

2018-04-17 Thread Bert Gunter
Suggestions?

Yes. Don't do this.

Instead, wrap your code in a function, use lapply() to apply it over your
list of files, returning all results in one list, and then save the list in
an .rdata file.

Also, in future, please post in plain text, as html tends to get mangled on
this plain text list .

Bert

On Tue, Apr 17, 2018, 4:20 AM Neotropical bat risk assessments <
neotropical.b...@gmail.com> wrote:

> Hi all,
>
> I would like to set up an iterative read & write sequence to avoid
> reading and writing each file one at a time.
> Hundreds of data sets to re-calculate.  The code I have works well
> individually, but would like to set up an iterative read, calculate and
> write changing the input and output file names each iteration.
>
> I  think I have read that there is an R  feature using "Pipes" and %
> that may help but have not figured out how to do this.
> What I am seeking is a way to read a list of TXT files, calculate the
> values and write the results in an iterative manner to avoid manually
> reading each file individually
>
> Suggestions?
>
> Tnx,
> Bruce*
> *
>
> *# This works*
>
> *#read in a data file
> *
>
> *>Corbre_2 <- read.table("E:/Acoustic Parameters/~Emballonuridae/Data by
> genus/~Corbre/Corbre_2.txt",header=T,sep="\t",quote="")*
>
> *# create and calculate a new variable for time between call pusles
> *
>
> *Corbre_2 [c("TBC")] <- recode.variables(Corbre_2[c("TBC")] , "0 -> NA;")*
>
> *# Create new BW variable for band width then change data file name*
>
> *BW<-within(Corbre_2,BW<-Fmax-Fmin)*
>
> *# Create 2 new variables for fundamental H1 and third harmonic H3
> frequencies
> *
>
> *#based on Fc that is generally loudest at the 2^nd harmonic.*
>
> *BW<-within(BW,FcH1<-Fc*.5)*
>
> *BW<-within(BW,FcH3<-FcH1*3)*
>
> *#rename to a DF to calculate the stats
> *
>
> *BatStats<-BW*
>
> *BatStats<-Deducer::descriptive.table (vars = d
> (Dur,TBC,Fmin,Fmax,BW,Fmean,Fk,FcH1,Fc,FcH3,Sc,Pmc),data=
> BatStats,func.names =c("Valid N","Minimum","Maximum","Mean","St.
> Deviation"),func.additional= list(p10=function(x) quantile(x, c(0.10),
> na.rm=TRUE),p25=function(x) quantile(x, c(0.25),
> na.rm=TRUE),p75=function(x) quantile(x,
> c(0.75),na.rm=TRUE),p90=function(x) quantile(x, c(0.90),na.rm=TRUE)))*
>
> *## Write the results and change output name and directory for the
> calculated stats.*
>
> *write.csv(BatStats,file="C:\\=Bat data working\\Acoustic
> Parameters\\Corbre_Stats.csv")*
>
>
>
> --
> Bruce W. Miller, PhD.
> Neotropical bat risk assessments
> Conservation Fellow - Wildlife Conservation Society
>
> If we lose the bats, we may lose much of the tropical vegetation and the
> lungs of the planet
>
> Using acoustic sampling to identify and map species distributions for >25
> years.
>
> Providing free Interactive identification keys and call fact sheets for
> the vocal signatures of New World Bats
>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

On Apr 17, 2018 4:20 AM, "Neotropical bat risk assessments" <
neotropical.b...@gmail.com> wrote:

Hi all,

I would like to set up an iterative read & write sequence to avoid
reading and writing each file one at a time.
Hundreds of data sets to re-calculate.  The code I have works well
individually, but would like to set up an iterative read, calculate and
write changing the input and output file names each iteration.

I  think I have read that there is an R  feature using "Pipes" and %
that may help but have not figured out how to do this.
What I am seeking is a way to read a list of TXT files, calculate the
values and write the results in an iterative manner to avoid manually
reading each file individually

Suggestions?

Tnx,
Bruce*
*

*# This works*

*#read in a data file
*

*>Corbre_2 <- read.table("E:/Acoustic Parameters/~Emballonuridae/Data by
genus/~Corbre/Corbre_2.txt",header=T,sep="\t",quote="")*

*# create and calculate a new variable for time between call pusles
*

*Corbre_2 [c("TBC")] <- recode.variables(Corbre_2[c("TBC")] , "0 -> NA;")*

*# Create new BW variable for band width then change data file name*

*BW<-within(Corbre_2,BW<-Fmax-Fmin)*

*# Create 2 new variables for fundamental H1 and third harmonic H3
frequencies
*

*#based on Fc that is generally loudest at the 2^nd harmonic.*

*BW<-within(BW,FcH1<-Fc*.5)*

*BW<-within(BW,FcH3<-FcH1*3)*

*#rename to a DF to calculate the stats
*

*BatStats<-BW*

*BatStats<-Deducer::descriptive.table (vars = d
(Dur,TBC,Fmin,Fmax,BW,Fmean,Fk,FcH1,Fc,FcH3,Sc,Pmc),data=
BatStats,func.names =c("Valid N","Minimum","Maximum","Mean","St.
Deviation"),func.additional= list(p10=function(x) quantile(x, c(0.10),
na.rm=TRUE),p25=function(x) quantile(x, c(0.25),
na.rm=TRUE),p75=function(x) 

[R] iterative read - write

2018-04-17 Thread Neotropical bat risk assessments
Hi all,

I would like to set up an iterative read & write sequence to avoid 
reading and writing each file one at a time.
Hundreds of data sets to re-calculate.  The code I have works well 
individually, but would like to set up an iterative read, calculate and 
write changing the input and output file names each iteration.

I  think I have read that there is an R  feature using "Pipes" and % 
that may help but have not figured out how to do this.
What I am seeking is a way to read a list of TXT files, calculate the 
values and write the results in an iterative manner to avoid manually 
reading each file individually

Suggestions?

Tnx,
Bruce*
*

*# This works*

*#read in a data file
*

*>Corbre_2 <- read.table("E:/Acoustic Parameters/~Emballonuridae/Data by 
genus/~Corbre/Corbre_2.txt",header=T,sep="\t",quote="")*

*# create and calculate a new variable for time between call pusles
*

*Corbre_2 [c("TBC")] <- recode.variables(Corbre_2[c("TBC")] , "0 -> NA;")*

*# Create new BW variable for band width then change data file name*

*BW<-within(Corbre_2,BW<-Fmax-Fmin)*

*# Create 2 new variables for fundamental H1 and third harmonic H3 
frequencies
*

*#based on Fc that is generally loudest at the 2^nd harmonic.*

*BW<-within(BW,FcH1<-Fc*.5)*

*BW<-within(BW,FcH3<-FcH1*3)*

*#rename to a DF to calculate the stats
*

*BatStats<-BW*

*BatStats<-Deducer::descriptive.table (vars = d 
(Dur,TBC,Fmin,Fmax,BW,Fmean,Fk,FcH1,Fc,FcH3,Sc,Pmc),data= 
BatStats,func.names =c("Valid N","Minimum","Maximum","Mean","St. 
Deviation"),func.additional= list(p10=function(x) quantile(x, c(0.10), 
na.rm=TRUE),p25=function(x) quantile(x, c(0.25), 
na.rm=TRUE),p75=function(x) quantile(x, 
c(0.75),na.rm=TRUE),p90=function(x) quantile(x, c(0.90),na.rm=TRUE)))*

*## Write the results and change output name and directory for the 
calculated stats.*

*write.csv(BatStats,file="C:\\=Bat data working\\Acoustic 
Parameters\\Corbre_Stats.csv")*



-- 
Bruce W. Miller, PhD.
Neotropical bat risk assessments
Conservation Fellow - Wildlife Conservation Society

If we lose the bats, we may lose much of the tropical vegetation and the lungs 
of the planet

Using acoustic sampling to identify and map species distributions for >25 years.

Providing free Interactive identification keys and call fact sheets for the 
vocal signatures of New World Bats


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] how to write a loop to repetitive jobs

2018-04-17 Thread K. Elo
Hi!

An alternative with 'assign':

for ( i in 71:75) {
  setwd(paste("C:/Awork/geneAssociation/removed8samples/neuhausen", i,
sep=""))
  temp.df<-read.csv("seg.pr3.csv", head=T)
  temp.df$id<-paste0("sn",i,sep="")
  assign(paste0("seg",i,sep=""),temp.df)
}
rm(temp.df,i)    # Clean up

HTH,
Kimmo


2018-04-17 kello 08:15 +0200, Albrecht Kauffmann wrote:
> Hello Ding,
> 
> try this:
> 
> seg <- list()
> for ( d in 71:75) {
>   s <- paste0("seg",d)
>   sn <- paste0("sn",d)
>   Dir<-paste("C:/Awork/geneAssociation/removed8samples/neuhausen", i,
> sep="")
>   setwd(Dir)
>   seg[[s]] <- read.csv("seg.pr3.csv", head=T)
>   seg[[s]]$id <- sn
> }
> 
> Greetings,
> Albrecht
>

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] how to write a loop to repetitive jobs

2018-04-17 Thread Albrecht Kauffmann
Hello Ding,

try this:

seg <- list()
for ( d in 71:75) {
  s <- paste0("seg",d)
  sn <- paste0("sn",d)
  Dir<-paste("C:/Awork/geneAssociation/removed8samples/neuhausen", i, sep="")
  setwd(Dir)
  seg[[s]] <- read.csv("seg.pr3.csv", head=T)
  seg[[s]]$id <- sn
}

Greetings,
Albrecht

-- 
  Albrecht Kauffmann
  alkau...@fastmail.fm

Am Mo, 16. Apr 2018, um 22:54, schrieb Ding, Yuan Chun:
> Hi All..,
> 
> I need to do the following repetitive jobs:
> 
> seg71 <- read.csv("C:/Awork/geneAssociation/removed8samples/neuhausen71/
> seg.pr3.csv", head=T)
> seg71$id <-"sn71"
> 
> seg72 <- read.csv("C:/Awork/geneAssociation/removed8samples/neuhausen72/
> seg.pr3.csv", head=T)
> seg72$id <-"sn72"
> 
> seg73 <- read.csv("C:/Awork/geneAssociation/removed8samples/neuhausen73/
> seg.pr3.csv", head=T)
> seg73$id <-"sn73"
> 
> seg74 <- read.csv("C:/Awork/geneAssociation/removed8samples/neuhausen74/
> seg.pr3.csv", head=T)
> seg74$id <-"sn74"
> 
> seg75 <- read.csv("C:/Awork/geneAssociation/removed8samples/neuhausen75/
> seg.pr3.csv", head=T)
> seg75$id <-"sn75"
> 
> seg <- rbind (seg71, seg72, seg73, seg74, seg75)
> 
> I want to write a loop to do it;
> 
> For ( d in 71:75) {
>   Dir<-paste("C:/Awork/geneAssociation/removed8samples/neuhausen", i, 
> sep="")
>   setwd(Dir)
> ..
> then I do not know how to create objects seg71 to seg75;  in SAS, it 
> would be  seg;
> 
> I like R, but not good at R.
> 
> Can you help me?
> 
> Thank you,
> 
> Ding
> 
> 
> -
> -SECURITY/CONFIDENTIALITY WARNING-
> This message (and any attachments) are intended solely...{{dropped:8}}

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.