Re: [R] Extracting a website text content using R

2007-08-01 Thread Am Stat
All right, my question is, if there is(are) such function(s), what is(are)
it(they) ?


Best,

Leon




2007/8/1, Bert Gunter <[EMAIL PROTECTED]>:
>
> Yes, there are.
>
> (Please see and follow the posting guide if you wish to obtain something
> more specific)
>
>
> Bert Gunter
> Genetech Nonclinical Statistics
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Am Stat
> Sent: Wednesday, August 01, 2007 2:19 PM
> To: r-help@stat.math.ethz.ch
> Subject: [R] Extracting a website text content using R
>
> Dear useR,
>
> Just wandering whether it is possible that there is any function in R
> could
> let me get the text contents for a certain website.
>
> Thanks a lot!
>
> Best,
>
> Leon
>
> [[alternative HTML version deleted]]
>
> __
> R-help@stat.math.ethz.ch 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.
>
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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] Extracting a website text content using R

2007-08-01 Thread Am Stat
Dear useR,

Just wandering whether it is possible that there is any function in R could
let me get the text contents for a certain website.

Thanks a lot!

Best,

Leon

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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] Order by the columns

2007-07-30 Thread Am Stat
Dear useR,

I have a data matrix, it has n columns, each column is a two-level variable
with entires -1 and +1. They are randomly generated, now I want to order
them like (for example, 5 columns case)
---   -   -
--   -   --
.
(first several rows are the samples with all variables in low level)

+   -   --   -
+   -   ---
.


-   +   --   -


+  +   --   -



+ + + + +

Is there any function in R that could let me do this order by Var1 then
order by Var2 then...order by Var n


Thanks very much in advance!


Best,

Leon

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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] data order by different level of variables

2007-07-30 Thread Am Stat
Dear useR,

I have a data matrix, it has n columns, each column is a two-level variable
with entires -1 and +1. They are randomly generated, now I want to order
them like (for example, 5 columns case)
---   -   -
--   -   --
.
(first several rows are the samples with all variables in low level)

+   -   --   -
+   -   ---
.


-   +   --   -


+  +   --   -



+ + + + +

Is there any function in R that could let me do this order by Var1 then
order by Var2 then...order by Var n


Thanks very much in advance!


Best,

Leon

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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] set up automatic running of R

2007-07-18 Thread Am Stat
Hi useR,

I am trying to find how to schedule an automatic run of R periodically, I
have written some scripts to extract data which are updated monthly on
another server, my os is xp. The goal is that my script will run at a
scheduled time every month and record the results to some directories.

Now the scripts are done, only thing I need is to know how to let R run my
scripts at a certain time, say the first Sunday of each months.

Could anyone give me some clues?

Thanks a million in advance!


Best,

Leon

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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] Position of a specific letter in a character string

2006-11-01 Thread Am Stat
Cool, thanks a lot!  It works great!

Best,

Leon



  - Original Message - 
  From: Tim Calkins 
  To: Am Stat ; 
  Sent: Wednesday, November 01, 2006 6:55 PM
  Subject: Re: [R] Position of a specific letter in a character string


  here's one way

  > x <- "1234_5"
  > regexpr("_",x)
  [1]  5
  attr(,"match.length")
  [1] 1

  so 

  > regexpr("_",x)[1]
  [1] 5

  there's probably an easier way, but this works. 

  tim






  On 11/2/06, Am Stat <[EMAIL PROTECTED]> wrote:
Dear useR,

x is a character string

In R:

> x<- '32159_3'

Which function could enable me to determine the position of underscore in 
x? In here,  the underscore is on the 6th digit of x.


---
Yours Sincerely

Leon


[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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.




  -- 
  Tim Calkins
  0406 753 997 
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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] Position of a specific letter in a character string

2006-11-01 Thread Am Stat
Dear useR,

x is a character string

In R:

> x<- '32159_3'

Which function could enable me to determine the position of underscore in x? In 
here,  the underscore is on the 6th digit of x.


---
Yours Sincerely

Leon


[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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] plot a new picture against an old one to see the difference between them

2006-09-04 Thread Am Stat
Dear Roger,

Thanks, that's really helpful,  do you know how to deal with it if the two 
plots are  generated by plot(), not by contour().

Best,

Leon


- Original Message - 
From: "roger koenker" <[EMAIL PROTECTED]>
To: "Am Stat" <[EMAIL PROTECTED]>
Sent: Monday, September 04, 2006 8:06 PM
Subject: Re: [R] plot a new picture against an old one to see the difference 
between them


> for the second call to contour  use the argument add=TRUE.
>
> On Sep 4, 2006, at 6:42 PM, Am Stat wrote:
>
>> Hello, useR:,
>>
>> Suppose I have two plots made by using contour() function, say  Cont1 and 
>> Cont2 respectively.
>>
>> They have slightly difference because of the two slightly different  data 
>> I used.
>>
>> I want to see the difference between them so I want to plot Cont2  on 
>> Cont1, are there any methods to plot it without filling the  frame of 
>> Cont1 totally of Cont2.
>> I mean, how I can integreate the two plots together that they kind  of 
>> have weighted colors?
>>
>> Thanks very much in Advance!
>>
>> Leon
>> [[alternative HTML version deleted]]
>>
>> __
>> R-help@stat.math.ethz.ch 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@stat.math.ethz.ch 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] plot a new picture against an old one to see the difference between them

2006-09-04 Thread Am Stat
Hello, useR:,

Suppose I have two plots made by using contour() function, say Cont1 and Cont2 
respectively. 

They have slightly difference because of the two slightly different data  I 
used.

I want to see the difference between them so I want to plot Cont2 on Cont1, are 
there any methods to plot it without filling the frame of Cont1 totally of 
Cont2.
I mean, how I can integreate the two plots together that they kind of have 
weighted colors?

Thanks very much in Advance!

Leon
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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] How to draw the decision boundaries for LDA and Rpart object

2006-08-09 Thread Am Stat
Dr. Ripley,

Thanks very much for your help. I have used your partition tree and it works 
well.  I am not familiar with the 'tree' package but I found that the 
threshold to make a cut  returned by tree and rpart is almost the same 
value.

Does that mean the decision boundaries for Rpart and Tree are the same for a 
same data when using the default  value of parameters, no matter what the 
structure of data  is?

Thanks very much!

Leon




- Original Message - 
From: "Prof Brian Ripley" <[EMAIL PROTECTED]>
To: "Am Stat" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, August 09, 2006 3:04 AM
Subject: Re: [R] How to draw the decision boundaries for LDA and Rpart 
object


> On Wed, 9 Aug 2006, Am Stat wrote:
>
>> Hello useR,
>>
>> Could you please tell me how to draw the decision boundaries in a
>> scatterplot of the original data for a LDA or Rpart object.
>
> There are examples in MASS (the book).
>
>> For example:
>> > library(rpart)
>> >fit.rpart <- rpart(as.factor(group.id)~., data=data.frame(Data) )
>>
>>
>> How can I draw the cutting lines on the orignial Data?
>>
>> Or is there any built in functions that can read the rpart object
>> 'fit.rpart' to do that?
>
> See partition.tree in package tree.
>
>> PLEASE do read the posting guide 
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
> -- 
> Brian D. Ripley,  [EMAIL PROTECTED]
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford, Tel:  +44 1865 272861 (self)
> 1 South Parks Road, +44 1865 272866 (PA)
> Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-help@stat.math.ethz.ch 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] How to draw the decision boundaries for LDA and Rpart object

2006-08-08 Thread Am Stat
Hello useR,

Could you please tell me how to draw the decision boundaries in a scatterplot 
of the original data for a LDA or Rpart object.

For example:
> library(rpart)
>fit.rpart <- rpart(as.factor(group.id)~., data=data.frame(Data) )


How can I draw the cutting lines on the orignial Data?

Or is there any built in functions that can read the rpart object 'fit.rpart' 
to do that?

Thanks very much in advance!


Leon


[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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.