search for: nemesh

Displaying 4 results from an estimated 4 matches for "nemesh".

Did you mean: nemes
2009 Jun 18
1
Calling library functions from outside R
...there a way to evaluate multiple expressions in the same environment to make the above work? If so, I could then wrap R in whatever language of choice I'd like, and only have to make a user install a library. Are there other options I'm missing? Thanks for help/input on this. -Jim Nemesh [[alternative HTML version deleted]]
2009 Jul 17
1
Help with R.oo
...it that the first time I try to construct the object it fails, and the second time it seems to work just fine? Is there something I should be doing between declaring the constructor and using the object (besides adding S3 methods?) Thanks for any help, I find this entirely confusing. -Jim Nemesh [[alternative HTML version deleted]]
2009 Jul 21
1
Checking on closed file connections
Hi! I'm wondering if there's a smart way around this: fileName= (some valid file on your system) > fileCon=file(fileName, open="rt") > l<-readLines (fileCon, n= 1) > > isOpen(fileCon) [1] TRUE > close(fileCon) > isOpen(fileCon) Error in isOpen(fileCon) : invalid connection How do you test for a file being closed if isOpen gives you an error
2009 Jul 24
1
Simply matrix slice question
Is there any way to force a slice of a matrix to stay a matrix? R tends to convert a single row of a matrix into a vector. Example: z<-matrix (rnorm(20), ncol=5) zz<-z[1,] is.matrix(zz) #FALSE I usually resort to: zz<-matrix(z[1,], ncol=dim(z)[2], dimnames=list(rownames(z)[1], colnames(z))) But that seems horribly kludgy. Thanks! -Jim