Re: [R] Whats happening to the forum???

2009-11-28 Thread Sharpie
DispersionMap wrote: > > Whats happening? everthings changing round here...plus alot less > posts/users.. > R-Help is a mailing list which is independent of Nabble. Nabble is only one of many front-ends that provides a "forum-like" interface to the mailing list. Therefore, the users of the R

Re: [R] Whats happening to the forum???

2009-11-28 Thread Sharpie
DispersionMap wrote: > > > Im lost i want to post on the other forum...the address was something > like... http://old.nabble.com/R ...to get help with using R but i kept > getting redirected to this one (http://n4.nabble.com), and when i tried to > post a querie it made me sign up so i thou

Re: [R] How to find where the source code of an R function or package is installed?

2009-11-28 Thread Sharpie
Peng Yu wrote: > > I'm wondering where is the source of an R function or a package is. > For example, where is 'attributes'? > >> attributes > function (obj) .Primitive("attributes") > > I also do understand what .Primitive mean. Could somebody let me know > how to locate source file in an R

Re: [R] Why .Diag and .asSparse are not accessible in R sessions?

2009-11-29 Thread Sharpie
Peng Yu wrote: > > How to control what functions/classes are exported to a given namespace? > Namespace exports are set by package authors in the NAMESPACE file of an R package. You could alter the NAMESPACE and rebuild the package yourself, but an easier way would be to just use the ":::" o

Re: [R] How do I run to or more R consoles on Mac OS X?

2009-11-29 Thread Sharpie
chronos.phenomena wrote: > > This is really annoying me... when I click R application icon it brings > already opened session in the focus and it DOESN'T open new session > > any ideas? > I don't think this is possible with R.app on OS X. OS X applications do not spawn separate processes

Re: [R] About the method dispatch mechanism

2009-11-30 Thread Sharpie
Peng Yu wrote: > > I see the follow explanation in help(cbind). I don't understand what > the dispatch mechanism is. Could you point me what document or > reference I should read? > > The method dispatching is _not_ done via 'UseMethod()', but by > C-internal dispatching. Therefore, t

Re: [R] Container/Collection Object to keep data structures and object

2009-12-01 Thread Sharpie
Amir Liu wrote: > > I want to have a collection object that can store objects. In R I only saw > lists. But these only seem to be able to handle basic objects like numbers > and strings. Whenever I tried to add more complicated objects or just very > simple data structures like matrices I would

Re: [R] Container/Collection Object to keep data structures and object

2009-12-01 Thread Sharpie
Amir Liu wrote: > > In l[3] <- matrix(1:4, 2, 2) : >   number of items to replace is not a multiple of replacement length > When inserting single entries into a list list, you should use the '[[ ]]' notation. Use '[ ]' when you want to extract multiple entries or copy multiple entries from on

Re: [R] How to remove R banner?

2009-12-01 Thread Sharpie
Peng Yu wrote: > > I always see a banner like the following, which is annoying. I'm > wondering how to disable it. > > R version 2.7.1 (2008-06-23) > Copyright (C) 2008 The R Foundation for Statistical Computing > ISBN 3-900051-07-0 > > R is free software and comes with ABSOLUTELY NO WARRANTY.

Re: [R] How to export a function from a package and access it only by specifying the namespace?

2009-12-01 Thread Sharpie
Peng Yu wrote: > > Then I try the package 'try.package' in an R session. I'm wondering > why neither 'my_test_f' and 'try.package::my_test_f' work. > The error message you got below clearly explains this-- you did not export my_test_f in your NAMESPACE file. To access unexported functions, y

Re: [R] How to export a function from a package and access it only by specifying the namespace?

2009-12-02 Thread Sharpie
Peng Yu wrote: > > Is there a way to list all the functions in a namespace? I tried the > following one, but it is not working. > >> showMethods(where=getNamespace('try.package')) > No applicable functions > See: http://n4.nabble.com/Check-functions-in-package-td894903.html#a894905 -- Vi

Re: [R] reading table

2009-12-02 Thread Sharpie
Theodore Kengne wrote: > > Hi there, > > I am completely new in R. > I am trying to read a table that has no feature, so cannot put it in Excel > as usual. > Could you explain what you mean by "has no feature"? I cannot figure out what this phrase means in relation to the data set you are tr

Re: [R] Scraping a web page

2009-12-03 Thread Sharpie
Michael Conklin wrote: > > I would like to be able to submit a list of URLs of various webpages and > extract the "content" i.e. not the mark-up of those pages. I can find > plenty of examples in the XML library of extracting links from pages but I > cannot seem to find a way to extract the text

Re: [R] Naming conventions for R?

2009-12-03 Thread Sharpie
pengyu.ut wrote: > > There are documents for naming conventions for other languages. I'm > wondering if there is a document that clearly describes the > recommended naming convention for R. > You should browse this thread: http://n4.nabble.com/Google-s-R-Style-Guide-td901694.html#a901694

Re: [R] Naming conventions for R?

2009-12-03 Thread Sharpie
pengyu.ut wrote: > > On Thu, Dec 3, 2009 at 8:27 PM, Sharpie wrote: >> You should browse this thread: >> >>  http://n4.nabble.com/Google-s-R-Style-Guide-td901694.html#a901694 >> >> It was a pretty thorough discussion of style different guides for R. >

Re: [R] How to exclude lines that match certain regex when using read.table?

2009-12-03 Thread Sharpie
pengyu.ut wrote: > > I'm thinking of using external program 'grep' and pipe() to do so. But > I'm wondering if there is a more efficient way to do so purely in R > I would just suck the whole table in using read.table(), locate the lines that I don't want using apply() and grepl() and then red

Re: [R] Speed of accessing list element by index or name

2009-12-03 Thread Sharpie
pengyu.ut wrote: > > I'm wondering if the speed of accessing list element by index is the > same as that of accessing list element by name. > > l[[1]] > l[['name']] > Have you tried answering this question yourself using the system.time() function? -- View this message in context: http://n4

Re: [R] latex.table for table with character and numeric columns

2009-12-04 Thread Sharpie
Gerrit Draisma wrote: > > Hallo, > I have a dataset with one or two columns with character data > and the rest with numeric data. > Using latex.table from the quantreg package produced a table, > but I cannot set the decimals. > For instance: > --- > > x<-data.frame(Name=c("Jan","Piet","Jan"),

Re: [R] Use of apply rather than a loop

2009-12-04 Thread Sharpie
Dennis Fisher wrote: > > Colleagues, > > R 2.9.0 on all platforms > > I have a dataset that contains three columns of interest: ID's, serial > elapsed times, and a marker. Representative data: > Subject TimeMarker > 1 100.5 0 > 1

Re: [R] R packages and assess to data in packages

2009-12-05 Thread Sharpie
Tariq Perwez wrote: > > Hi Everyone, > > I have two very basic questions and would appreciate your help. > 1. I would like to see/access the data that comes with a given R package > by > using a function like read.table(). For example, I just installed car > package from CRAN. I know that somew

Re: [R] How to profile an R program?

2009-12-10 Thread Sharpie
Peng Yu wrote: > > Is there a way to profile an R program similar to valgrind > (valgrind.org), in the sense that I can easily see which function is > the bottleneck of an R program? > See writing R-Extensions, Section 3 "Tidying and Profiling R Code": http://cran.r-project.org/doc/manuals/

Re: [R] Export R output to Word/RTF?

2009-12-11 Thread Sharpie
Wenjie Lee wrote: > > Hi R Experts, > > I'm aware of pdf(), jpeg(),... functions. But, > > 1. Is it also possible to export graphs directly to word or RTF? I use to > copy and paste graphs but resolutions are not so great. > > 2. Also, is it possible to export your out to word file? I use si

Re: [R] Running 32 bit R in terminal on Mac OS

2009-12-25 Thread Sharpie
saleem1000 wrote: > > Hello, > > I am using Mac OS on R. When I start R thru the application menu I have > the option of running both the 32 bit version as well as the 64 bit > version. > > When I type in R in terminal I believe it starts up the 64 bit version. > How can I start the 32 bit ve

Re: [R] using a variable name stored in another variable?

2010-02-07 Thread Sharpie
Chris Seidel wrote: > > Hello, > > I'm trying to figure out how to create a data object, and then save it > with a user-defined name that is input as a command line argument. I > know how to create the object and assign it the new name, however, I > can't figure out how to refer to the new name

Re: [R] Contributed packages

2010-02-08 Thread Sharpie
Satish Vadlamani wrote: > > Folks: > If you wanted to find out about what are the contributed packages and > classify them, how would you go about it? For someone new like me, I would > like to know what the possibilities are. When I click on "install > packages" on my Windows version of R, it g

Re: [R] Resampling a grid to coarsen its resolution

2010-02-09 Thread Sharpie
Steve Murray-2 wrote: > > Dear all, > > I have a grid (data frame) dataset at 0.5 x 0.5 degrees spatial resolution > (720 columns x 360 rows; regular spacing) and wish to coarsen this to a > resolution of 2.5 x 2.5 degrees. A simple calculation which takes the mean > of a block of points to for

Re: [R] Passing a LaTeX length to Sweave

2010-07-10 Thread Sharpie
Thomas Levine wrote: > > I'd really love to do this > > \setkeys{Gin}{width=\columnwidth} > <>= > plot(y~x) > @ > > The \columnwidth macro does not work, of course, in the second line. > What can I do instead? > This may be difficult as there is no two-way communication between R and LaTeX i

Re: [R] F# vs. R

2010-07-11 Thread Sharpie
Sergey Goriatchev wrote: > > Hello, Marc > > No, I do not want to validate Cox PH. :-) > I do use R daily, though right now I do not use the statistical part that > much. > > I just generally wonder if any R-user tried F# and his/her opinions. > > Regards, > Sergey > In my work as a program

Re: [R] Fast string comparison

2010-07-11 Thread Sharpie
Ralf B wrote: > > What is the fastest way to compare two strings in R? > > Ralf > Which way is not fast enough? In other words, are you asking this question because profiling showed one of R's string comparison operations is causing a massive bottleneck in your code? If so, which one and how

[R] Incorrect positioning of raster images on Windows

2010-10-17 Thread Sharpie
I am working on dumping raster data from R into PNG files using rasterImage(). I am working with a test matrix from the rasterImage() example and using it to produce a PNG image with the following code: # From the example for rasterImage(). A 3 pixel by 5 pixel b/w checkerboard. testImage <- as

Re: [R] Incorrect positioning of raster images on Windows

2010-10-18 Thread Sharpie
e2Grid(list(x = 1:ncol(test), y = 1:nrow(test), z = t(test))) > writeGDAL(x, "raster.png", driver = "PNG", type = "Byte") > > > > On Mon, Oct 18, 2010 at 3:17 PM, Sharpie wrote: > >> >> I am working on dumping raster data from R into PNG

Re: [R] Incorrect positioning of raster images on Windows

2010-10-19 Thread Sharpie
Paul Murrell-2 wrote: > > Hi > > This is a rounding (truncation) problem. > Working on a fix. > > Paul > > Sharpie wrote: >> >> Michael Sumner-2 wrote: >>> I think there's something about the "discrete cell" versus "centre

Re: [R] debug R device plot

2011-05-23 Thread Sharpie
cameron.bracken wrote: > > You need to look for a file (it may not be in your project directory) that > contains "___LOCK" in its file name and delete it. > Specifically, the rogue lockfile should be in the same directory as options('tikzMetricsDictionary'). Or, if you haven't set a permanent l

Re: [R] inquiry about Version 2.11.0

2010-05-08 Thread Sharpie
Maria Clara Soto Velez wrote: > > Hello, > > I am trying to download the newest versión of R (R version 2.11.0), but I > haven´t been able, because it seems that the file is not working properly. > > Could you help me? > No. You have not provided enough information for us to even take a gue

Re: [R] Path to R script

2010-05-12 Thread Sharpie
Johannes W. Dietrich wrote: > > There is certainly a trivial solution for my question, but I can't > find the answer in the documentation. > > I need a platform independent method to obtain the file path of the > current R script. > > My working group uses R on several machines with differen

Re: [R] A primitive OO in R -- where next?

2010-05-12 Thread Sharpie
Ted.Harding-2 wrote: > > Greetings All, > > Out of curiosity, I've just done a very primitive experiment: > > Obj <- list(Fun=sum, Dat=c(1,2,3,4)) > Obj$Fun(Obj$Dat) > # [1] 10 > > That sort of thing (much more sophisticated) must be documented > mind-blowingly somewhere. Where? > > Wh

Re: [R] Path to R script

2010-05-13 Thread Sharpie
Johannes W. Dietrich wrote: > > At 19:29 Uhr -0400 12.05.2010, Gabor Grothendieck wrote: >>If you are running the file via source("myfile.R") then just put this >>in the file: >> >>this.dir <- dirname(sys.frame(1)$ofile) >> >>This is a bit fragile since changes to the internals of source could >

Re: [R] how to profile R interpreter?

2010-05-16 Thread Sharpie
Erich Neuwirth wrote: > > Look for Rprof in the utils package. > This was already suggested- but the original poster clarified that he is looking to profile the R interpreter it's self, not R scripts. - Charlie Sharpsteen Undergraduate-- Environmental Resources Engineering Humboldt State

<    1   2