similar to: combine UserDefinedDatabase and regular environments

Displaying 20 results from an estimated 900 matches similar to: "combine UserDefinedDatabase and regular environments"

2009 Oct 10
1
isFALSE
Hello, Just wondering why there is "isTRUE" and not "isFALSE". Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R commit #50000 |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc `- http://tr.im/yw8E : New R package : sos -------------- next part -------------- An
2009 Nov 07
1
getConnection, R_outpstream_st
Hello, I'm trying to use the limited connections api defined in Rinternals.h. I have code that looks like this (inspired from do_serializeToConn) : SEXP serialize_to_connection( SEXP xp, SEXP connection ){ Rconnection con ; struct R_outpstream_st out; R_pstream_format_t type = R_pstream_binary_format ; SEXP (*hook)(SEXP, SEXP) = NULL ; con = getConnection(Rf_asInteger(connection));
2009 Oct 09
1
celebrating revision 50000
Hello, Today, Brian Ripley commited the revision 50000 of R's svn repository. I took this as an opportunity to do some data analysis of the log and posted some code and graphics on my blog: http://romainfrancois.blog.free.fr/index.php?post/2009/10/09/celebrating-R-commit-50000 The plots of the number of commits per day (and per month) indicates a peak in 2002. Here are the top 20
2009 Oct 13
1
for loop over S4
Hello, Consider this : > setClass("track", representation(x="numeric", y="numeric")) [1] "track" > o <- new( "track", x = 1, y = 2 ) > for( i in o ){ + cat( "hello\n") + } Error: invalid type/length (S4/1) in vector allocation This happens at those lines of do_for: n = LENGTH(val); PROTECT_WITH_INDEX(v =
2009 Oct 27
1
recover and "called from" information
Hello, When using recover, the called from information is always "eval(expr, envir, enclos)", which is not particularly useful. > f <- function( ){ g <- function(){ stop( "ouch") }; g() } > options( error = recover ) > f() Error in g() : ouch Enter a frame number, or 0 to exit 1: f() 2: g() Selection: 1 Called from: eval(expr, envir, enclos) I'm
2009 Nov 09
1
\\signature macro generated by promptMethods
Hello, promptMethods generate a macro for signatures, but the macro does not exist in the Rd parser. > setClass("track", + representation(x="numeric", y="numeric")) [1] "track" > setGeneric("foo", function(x){ standardGeneric("foo") } ) [1] "foo" > setMethod( "foo", "track",
2009 Oct 02
1
environment( seq.int ) is NULL
... and also all objects that actually live in the .GenericArgsEnv environment. > all( sapply( ls( .GenericArgsEnv ), function(.) is.null(environment(.)) ) ) [1] TRUE This has the consequence preventing argsAnywhere to get the args of seq.int. > argsAnywhere( seq.int ) Error in exists(".packageName", envir = envir, inherits = FALSE) : use of NULL environment is defunct
2009 Oct 12
1
unexpected behaviour of isSymmetric() (PR#14000)
Full_Name: Mike Danilov Version: 2.9.0 OS: Fedora Core 9 Submission from: (NULL) (142.103.121.198) When checking for the symmetry of a matrix, function isSymmetric.matrix() gets confused by the discrepancy of colnames/rownames if its argument. See the code snippet below. Perhaps it's a problem of the matrix product which copies colnames of the first argument but not the rownames of the
2009 Oct 16
2
Urgent help requested to modify a script
I am hoping someone will tak up this chalenge (I am new to R) I have inheritied an R script but need to change it. The script currently includes hardcoded file locations on lines 12,166 and 167. I need to modify this script to allow the folder to be passed as a command line argument to Rscript.exe Can anybody help please? Regards, Ian http://www.nabble.com/file/p25924237/My_script.R
2009 Oct 28
1
how can i call R program from one java program?
Dear All I want to call the R program from one Java program because In my project R program parameters are set by one web page developed by java. Is this possible to call R program from java? many thanks in advance -- Wesley C Mathew [[alternative HTML version deleted]]
2009 Oct 13
4
Creating a list of empty lists
Well here is one more brain-teaser related to assigning stuff into a list of list. What if I need to create a new list of empty lists? I have actually got a solution to this problem: l = list(list()) for ( i in sequence(length-1) ) { l = list(unlist(l,recursive=FALSE), list()) } But it is not very neat to do this in a loop. Are there any cuter ways to do this?
2009 Oct 13
3
Function to find prime numbers
I need to create a function to find all the prime numbers in an array. Can anyone point me in the right direction? Thank you. AJ -- View this message in context: http://www.nabble.com/Function-to-find-prime-numbers-tp25868633p25868633.html Sent from the R help mailing list archive at Nabble.com.
2009 Oct 15
1
Problems with rJava and tm packages
I am looking to do some text analysis using R and have run into some issues with some of the packages. Im not sure if its my goofy Vista OS or what but using R 2.8.1 i s relatively successful loading the text but the rJava package was messed up somehow: library(tm) > library(rJava) Error in if (!nchar(javahome)) stop("JAVA_HOME is not set and could not be determined from the
2009 Nov 13
2
How to show all the functions and classes that are defined in a library?
library(some_library_name) Suppose I load a library. I'm wondering what command I should use to list all the functions, classes and variables defined in the library.
2009 Nov 20
1
Including local dynamic libraries
Hi All, I am trying to install the package rjags into a local library on a machine for which I do not have root permissions. Using the command: R CMD INSTALL --configure-args="--with-jags-include= ${JAGSBIN}/include/JAGS --with-jags-lib=${JAGSBIN}/lib/ --with-jags- modules=${JAGSBIN}/lib/JAGS/modules" CMD INSTALL -l ${JAGSBIN}/lib/ ../ rjags_1.0.3-12.tar.gz Where ${JAGSBIN} is
2009 Oct 27
1
Rjava, RImageJ, and/or S4 question.
I am out of my league with this question. The following code starts the java imaging program ImageJ from within R, and displays an image (assuming ImageJ is installed on your computer). library(RImageJ) img <- IJ$openImage( file.choose() ) #pick an available .tif file img$show() # make the image object visible # An image is now displayed # find out about the objects involved >
2009 Nov 13
5
Help with complicated regular expression
Colleagues, I am using R (2.9.2, all platforms) to search for a complicated text string using regular expressions. I would appreciate any help you can provide. The string consists of the following elements: SOMEWORDWITHNOSPACES any number of spaces and/or tabs ( any number of spaces and/or tabs integer any number of spaces and/or tabs ) Examples include: WORD ( 123 ) WORD(1 )
2009 Nov 20
6
How to: highlight R syntax on webpages ?
My question if in the Subject, but if to extend: I am specifically curious about WordPress blogs. But any solution will give me a lead. Thanks, Tal ---------------------------------------------- Contact me: Tal.Galili@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com/ (English) [[alternative HTML version deleted]]
2009 Sep 24
3
making R print on screen
Hello! I am running a "for" loop. In the loop I am producing some intermediary results and asking R to print it (of the type below). However, I noticed - when the task is complicated and takes a lot of time, R does not print those intermediary results immediately, but prints them in batches - or does not print at all until we are done with the whole calculation. Is there any way to
2009 Nov 19
5
Accessing list names in lapply
Hi, When using lapply (or sapply) to loop over a list, can I somehow access the index of the list from inside the function? A trivial example: df1 <- split( x=rnorm(n=100, sd=seq(from=1, to=10, each=10)), f=letters[seq(from=1, to=10, each=10)] ) str(df1) #List of 10 # $ a: num [1:10] -0.801 0.418 1.451 -0.554 -0.578 ... # $ b: num [1:10] -2.464 0.279 4.099 -2.483 1.921 ... # $ c: num