Re: [R] Find in R and R books

2010-11-22 Thread Georg Otto
Alaios ala...@yahoo.com writes:


 Also when I try to search in google using for example the word R inside the 
 search lemma I get very few results as the R confuses the search engine. When 
 I was looking something in matlab ofcourse it was easier to get results as 
 the search engine performs better.
 What are your tricks when you want to find some function that provides some 
 functionality?

To search R-specific sites the best place to go is this one:

http://www.rseek.org/

Cheers,

Georg

__
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] Find in R and R books

2010-11-22 Thread Spencer Graves
  Other people like R Site Search 
(http://search.r-project.org/nmz.html), which is available via the 
standard R function RSiteSearch.



  For me, the fastest literature search on virtually anything 
statistical is the findFn function in the sos package.  
(Disclaimer:  I'm the lead author of that package, so I may be biased.)  
findFn sorts search results to put the package with the most matches 
first.  The print method opens a table of the results in a web browser 
with hot links to the individual matches.  sos comes with a vignette, 
which includes an example of the writeFindFn2xls function.  This 
writes a findFn object to an Excel file with two sheets:  The second 
is all the matches found.  The first is a summary of the packages found 
with extra information not available via RSiteSearch.



  Hope this helps.
  Spencer


On 11/22/2010 3:19 AM, Georg Otto wrote:

Alaiosala...@yahoo.com  writes:



Also when I try to search in google using for example the word R inside the 
search lemma I get very few results as the R confuses the search engine. When I 
was looking something in matlab ofcourse it was easier to get results as the 
search engine performs better.
What are your tricks when you want to find some function that provides some 
functionality?

To search R-specific sites the best place to go is this one:

http://www.rseek.org/

Cheers,

Georg

__
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] Find in R and R books

2010-11-22 Thread Mike Marchywka







 Date: Mon, 22 Nov 2010 17:28:57 -0800
 From: spencer.gra...@structuremonitoring.com
 To: g...@well.ox.ac.uk
 CC: r-h...@stat.math.ethz.ch
 Subject: Re: [R] Find in R and R books

 Other people like R Site Search
 (http://search.r-project.org/nmz.html), which is available via the
 standard R function RSiteSearch.


 For me, the fastest literature search on virtually anything
 statistical is the findFn function in the sos package.
 (Disclaimer: I'm the lead author of that package, so I may be biased.)
 findFn sorts search results to put the package with the most matches
 first. The print method opens a table of the results in a web browser

Again, I have in past taken docs for various things like R, rendered
html to text and used things like grep and built my own indicies.
However, your facility does seem in that line of thought.

Personally I haven't had a problem with google scholar or
probably even citeseer would return good hits, R is not
a common english word so I think google can make use of it.




 with hot links to the individual matches. sos comes with a vignette,
 which includes an example of the writeFindFn2xls function. This
 writes a findFn object to an Excel file with two sheets: The second
 is all the matches found. The first is a summary of the packages found
 with extra information not available via RSiteSearch.


 Hope this helps.
 Spencer


 On 11/22/2010 3:19 AM, Georg Otto wrote:
  Alaios writes:
 
 
  Also when I try to search in google using for example the word R inside 
  the search lemma I get very few results as the R confuses the search 
  engine. When I was looking something in matlab ofcourse it was easier to 
  get results as the search engine performs better.
  What are your tricks when you want to find some function that provides 
  some functionality?
  To search R-specific sites the best place to go is this one:
 
  http://www.rseek.org/
 
  Cheers,
 
  Georg
 
  __
  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.
   
__
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] Find in R and R books

2010-11-22 Thread Spencer Graves

Hi, Mike, et al.:


in line


On 11/22/2010 5:43 PM, Mike Marchywka wrote:








Date: Mon, 22 Nov 2010 17:28:57 -0800
From: spencer.gra...@structuremonitoring.com
To: g...@well.ox.ac.uk
CC: r-h...@stat.math.ethz.ch
Subject: Re: [R] Find in R and R books

Other people like R Site Search
(http://search.r-project.org/nmz.html), which is available via the
standard R function RSiteSearch.


For me, the fastest literature search on virtually anything
statistical is the findFn function in the sos package.
(Disclaimer: I'm the lead author of that package, so I may be biased.)
findFn sorts search results to put the package with the most matches
first. The print method opens a table of the results in a web browser

Again, I have in past taken docs for various things like R, rendered
html to text and used things like grep and built my own indicies.
However, your facility does seem in that line of thought.

Personally I haven't had a problem with google scholar or
probably even citeseer would return good hits, R is not
a common english word so I think google can make use of it.


Thanks for this.


For me, anything that mixes math with worked examples is vastly superior 
to either alone, because I no longer have to puzzle sometimes for hours 
over a single line or page of mathematics:  I can try a variety of 
examples and walk through the code line by line until I understand.  In 
that way, I find R packages much more intelligible than theoretical 
treatises.  This is especially true when the R package comes with a 
vignette or companion documentation with script files working the 
examples (e.g., like the scripts subdirectories for nmle and fda).



Spencer


with hot links to the individual matches. sos comes with a vignette,
which includes an example of the writeFindFn2xls function. This
writes a findFn object to an Excel file with two sheets: The second
is all the matches found. The first is a summary of the packages found
with extra information not available via RSiteSearch.


Hope this helps.
Spencer


On 11/22/2010 3:19 AM, Georg Otto wrote:

Alaios writes:



Also when I try to search in google using for example the word R inside the 
search lemma I get very few results as the R confuses the search engine. When I 
was looking something in matlab ofcourse it was easier to get results as the 
search engine performs better.
What are your tricks when you want to find some function that provides some 
functionality?

To search R-specific sites the best place to go is this one:

http://www.rseek.org/

Cheers,

Georg

__
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.


[R] Find in R and R books

2010-11-17 Thread Alaios
Hello everyone.
In matlab  (again) there is a fucntion find that returns you the indexes where 
the condition in find was met. I want the same functionality in R i.e 
find(Mydata2) to return all the indexes where the condition is met. Do you 
know something like that?

Also when I try to search in google using for example the word R inside the 
search lemma I get very few results as the R confuses the search engine. When I 
was looking something in matlab ofcourse it was easier to get results as the 
search engine performs better.
What are your tricks when you want to find some function that provides some 
functionality?

I would like to thank you for your help
Regards
Alex



  
[[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] Find in R and R books

2010-11-17 Thread Ivan Calandra

Hi again!

The Introduction to R or other documentation might help you to get 
started.


And you should REALLY read the posting guide and provide a reproducible 
example.
In this case, some sample data corresponding to the type of objects you 
have, plus the result you expect would be enough (I guess).


From you precedent posts, I would think you're looking for something 
similar to this:

df - data.frame(let=rep(LETTERS[1:5],4), num=rnorm(20))
df[df$let==A, ]
df[df$num0, ]

By the way, if you just want the indexes, that will do:
which(df$num0)

Ivan

Le 11/17/2010 15:35, Alaios a écrit :

Hello everyone.
In matlab  (again) there is a fucntion find that returns you the indexes where the 
condition in find was met. I want the same functionality in R i.e 
find(Mydata2) to return all the indexes where the condition is met. Do you 
know something like that?

Also when I try to search in google using for example the word R inside the 
search lemma I get very few results as the R confuses the search engine. When I 
was looking something in matlab ofcourse it was easier to get results as the 
search engine performs better.
What are your tricks when you want to find some function that provides some 
functionality?

I would like to thank you for your help
Regards
Alex




[[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.


--
Ivan CALANDRA
PhD Student
University of Hamburg
Biozentrum Grindel und Zoologisches Museum
Abt. Säugetiere
Martin-Luther-King-Platz 3
D-20146 Hamburg, GERMANY
+49(0)40 42838 6231
ivan.calan...@uni-hamburg.de

**
http://www.for771.uni-bonn.de
http://webapp5.rrz.uni-hamburg.de/mammals/eng/mitarbeiter.php

__
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] Find in R and R books

2010-11-17 Thread Joshua Wiley
Hi Alex,

This ought to do what you are after.  For searching, I found the most
helpful thing to be thinking about what I was really after---this
helps with generating several key words to look for, which is more
likely to turn up results.  I also included some functions/packages to
help with R specific searching below.

Cheers,

Josh


###

## pseudo-random data with mean = 0
x - rnorm(20)
## Logical, vectorized test so it compares each element
## of x and determines whether it is greater than 2 or not
## returns a vector of TRUE/FALSE
x  2

## When indexing in R, if you pass a TRUE/FALSE vector of equal
## length, it will select TRUE elements and exclude the FALSE
## so your solution is:
x[x  2]

## or if you just want the indices, not the actual values
which(x  2)

## for documentation see

?Comparison #logical comparison/test
?logical # TRUE/FALSE class
?which # which function
?[ # indexing



## You can use this built in search function
RSiteSearch(your key word(s))

## If you think you almost know the name, apropos looks up objects
## in R that include your search string
apropos(find)

## There is a package to help with searching:
install.packages(sos)
library(sos)
findFn(words for desired function)


On Wed, Nov 17, 2010 at 6:35 AM, Alaios ala...@yahoo.com wrote:
 Hello everyone.
 In matlab  (again) there is a fucntion find that returns you the indexes 
 where the condition in find was met. I want the same functionality in R i.e 
 find(Mydata2) to return all the indexes where the condition is met. Do you 
 know something like that?

 Also when I try to search in google using for example the word R inside the 
 search lemma I get very few results as the R confuses the search engine. When 
 I was looking something in matlab ofcourse it was easier to get results as 
 the search engine performs better.
 What are your tricks when you want to find some function that provides some 
 functionality?

 I would like to thank you for your help
 Regards
 Alex




        [[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.





-- 
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/

__
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.