Re: [R] Welcome to the "R-help" mailing list (Digest mode)

2015-09-24 Thread John Kane
You seem to have sent the message in HTML and most of it did not arrive.  
R-help is a plain text mailing list and strips out any HTML as a security 
precaution.  

Please have a look at
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-ex
ample and/or http://adv-r.had.co.nz/Reproducibility.html with particular 
attention to the use of  dput() for supplying sample data.

Welcome to the list. 

John Kane
Kingston ON Canada


> -Original Message-
> From: r-help@r-project.org
> Sent: Thu, 24 Sep 2015 17:34:21 + (UTC)
> To: r-help@r-project.org
> Subject: Re: [R] Welcome to the "R-help" mailing list (Digest mode)
> 
> I would greatly appreciate if anybody could help with the stack-overflow
> question : Updating and Forecasting times series with new data
> |   |
> |   |  |   |   |   |   |   |
> | Updating and Forecasting times series with new dataWe can fit a time
> series and use the model to make forecasts, for example using: fit <-
> auto.arima(WWWusage) plot(forecast(fit,h=20)) Consider the following
> scenari... |
> |  |
> | View on stackoverflow.com | Preview by Yahoo |
> |  |
> |   |
> 
> 
> Thank you for your time,Pemfir
> 
> 
> 
>  On Thursday, September 24, 2015 10:31 AM,
> "r-help-requ...@r-project.org"  wrote:
> 
> 
>  Welcome to the R-help@r-project.org mailing list!
> 
> To post to this list, send your message to:
> 
>   r-help@r-project.org
> 
> General information about the mailing list is at:
> 
>   https://stat.ethz.ch/mailman/listinfo/r-help
> 
> If you ever want to unsubscribe or change your options (eg, switch to
> or from digest mode, change your password, etc.), visit your
> subscription page at:
> 
>   https://stat.ethz.ch/mailman/options/r-help/elexira%40yahoo.com
> 
> You can also make such adjustments via email by sending a message to:
> 
>   r-help-requ...@r-project.org
> 
> with the word `help' in the subject or body (don't include the
> quotes), and you will get back a message with instructions.
> 
> You must know your password to change your options (including changing
> the password, itself) or to unsubscribe without confirmation.  It is:
> 
>   zoha1234
> 
> Normally, Mailman will remind you of your r-project.org mailing list
> passwords once every month, although you can disable this if you
> prefer.  This reminder will also include instructions on how to
> unsubscribe or change your account options.  There is also a button on
> your options page that will email your current password to you.
> 
> 
> 
>   [[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.


FREE ONLINE PHOTOSHARING - Share your photos online with your friends and 
family!
Visit http://www.inbox.com/photosharing to find out more!

__
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] Welcome to the "R-help" mailing list (Digest mode)

2015-09-24 Thread Boris Steipe
You're posting in HTML and your link didn't make it  :-(



B.


On Sep 24, 2015, at 1:34 PM, amir via R-help  wrote:

> I would greatly appreciate if anybody could help with the stack-overflow 
> question : Updating and Forecasting times series with new data
> |   |
> |   |  |   |   |   |   |   |
> | Updating and Forecasting times series with new dataWe can fit a time series 
> and use the model to make forecasts, for example using: fit <- 
> auto.arima(WWWusage) plot(forecast(fit,h=20)) Consider the following 
> scenari... |
> |  |
> | View on stackoverflow.com | Preview by Yahoo |
> |  |
> |   |
> 
> 
> Thank you for your time,Pemfir 
> 
> 
> 
> On Thursday, September 24, 2015 10:31 AM, "r-help-requ...@r-project.org" 
>  wrote:
> 
> 
> Welcome to the R-help@r-project.org mailing list!
> 
> To post to this list, send your message to:
> 
>   r-help@r-project.org
> 
> General information about the mailing list is at:
> 
>   https://stat.ethz.ch/mailman/listinfo/r-help
> 
> If you ever want to unsubscribe or change your options (eg, switch to
> or from digest mode, change your password, etc.), visit your
> subscription page at:
> 
>   https://stat.ethz.ch/mailman/options/r-help/elexira%40yahoo.com
> 
> You can also make such adjustments via email by sending a message to:
> 
>   r-help-requ...@r-project.org
> 
> with the word `help' in the subject or body (don't include the
> quotes), and you will get back a message with instructions.
> 
> You must know your password to change your options (including changing
> the password, itself) or to unsubscribe without confirmation.  It is:
> 
>   zoha1234
> 
> Normally, Mailman will remind you of your r-project.org mailing list
> passwords once every month, although you can disable this if you
> prefer.  This reminder will also include instructions on how to
> unsubscribe or change your account options.  There is also a button on
> your options page that will email your current password to you.
> 
> 
> 
>   [[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] Welcome to the "R-help" mailing list (Digest mode)

2015-09-24 Thread amir via R-help
I would greatly appreciate if anybody could help with the stack-overflow 
question : Updating and Forecasting times series with new data
|   |
|   |  |   |   |   |   |   |
| Updating and Forecasting times series with new dataWe can fit a time series 
and use the model to make forecasts, for example using: fit <- 
auto.arima(WWWusage) plot(forecast(fit,h=20)) Consider the following scenari... 
|
|  |
| View on stackoverflow.com | Preview by Yahoo |
|  |
|   |


Thank you for your time,Pemfir 
 


 On Thursday, September 24, 2015 10:31 AM, "r-help-requ...@r-project.org" 
 wrote:
   

 Welcome to the R-help@r-project.org mailing list!

To post to this list, send your message to:

  r-help@r-project.org

General information about the mailing list is at:

  https://stat.ethz.ch/mailman/listinfo/r-help

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  https://stat.ethz.ch/mailman/options/r-help/elexira%40yahoo.com

You can also make such adjustments via email by sending a message to:

  r-help-requ...@r-project.org

with the word `help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including changing
the password, itself) or to unsubscribe without confirmation.  It is:

  zoha1234

Normally, Mailman will remind you of your r-project.org mailing list
passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.


  
[[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] Welcome to the "R-help" mailing list

2013-12-18 Thread jim holtman
use POSIXct instead of Date:


> x <- c("2013-12-12 12:00:00", "2013-12-15 03:15:23")
> # convert using as.POSIXct
>
> times <- as.POSIXct(x, format = "%Y-%m-%d %H:%M:%S")
> times
[1] "2013-12-12 12:00:00 EST" "2013-12-15 03:15:23 EST"
>
> difftime(times[2], times[1], units = 'secs')
Time difference of 227723 secs
>
>

Jim Holtman
Data Munger Guru

What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.


On Wed, Dec 18, 2013 at 9:24 PM, Lydia Keppler  wrote:
> Hi there,
>
> I am new to R and programming in general and am looking for help with
> writing a function with dates and times. I have checked around but am still
> a bit stuck.
>
> Basically, I have data in the format "dd/mm/ HH:MM" and I have to
> calculate how much time has passed between various events.
>
> I have given the following command ( where "date" is the column in my data
> frame that indicates the date and time)
> date=as.Date.factor(date,format="%d/%m/%Y %H:%M")
> However, this displays only the date, without the time.
>
> I also have tried:
> date=substr(argo1$date,1,907)
> And it shows the date and time.
>
> However, when I try to find the difference between two dates i.e.the time
> that has passed with the command: difftime(date[2],date[3],unit="secs"), it
> returns that 0 seconds have passed.
>
> When I try to find the difference with the command:
> date[3]-date[2]
> it tells me Error in date[3] - date[2] : non-numeric argument to binary
> operator
>
> The class(date) is "character".
>
> Any idea what I am doing wrong?
> Thank you very much in advance!
>
>
> On 19 December 2013 15:22,  wrote:
>
>> Welcome to the R-help@r-project.org mailing list!
>>
>> To post to this list, send your message to:
>>
>>   r-help@r-project.org
>>
>> General information about the mailing list is at:
>>
>>   https://stat.ethz.ch/mailman/listinfo/r-help
>>
>> If you ever want to unsubscribe or change your options (eg, switch to
>> or from digest mode, change your password, etc.), visit your
>> subscription page at:
>>
>>   https://stat.ethz.ch/mailman/options/r-help/lydiakeppler%40gmail.com
>>
>> You can also make such adjustments via email by sending a message to:
>>
>>   r-help-requ...@r-project.org
>>
>> with the word `help' in the subject or body (don't include the
>> quotes), and you will get back a message with instructions.
>>
>> You must know your password to change your options (including changing
>> the password, itself) or to unsubscribe without confirmation.  It is:
>>
>>   whaletail27
>>
>> Normally, Mailman will remind you of your r-project.org mailing list
>> passwords once every month, although you can disable this if you
>> prefer.  This reminder will also include instructions on how to
>> unsubscribe or change your account options.  There is also a button on
>> your options page that will email your current password to you.
>>
>
>
>
> --
> *Protect the environment: think before you print*
>><º>
>
> [[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 http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

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


Re: [R] Welcome to the "R-help" mailing list

2013-12-18 Thread Lydia Keppler
Hi there,

I am new to R and programming in general and am looking for help with
writing a function with dates and times. I have checked around but am still
a bit stuck.

Basically, I have data in the format "dd/mm/ HH:MM" and I have to
calculate how much time has passed between various events.

I have given the following command ( where "date" is the column in my data
frame that indicates the date and time)
date=as.Date.factor(date,format="%d/%m/%Y %H:%M")
However, this displays only the date, without the time.

I also have tried:
date=substr(argo1$date,1,907)
And it shows the date and time.

However, when I try to find the difference between two dates i.e.the time
that has passed with the command: difftime(date[2],date[3],unit="secs"), it
returns that 0 seconds have passed.

When I try to find the difference with the command:
date[3]-date[2]
it tells me Error in date[3] - date[2] : non-numeric argument to binary
operator

The class(date) is "character".

Any idea what I am doing wrong?
Thank you very much in advance!


On 19 December 2013 15:22,  wrote:

> Welcome to the R-help@r-project.org mailing list!
>
> To post to this list, send your message to:
>
>   r-help@r-project.org
>
> General information about the mailing list is at:
>
>   https://stat.ethz.ch/mailman/listinfo/r-help
>
> If you ever want to unsubscribe or change your options (eg, switch to
> or from digest mode, change your password, etc.), visit your
> subscription page at:
>
>   https://stat.ethz.ch/mailman/options/r-help/lydiakeppler%40gmail.com
>
> You can also make such adjustments via email by sending a message to:
>
>   r-help-requ...@r-project.org
>
> with the word `help' in the subject or body (don't include the
> quotes), and you will get back a message with instructions.
>
> You must know your password to change your options (including changing
> the password, itself) or to unsubscribe without confirmation.  It is:
>
>   whaletail27
>
> Normally, Mailman will remind you of your r-project.org mailing list
> passwords once every month, although you can disable this if you
> prefer.  This reminder will also include instructions on how to
> unsubscribe or change your account options.  There is also a button on
> your options page that will email your current password to you.
>



-- 
*Protect the environment: think before you print*
><º>

[[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 http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Welcome to the "R-help" mailing list

2013-08-28 Thread Gabriel Wajnberg
Good Afternoon,
My name is Gabriel, I'm doing an analysis if there is increase or decrease in 
dependence on the mutated genes, using 3 or more genes using the fisher exact 
test.I performed with success an analysis for two genes using fisher.test( ). 
example of the 2x2 contigency table:
  Gene A mutated | Gene A normalGene B 
mutated|  26|
12Gene
 B normal | 10  |  50

Now I'm wondering how can I perform the analysis for 3 genes (and construct the 
contigency table), as follows: Gene A mutated, Gene A normal, Gene B mutated, 
Gene B normal, Gene C mutated and Gene C normal. How do I perform a fisher test 
using fisher.test( ) function using this data (3x3 contigency table)?Can 
someone help me ?
  
[[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 http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Welcome to the "R-help" mailing list

2013-04-21 Thread R. Michael Weylandt
On Sun, Apr 21, 2013 at 4:04 AM, 李究  wrote:
>> You must know your password to change your options (including changing
>> the password, itself) or to unsubscribe without confirmation. It is:
>>
>> [[*snip*]]
>>

Not an answer to your question, but I'd like to point out that you
just sent your password to the thousands of r-help readers and several
archive mirrors so you might wish to change it now.

Cheers,
MW

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


Re: [R] Welcome to the "R-help" mailing list

2013-04-21 Thread 李究
I have a question and please help. In SPSS, we normally perform data screening 
to eliminate bad items before doing factor analysis, for instance, those 
negatively affect the reliability of the scale. do we have to do the same with 
R, if yes, how? thank you very much!
 

> Subject: Welcome to the "R-help" mailing list
> From: r-help-requ...@r-project.org
> To: li...@hotmail.com
> Date: Sun, 21 Apr 2013 09:14:24 +0200
> 
> Welcome to the R-help@r-project.org mailing list!
> 
> To post to this list, send your message to:
> 
> r-help@r-project.org
> 
> General information about the mailing list is at:
> 
> https://stat.ethz.ch/mailman/listinfo/r-help
> 
> If you ever want to unsubscribe or change your options (eg, switch to
> or from digest mode, change your password, etc.), visit your
> subscription page at:
> 
> https://stat.ethz.ch/mailman/options/r-help/lijiu%40hotmail.com
> 
> You can also make such adjustments via email by sending a message to:
> 
> r-help-requ...@r-project.org
> 
> with the word `help' in the subject or body (don't include the
> quotes), and you will get back a message with instructions.
> 
> You must know your password to change your options (including changing
> the password, itself) or to unsubscribe without confirmation. It is:
> 
> csfr32rb
> 
> Normally, Mailman will remind you of your r-project.org mailing list
> passwords once every month, although you can disable this if you
> prefer. This reminder will also include instructions on how to
> unsubscribe or change your account options. There is also a button on
> your options page that will email your current password to you.
  
[[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 http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Welcome to the "R-help" mailing list

2010-12-01 Thread Ista Zahn
Hi Bill,
Please keep the R list copied.

I don't think you've given enough information to pin down your
problem. This works:

dat <- read.table(textConnection("dates  returns
2000-1-4 -0.038344718
2000-1-50.00195
2000-1-60.000955702
2000-1-70.027090384
2000-1-100.011189966
2000-1-11-0.013062569
2000-1-12-0.004386331
2000-1-130.012169663
2000-1-140.010671321
2000-1-18-0.006832065
2000-1-190.000522287
2000-1-20-0.007095268
2000-1-21-0.002912346"), header=TRUE)
closeAllConnections()

attach(dat)

i=1
while(i<14){
if(weekdays(as.Date(dates[i])) == "Monday"){
print ("yes")
}
else {
print("no")

}
i=1+i

}

detach(dat)

Best,
Ista

On Tue, Nov 30, 2010 at 11:22 PM, Bill Yang  wrote:
> Hi Ista,
> I appreciate for your reply.
> I am running into another problem now, the following is my date (example)
> 2000-1-4     -0.038344718
> 2000-1-5    0.00195
> 2000-1-6    0.000955702
> 2000-1-7    0.027090384
> 2000-1-10    0.011189966
> 2000-1-11    -0.013062569
> 2000-1-12    -0.004386331
> 2000-1-13    0.012169663
> 2000-1-14    0.010671321
> 2000-1-18    -0.006832065
> 2000-1-19    0.000522287
> 2000-1-20    -0.007095268
> 2000-1-21    -0.002912346
> Let's focus on the dates, by using weekdays(as.Date('2010-11-30')) ==
> "Monday", im supposed to find the monday return (2nd column)
> i create an array which includes the dates, let's call it dates. then when i
> plug in the dates into the following codes
> i=1
> while(i<14){
> if(weekdays(as.Date(dates[i])) == "Monday"){
> pirnt ("yes")
> }
> else {
> print("no")
> }
> i=1+i
> }
> the programe does not run properly...cuz im expecting to see "yes" been
> returned (there is not any "no" returned, all of them are "yes"..). i
> guess dates[i] returns "2010-1-1", but the as.Date requires '2010-1-1'..
> please help me out. I appreciate.
> Bill
>
>
>> From: iz...@psych.rochester.edu
>> Date: Tue, 30 Nov 2010 21:59:50 -0500
>> Subject: Re: [R] Welcome to the "R-help" mailing list
>> To: gy631...@hotmail.com
>> CC: r-help@r-project.org
>>
>> Hi Bill,
>> You might be working too hard. Consider:
>> > weekdays(as.Date('2010-11-30')) == "Monday"
>> [1] FALSE
>> > weekdays(as.Date('2010-11-29')) == "Monday"
>> [1] TRUE
>> >
>>
>> HTH,
>> Ista
>>
>> On Tue, Nov 30, 2010 at 9:40 PM, Bill Yang  wrote:
>> >
>> > Hi there,
>> > I am having problem of matching string. what i want is when i type a
>> > date such as 2010-11-30, the function will return the day (monday, tuesday,
>> > wednesday, thursday, friday or staturday). then i want another function 
>> > will
>> > return true if the return of the day is monday, return false if the return
>> > of the day is not monday.
>> > I already find the weekdays(as.Date('2010-11-30')) function which will
>> > tell me exactly what day its gonna be. however, i am having problem of
>> > return True or False whether or not the return day has matched.
>> > please help me out. I appreciate.
>> > Bill
>> > P.S the following is the partial
>> > codes.if(match(weekdays(as.Date('2010-11-30'), "Monday")==1){print("yes")}
>> >
>> >
>> >
>> > r-help@r-project.org
>> >> Subject: Welcome to the "R-help" mailing list
>> >> From: r-help-requ...@r-project.org
>> >> To: gy631...@hotmail.com
>> >> Date: Wed, 1 Dec 2010 03:34:01 +0100
>> >>
>> >> Welcome to the R-help@r-project.org mailing list!
>> >>
>> >> To post to this list, send your email to:
>> >>
>> >>   r-help@r-project.org
>> >>
>> >> General information about the mailing list is at:
>> >>
>> >>   https://stat.ethz.ch/mailman/listinfo/r-help
>> >>
>> >> If you ever want to unsubscribe or change your options (eg, switch to
>> >> or from digest mode, change your password, etc.), visit your
>> >> subscription page at:
>> >>
>> >>   https://stat.ethz.ch/mailman/options/r-help/gy631223%40hotmail.com
>> >>
>> >> You can also make such adjustments via email by sending a message to:
>> >>
>> >>   r-help-requ...@r-project.org
>> >>
>> >> with the word `help' in the subje

Re: [R] Welcome to the "R-help" mailing list

2010-11-30 Thread Ista Zahn
Hi Bill,
You might be working too hard. Consider:
> weekdays(as.Date('2010-11-30')) == "Monday"
[1] FALSE
> weekdays(as.Date('2010-11-29')) == "Monday"
[1] TRUE
>

HTH,
Ista

On Tue, Nov 30, 2010 at 9:40 PM, Bill Yang  wrote:
>
> Hi there,
> I am having problem of matching string. what i want is when i type a date 
> such as 2010-11-30, the function will return the day (monday, tuesday, 
> wednesday, thursday, friday or staturday). then i want another function will 
> return true if the return of the day is monday, return false if the return of 
> the day is not monday.
> I already find the weekdays(as.Date('2010-11-30')) function which will tell 
> me exactly what day its gonna be. however, i am having problem of return True 
> or False whether or not the return day has matched.
> please help me out. I appreciate.
> Bill
> P.S the following is the partial 
> codes.if(match(weekdays(as.Date('2010-11-30'), "Monday")==1){print("yes")}
>
>
>
> r-help@r-project.org
>> Subject: Welcome to the "R-help" mailing list
>> From: r-help-requ...@r-project.org
>> To: gy631...@hotmail.com
>> Date: Wed, 1 Dec 2010 03:34:01 +0100
>>
>> Welcome to the R-help@r-project.org mailing list!
>>
>> To post to this list, send your email to:
>>
>>   r-help@r-project.org
>>
>> General information about the mailing list is at:
>>
>>   https://stat.ethz.ch/mailman/listinfo/r-help
>>
>> If you ever want to unsubscribe or change your options (eg, switch to
>> or from digest mode, change your password, etc.), visit your
>> subscription page at:
>>
>>   https://stat.ethz.ch/mailman/options/r-help/gy631223%40hotmail.com
>>
>> You can also make such adjustments via email by sending a message to:
>>
>>   r-help-requ...@r-project.org
>>
>> with the word `help' in the subject or body (don't include the
>> quotes), and you will get back a message with instructions.
>>
>> You must know your password to change your options (including changing
>> the password, itself) or to unsubscribe.  It is:
>>
>>   8711208752
>>
>> Normally, Mailman will remind you of your r-project.org mailing list
>> passwords once every month, although you can disable this if you
>> prefer.  This reminder will also include instructions on how to
>> unsubscribe or change your account options.  There is also a button on
>> your options page that will email your current password to you.
>
>        [[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 http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org

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


Re: [R] Welcome to the "R-help" mailing list

2010-11-30 Thread Bill Yang

Hi there,
I am having problem of matching string. what i want is when i type a date such 
as 2010-11-30, the function will return the day (monday, tuesday, wednesday, 
thursday, friday or staturday). then i want another function will return true 
if the return of the day is monday, return false if the return of the day is 
not monday.
I already find the weekdays(as.Date('2010-11-30')) function which will tell me 
exactly what day its gonna be. however, i am having problem of return True or 
False whether or not the return day has matched. 
please help me out. I appreciate.
Bill
P.S the following is the partial codes.if(match(weekdays(as.Date('2010-11-30'), 
"Monday")==1){print("yes")}



r-help@r-project.org
> Subject: Welcome to the "R-help" mailing list
> From: r-help-requ...@r-project.org
> To: gy631...@hotmail.com
> Date: Wed, 1 Dec 2010 03:34:01 +0100
> 
> Welcome to the R-help@r-project.org mailing list!
> 
> To post to this list, send your email to:
> 
>   r-help@r-project.org
> 
> General information about the mailing list is at:
> 
>   https://stat.ethz.ch/mailman/listinfo/r-help
> 
> If you ever want to unsubscribe or change your options (eg, switch to
> or from digest mode, change your password, etc.), visit your
> subscription page at:
> 
>   https://stat.ethz.ch/mailman/options/r-help/gy631223%40hotmail.com
> 
> You can also make such adjustments via email by sending a message to:
> 
>   r-help-requ...@r-project.org
> 
> with the word `help' in the subject or body (don't include the
> quotes), and you will get back a message with instructions.
> 
> You must know your password to change your options (including changing
> the password, itself) or to unsubscribe.  It is:
> 
>   8711208752
> 
> Normally, Mailman will remind you of your r-project.org mailing list
> passwords once every month, although you can disable this if you
> prefer.  This reminder will also include instructions on how to
> unsubscribe or change your account options.  There is also a button on
> your options page that will email your current password to you.
  
[[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 http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Welcome to the "R-help" mailing list (Digest mode)

2010-05-03 Thread ravikumar sukumar
Dear All,

How to calculate multiple correlation coefficient R, using R.


regards,
Sukumar

[[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 http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Welcome to the "R-help" mailing list

2009-10-04 Thread Alexandre Serra Barreto

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


Re: [R] Welcome to the "R-help" mailing list

2009-04-18 Thread Uwe Ligges



Qifei Zhu wrote:

Hi all,

I'm a newbie R developer, am trying to dotplot a few graphs using a for
loop.

The following code works fine but once I wanna plot inside a loop, nothing
happens.

for(i in 1:1){dotplot(y~x)}
y <- c(1,2,3)
x <- c('a','b','c')
dotplot(y~x)



for (i in 1:3) {dotplot(y~x)} (y and x depends on I in actual case)

Nothing happens.



dotplot is a lattice function that need to be print()-ed which happened 
before automatically (as you'd type x in it is printed).



Uwe Ligges



I appreciate your advice on what is going wrong? Thanks.

Best,
Tony

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


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


Re: [R] Welcome to the "R-help" mailing list

2009-04-18 Thread Qifei Zhu
It works. Thanks!

-Original Message-
From: mike.lw...@gmail.com [mailto:mike.lw...@gmail.com] On Behalf Of Mike
Lawrence
Sent: Saturday, April 18, 2009 1:30 PM
To: Qifei Zhu
Cc: r-help@r-project.org
Subject: Re: [R] Welcome to the "R-help" mailing list

When plotting in loops, you need to wrap your plot call in print().

On Sat, Apr 18, 2009 at 2:14 PM, Qifei Zhu  wrote:
> Hi all,
>
> I'm a newbie R developer, am trying to dotplot a few graphs using a for
> loop.
>
> The following code works fine but once I wanna plot inside a loop, nothing
> happens.
>> for(i in 1:1){dotplot(y~x)}
>> y <- c(1,2,3)
>> x <- c('a','b','c')
>> dotplot(y~x)
>
>> for (i in 1:3) {dotplot(y~x)} (y and x depends on I in actual case)
> Nothing happens.
>
> I appreciate your advice on what is going wrong? Thanks.
>
> Best,
> Tony
>
> __
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Mike Lawrence
Graduate Student
Department of Psychology
Dalhousie University

Looking to arrange a meeting? Check my public calendar:
http://tr.im/mikes_public_calendar

~ Certainty is folly... I think. ~

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


Re: [R] Welcome to the "R-help" mailing list

2009-04-18 Thread Mike Lawrence
When plotting in loops, you need to wrap your plot call in print().

On Sat, Apr 18, 2009 at 2:14 PM, Qifei Zhu  wrote:
> Hi all,
>
> I'm a newbie R developer, am trying to dotplot a few graphs using a for
> loop.
>
> The following code works fine but once I wanna plot inside a loop, nothing
> happens.
>> for(i in 1:1){dotplot(y~x)}
>> y <- c(1,2,3)
>> x <- c('a','b','c')
>> dotplot(y~x)
>
>> for (i in 1:3) {dotplot(y~x)} (y and x depends on I in actual case)
> Nothing happens.
>
> I appreciate your advice on what is going wrong? Thanks.
>
> Best,
> Tony
>
> __
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Mike Lawrence
Graduate Student
Department of Psychology
Dalhousie University

Looking to arrange a meeting? Check my public calendar:
http://tr.im/mikes_public_calendar

~ Certainty is folly... I think. ~

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


Re: [R] Welcome to the "R-help" mailing list

2009-04-18 Thread Qifei Zhu
Hi all,

I'm a newbie R developer, am trying to dotplot a few graphs using a for
loop.

The following code works fine but once I wanna plot inside a loop, nothing
happens.
> for(i in 1:1){dotplot(y~x)}
> y <- c(1,2,3)
> x <- c('a','b','c')
> dotplot(y~x)

> for (i in 1:3) {dotplot(y~x)} (y and x depends on I in actual case)
Nothing happens.

I appreciate your advice on what is going wrong? Thanks.

Best,
Tony

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


Re: [R] Welcome to the "R-help" mailing list

2009-02-23 Thread sdzhangping
Dear R users:
Analysis of the impact of a time-dependent covariate (GVHD or use of 
steroid after bone marrow transplantation) on two competing endpoints (invasive 
fungal infection and death) is frequently encountered in the setting of BMT 
data. Coxph package can be used as the following:
for the analysis of GVHD:
 > gvhd -> coxph(Surv(start,stop,status = =1) ~ GVHD, data=bmt.data)
and the data should be edited as the following:
  patient start stop status(IFI) GVHD
 1 0  15 0 0
 1 15 35 1 1
 2 0  12 0 0
 2 12 20 2 1
 3 0  30 2 0
 4 0  1000 0
 5 0  25 0 0
 5 25 1000 1
   similarly, for steroid:
 > steroid -> coxph(Surv(start,stop,status = =1) ~ steroid, data=bmt.data)
and the data was edited as the following:
  patient start stop status(IFI) steroid
 1 0  16 0 0
 1 16 35 1 1
 2 0  13 0 0
 2 13 20 2 1
 3 0  14 0 0
 3 14 30 2 1
 4 0  1000 0
 5 0  21 0 0
 5 21 1000 1
 
I wonder how can I analyze the two risk factors (GVHD and steroid) 
concurrently? And how to edit the data. 
How can I manage it if a third baseline risk factor(age for example) was 
included?
 
 Thanks 
 Yours sincerely Ping Zhang 
 Feb 24 2009
 
[[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 http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Welcome to the "R-help" mailing list

2009-01-29 Thread Johannes Huesing
Bishwa S Koirala  [Thu, Jan 29, 2009 at 08:56:17PM CET]:
>> You must know your password to change your options (including changing
>> the password, itself) or to unsubscribe.  It is:
>>

It is definitely a good idea to change your password ASAP.


-- 
Johannes Hüsing   There is something fascinating about science. 
  One gets such wholesale returns of conjecture 
mailto:johan...@huesing.name  from such a trifling investment of fact.  
  
http://derwisch.wikidot.com (Mark Twain, "Life on the Mississippi")

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


Re: [R] Welcome to the "R-help" mailing list

2009-01-29 Thread Bishwa S Koirala

On Thu, 29 Jan 2009 20:55:19 +0100
 r-help-requ...@r-project.org wrote:

Welcome to the R-help@r-project.org mailing list!

To post to this list, send your email to:

 r-help@r-project.org

General information about the mailing list is at:

 https://stat.ethz.ch/mailman/listinfo/r-help

If you ever want to unsubscribe or change your options 
(eg, switch to
or from digest mode, change your password, etc.), visit 
your

subscription page at:

 https://stat.ethz.ch/mailman/options/r-help/bkoirala%40unm.edu

You can also make such adjustments via email by sending 
a message to:


 r-help-requ...@r-project.org

with the word `help' in the subject or body (don't 
include the
quotes), and you will get back a message with 
instructions.


You must know your password to change your options 
(including changing

the password, itself) or to unsubscribe.  It is:

 bish90nu

Normally, Mailman will remind you of your r-project.org 
mailing list
passwords once every month, although you can disable 
this if you
prefer.  This reminder will also include instructions on 
how to
unsubscribe or change your account options.  There is 
also a button on
your options page that will email your current password 
to you.


Bishwa S Koirala
Department of Economics
University of New Mexico
Albuquerque, NM 87131

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


Re: [R] Welcome to the "R-help" mailing list (Digest mode)

2008-11-27 Thread Gábor Csárdi
With igraph, do

read.graph(filename, format="ncol", directed=TRUE)

I just noticed that the 'directed' option is not documented, sorry about that,
Gabor

ps. please give a proper subject to your emails...

On Thu, Nov 27, 2008 at 9:54 AM, Weijia You <[EMAIL PROTECTED]> wrote:
> Hi friends,
>
> Is there anyone who happened to import data set in the "DL" format into R
> for further analysis?
>
> In the package of "network", there's only a method named "read.paj()".
> So now, I have to get the dl file from the original data set, and use UCINET
> to convert it to .net file. It's too complicated.
> :(
>
> In the package of "igraph", edgelist is one the format which can be
> imported, however, weight can not be expressed. As for the format "ncol",
> weight is considered, but it's always undirected.
>
> Thank you for comments and suggestions!
>
> Best!
>
> Weijia
>
>[[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 http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Gabor Csardi <[EMAIL PROTECTED]> UNIL DGM

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


Re: [R] Welcome to the "R-help" mailing list (Digest mode)

2008-11-27 Thread Weijia You
Hi friends,

Is there anyone who happened to import data set in the "DL" format into R
for further analysis?

In the package of "network", there's only a method named "read.paj()".
So now, I have to get the dl file from the original data set, and use UCINET
to convert it to .net file. It's too complicated.
:(

In the package of "igraph", edgelist is one the format which can be
imported, however, weight can not be expressed. As for the format "ncol",
weight is considered, but it's always undirected.

Thank you for comments and suggestions!

Best!

Weijia

[[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 http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Welcome to the "R-help" mailing list

2007-09-18 Thread 马传香
2007/9/19, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> Welcome to the R-help@r-project.org mailing list!
>
> To post to this list, send your email to:
>
> r-help@r-project.org
>
> General information about the mailing list is at:
>
> https://stat.ethz.ch/mailman/listinfo/r-help
>
> If you ever want to unsubscribe or change your options (eg, switch to
> or from digest mode, change your password, etc.), visit your
> subscription page at:
>
> https://stat.ethz.ch/mailman/options/r-help/chxmahappy%40gmail.com
>
> You can also make such adjustments via email by sending a message to:
>
> [EMAIL PROTECTED]
>
> with the word `help' in the subject or body (don't include the
> quotes), and you will get back a message with instructions.
>
> You must know your password to change your options (including changing
> the password, itself) or to unsubscribe.  It is:
>
> 800724
>
> Normally, Mailman will remind you of your r-project.org mailing list
> passwords once every month, although you can disable this if you
> prefer.  This reminder will also include instructions on how to
> unsubscribe or change your account options.  There is also a button on
> your options page that will email your current password to you.
>

[[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 http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.