similar to: R extensions

Displaying 20 results from an estimated 10000 matches similar to: "R extensions"

2009 Mar 19
8
function question
Dear R Gurus: I read somewhere that functions are considered vectors. Is this true, please? thanks Edna Bell
2007 Nov 26
3
generating .Rd files
Hi R Gurus! I have a package that I am putting together. I waited until the end to do the documentation and would like to generate a set of "empty" .Rd files. Is there a quick way to do this, please? Thanks, Edna Bell PS I can't seem to access the "Writing R Extensions" manual from 2.6.1 on Windows.
2007 Nov 28
2
[OT] putting URLs in Latex
Hi R Gurus! This is definitely off topic, but I thought I'd try: what is the way to put in url's into a Latex file, please? I know that you start with a \newcommand statement, with some kind of argument that will change, but I'm not sure how to set it up, please. thanks, Edna Bell
2007 Oct 22
3
strsplit
Hello R Gurus: I would like to take a character string and split at the $ sign. I thought that strsplit would do it, but here are the results: > vv [1] "whine$ts1" > vv [1] "whine$ts1" > strsplit(vv,"$") [[1]] [1] "whine$ts1" Does anyone have any suggestions, please? Thanks, Edna Bell
2007 Oct 01
2
convert time series to data.frame
Dear R gurus I would like to take a monthly time series and convert it to a data frame without losing the tsp items, pleae I've tried as.data.frame and data.frame but I get the series without the time element. Any suggestions, please? tia Edna Bell
2008 Sep 09
2
test for a single variance
Dear R Gurus: Is there a test for a single variance available in R, please? Thanks, Edna Bell
2007 Sep 24
2
making R packages and compacting an entire R set up
Hi R Gurus! I have 2 questions, please: a. I'm putting together a little baby package on SUSE Linux 10.1. I want to create a zip of the package for windows. How should I create that please? b. I don't know if the following is possible but here it is: I have R and a bunch of libraries set up very nicely. I would like to hand off this setup to someone else. Should I just copy
2007 Aug 27
2
Rmpi and x86
Dear R Gurus: Is there a problem with Rmpi on x86 with SUSE 10.1, please? I've tried everything and it still won't load. Has anyone else dealt with this please? Thanks, Edna Bell
2009 Mar 15
2
builtin vs. closure
Dear R Gurus: I'm working slowly through "R Programming for Bioinformatics", which is really interesting! Anyway, my question now is: what determines if a function is a builtin vs. a closure, please? For instance: > typeof(sqrt) [1] "builtin" > typeof(mean) [1] "closure" > Thanks, Edna Bell
2008 Feb 20
2
[OT] Linux/UNIX question
Dear R Gurus: I'm trying to find R on another Linux system. I'm using the find command, (surprise), but I only want to see the output where it exists, not all of the other stuff. Is there an option that I could select, please? Right now I have find / -name R TIA, Sincerely, Edna
2008 Jul 29
1
more environment questions
Hi R Gurus: Here is some code that I was experimenting with, please: > f1 <- function(x) { + e1 <- new.env(parent=.GlobalEnv) + environment(e1) + print(environment()) + return(mean(x)) + } > f1(1:15) <environment: 0x02525444> [1] 8 > My question: why isn't the environment within the function set to e1, please? Thanks, Edna Bell
2009 Mar 15
4
primitives again
Dear R Gurus: How do I find the functions which are primitives, please? Thanks, Edna Bell
2007 Jul 06
1
Rmpi installation
Hi R Gurus. I'm trying to install the Rmpi package. Here are the errors: checking for stdint.h... yes checking for unistd.h... yes checking mpi.h usability... no checking mpi.h presence... no checking for mpi.h... no Try to find libmpi or libmpich ... checking for main in -lmpi... no libmpi not found. exiting... ERROR: configuration failed for package 'Rmpi' ** Removing
2007 Jul 04
1
Newbie creating package with compiled code
Hi R Gurus! I'm trying to create a test package using the package.skeleton function. I wanted to add some compiled code too. In the src library, I put together a baby subroutine, compiled it and created a test.dll When I use the R cmd build, it works fine. But I get into trouble with the R CMD check section. /home/Desktop/R-2.5.1/bin # ./R CMD check mypkg * checking for working latex ...
2008 Jan 02
3
USA map with all states
Hi R Gurus! There was a function in S called "usa()" which would plot the US. I found map('usa') in R for the lower 48 states. Is there a way to include Alaska and Hawaii as well, please? Thanks, Edna Bell
2007 Nov 04
2
structure vs. matrix
Hi R Gurus! When creating a matrix, is it better to use the structure function or the matrix function, please? Thanks, Edna Bell
2007 Nov 02
2
correct wording and notation for R stuff in LaTex
Hi R Gurus: I'm putting together an article about some R stuff in Latex. I refer to packages and functions. I think that I use {\em} for packages and {\tt} for functions. Is that correct, please? Thank you in advance! Sincerely, Edna Bell
2008 Nov 07
2
2^2 factorial design question
Dear R Gurus: How do you put together a 2^2 (or even 2^k) factorial problem, please? Since you have 2 levels for A and B, do you put in "A+" and "A-" as factors, please? Thanks, Edna Bell
2009 Feb 13
2
adding S3 vs. S4 to a new package
Dear R Gurus: I'm building a package and am wondering whether to use S3 or S4 methods. Any advice, please? Thanks, Edna Bell
2008 Nov 13
2
2^2 problem revisited
Dear R gurus: Here is the following from Montgomery's Design and Analysis of Experiments, 5th edition. > str(rout1.df) 'data.frame': 16 obs. of 3 variables: $ resp: num 18.2 18.9 12.9 14.4 27.2 24 22.4 22.5 15.9 14.5 ... $ A : Factor w/ 2 levels "-1","1": 1 1 1 1 2 2 2 2 1 1 ... $ B : Factor w/ 2 levels "-1","1": 1 1 1 1 1 1 1 1 2