[Rd] merge.data.frame bug report (PR#8676)

2006-03-12 Thread todd
Merging data frames with no by variables does not append suffixes to  
column names to keep them unique.  Also, shouldn't by=NULL be a  
legitimate way to get the "Cartesian product" of two data frames,  
instead of getting the error message "'by' must specify columns"?

 > df=data.frame(col=1:3)
 > merge(df,df,by=numeric(0))
   col col
1   1   1
2   2   1
3   3   1
4   1   2
5   2   2
6   3   2
7   1   3
8   2   3
9   3   3
 >

 > merge(df,df,by=NULL)
Error in fix.by(by.x, x) : 'by' must specify column(s)
 >

 > sessionInfo()
R version 2.2.1, 2005-12-20, powerpc-apple-darwin7.9.0

attached base packages:
[1] "methods"   "stats" "graphics"  "grDevices" "utils"
[6] "datasets"  "base"
 >

 > version
  _
platform powerpc-apple-darwin7.9.0
arch powerpc
os   darwin7.9.0
system   powerpc, darwin7.9.0
status
major2
minor2.1
year 2005
month12
day  20
svn rev  36812
language R
 >


Best,
Todd Bailey

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] PR#8676

2006-03-16 Thread todd
Not actually documented to work?  The documentation for merge says,  
"If the by.* vectors are of length 0, the result, r, is the  
“Cartesian product” of x and y".

todd

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] sub returns garbage (PR#8687)

2006-03-16 Thread todd
Full_Name: Todd Bailey
Version: 2.1
OS: Mac OS-X 10.4.3
Submission from: (NULL) (87.112.79.124)


sub returns garbage in some strings when replacing something with nothing and
fixed=TRUE.  For example:

> a=c('hello','hello'); sub('lo','',a,fixed=TRUE)
[1] "hel" "hel\0\0"
> a=c('hello','hello'); sub('lo','',a,fixed=FALSE)
[1] "hel" "hel"


> version
 _
platform powerpc-apple-darwin7.9.0
arch powerpc  
os   darwin7.9.0  
system   powerpc, darwin7.9.0 
status
major2
minor2.1  
year 2005 
month12   
day  20   
svn rev  36812
language R

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Compile R to WebAssembly / Emscripten?

2019-02-20 Thread Todd Wilder
Has anyone attempted to compile R (probably without any OS bindings) to
WebAssembly / Emscripten? If so, how far did you get? (would be crazy
awesome if you could get all the way to a ggplot bitmap output). If not, is
this a waste of time or is there some daylight to doing this?

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] \VignetteKeywords{}, for KEYWORDS or for free-tagging?

2010-12-28 Thread Elliot Todd Kleiman

Hi R-devel,

[Question]:

* Is there a KEYWORDS file to lookup 'keywords' to supply
the vignette command, '\VignetteKeywords{}'?

-or, is the pkg writer free to tag the vignette using any
keywords he/she chooses? i.e., free-tagging.

Thank you,

+ Elliot Kleiman
__
San Diego State University
http://www.sdsu.edu/

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] \VignetteKeywords{}, for KEYWORDS or for free-tagging?

2011-01-03 Thread Elliot Todd Kleiman

Hi Kurt,

Thank you for the info!

However, I would also like to ask:

* Since the user may use any words as 'keywords',
what is the purpose of this command and what are
the benefits of using it?

* Where is the documentation for the '\Vignette*'
commands?

Because other than the '\VignetteIndexEntry' command,
I could not find any mentioning of them in the R-exts
manual, http://cran.r-project.org/doc/manuals/R-exts.html.

Best,

+ Elliot

On Mon, 3 Jan 2011, Kurt Hornik wrote:


Elliot Todd Kleiman writes:



Hi R-devel,
[Question]:



* Is there a KEYWORDS file to lookup 'keywords' to supply
the vignette command, '\VignetteKeywords{}'?



-or, is the pkg writer free to tag the vignette using any
keywords he/she chooses? i.e., free-tagging.


For vignette keywords, the latter.

Best
-k


Thank you,



+ Elliot Kleiman
__
San Diego State University
http://www.sdsu.edu/



__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel





__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] \VignetteKeywords{}, for KEYWORDS or for free-tagging?

2011-01-05 Thread Elliot Todd Kleiman

Hi Kurt,

Thank you very much for clarifying this.

I hope that some documentation may be
written about these commands and added
to one of the manuals in the future.

+ Elliot


On Wed, 5 Jan 2011, Kurt Hornik wrote:


Elliot Todd Kleiman writes:



Hi Kurt,
Thank you for the info!



However, I would also like to ask:



* Since the user may use any words as 'keywords',
what is the purpose of this command and what are
the benefits of using it?



* Where is the documentation for the '\Vignette*'
commands?



Because other than the '\VignetteIndexEntry' command,
I could not find any mentioning of them in the R-exts
manual, http://cran.r-project.org/doc/manuals/R-exts.html.


I don't think that the vignette metadata are currently used "a lot".
They make it into the vignette index but users don't get to play with
this.  (There are long-standing plans to integrate vignettes into the
help system [with help and help.search], though.)

Best
-k


Best,



+ Elliot



On Mon, 3 Jan 2011, Kurt Horniks wrote:



Elliot Todd Kleiman writes:



Hi R-devel,
[Question]:



* Is there a KEYWORDS file to lookup 'keywords' to supply
the vignette command, '\VignetteKeywords{}'?



-or, is the pkg writer free to tag the vignette using any
keywords he/she chooses? i.e., free-tagging.


For vignette keywords, the latter.

Best
-k


Thank you,



+ Elliot Kleiman
__
San Diego State University
http://www.sdsu.edu/



__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel








__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel