similar to: Simple command

Displaying 20 results from an estimated 40000 matches similar to: "Simple command"

2001 Nov 26
2
Named pipe connections and stdout
All, I am trying to use a named pipe to steer R from an external application. Following the examples in RNEWS 1:1, I have created a simple listener: zz <- fifo("TESTFIFO", "r") repeat { a <- readLines(zz) if(length(a) != 0) { e <- try(eval(parse(text = a))) if (inherits(e,
2000 Dec 01
1
text in new window
Hello all, For presentation and printing purposes I'd like to be able to open a new window device and write text and/or include an object (mostly matrices or lists). I've tried around windows(), but which I'd expect to work doesn't: windows(text(results)), or windows(parse("Final result:",results)) -"results" is a numeric object-. Thanks for any help, Alex
2000 Oct 11
5
"Executing" a string
In Matlab or Octave I can evaluate (evalf) the content of a string. In R I have looked around in the docs, but have not found a way to do something equivalent (which is possible, I think). Can anybody give me a pointer? ============================================================================= Thomas Hoffmann, Institut fuer Halbleiter- und Mikrosystemtechnik, TU Dresden E-mail: hoffmann at
1999 Dec 13
2
Combinations
I need some help here. >From a vector of variable length (say, c(A,B,C,D), I need to obtain all posible combinations (order doesn't matter) of the elements. I would like a function such as: function(x,c(A,B,C,D)) to give a matrix (for x=3) like: A B C A B D A C D B C D or for x=2 A B A C A D B C B D C D And so on. Any ideas?? Thank you, Alex Ahgarin Data Management I.R.W. Co.
2000 Jan 06
1
No subject
I apologize in advance to those for who this wuestion may be too stupid. Running R 0.091 on Windows 95 (a very old machine I'm afraid 486-66 16M) When constructing a big matrix I get: Error: heap memory (6144 Kb) exhausted [needed 7087 Kb more] See "help(Memory)" on how to increase the heap size. Help(Memory) tells me I must: (Quote) Use command line options to set the memory
2000 Feb 15
1
Help with for
I haven't been able to solve two issues, really appreciate any help. Q1. Why this one goes like that? (could it be a bug?): What I want: > J_c(1,2,3) > MA_NA > MA[1]_min(J[1:2]) > MA[2]_min(J[2:3]) > MA [1] 1 2 Good, so now lets do it a little more faster (since the real vectors have over 15000 obs): > for (i in 1:2) MA[i]_min(J[i:i+1]) > MA [1] 2 3 It does the same
2013 Jan 17
2
error installing KEGGSOAP
Hi, I am new to bioconductor, trying to install KEGGSOAP package, but got warnings() when installing and error message when trying to load the package, can anyone suggest what went wrong? many thanks John > source("http://bioconductor.org/biocLite.R") Bioconductor version 2.11 (BiocInstaller 1.8.3), ?biocLite for help > biocLite("KEGGSOAP") BioC_mirror:
2001 Dec 05
3
one command on several lines
Hello! Is it possible to continue expand one command on several lines in R ? An attempt to write a=c(1990," ",1991, 1992, 1993,1994,1995,1996,1997,1998, 1999) in a file and then source('file') results in Error in parse(file, n, text, prompt) : syntax error on line 55 Thanks. Nick
2010 Nov 30
1
Simple question on eval
Hi group, I did some searches about this very simple question. Hope someone can help me out. If I have the following: a <- "x <- 2^2" a [1] "x <- 2^2" How do I evaluate the expression that gets me an answer of 4? I tried the following: > eval(a) [1] "x <- 2^2" > get(a) Error in get(a) : object 'x <- 2^2' not found (apparently
2023 Mar 28
1
uncaught C++ exception from Perl Search::Xapian XS?
On Mon, Mar 27, 2023 at 11:46:04AM +0000, Eric Wong wrote: > I'm using Search::Xapian XS from Debian stable and I'm getting what > appears to be an unwrapped C++ exception: > > terminate called after throwing an instance of 'Xapian::DatabaseModifiedError' > > Using `eval' from Perl5 doesn't seem effective in catching it. > > I'm using
2001 May 01
2
simple question
How does one turn a character string back into an object? I would like to take character strings and use them as objects, a process that I think is the reverse of deparse( substitute(X)). E.g., I would like to get the variable names from the fourth object listed with objects(), something like names(objects()[4]), but of course that doesn't work. Thanks Henry Dr. M. Henry H. Stevens
2011 Jul 05
1
How to translate string to variable inside a command in an easy way in R
I want to write a function that get 2 strings y and z and does the following R command. temp<-qq1[qq1$z==y,] for example if it get y="AMI" and z="PrimaryConditionGroup" It should do the following temp<-qq1[qq1$PrimaryConditionGroup=="AMI",] I could do it by the following function that is ugly and I wonder if there is an easier way to do it espacielly when temp
2012 Jan 26
1
eRm - Rasch modeling - First item missing from estimation
I'm trying to kick off some of the rust and learn some of the R packages for Rasch modeling. When I tried using the eRm package, I get item difficulty estimates for all my items accept the first (in terms of order) item. #Begin code library(eRm) r.simulation <- sim.rasch(20,100) r.data <- r.simulation$items #eRm results erm.rasch <- RM(r.data) names(erm.rasch) erm.items <-
2001 Feb 15
1
Updated introductory text
All, I have updated my practical introduction to using R to analyse epidemiological data for the March 2001 Computer Software in Epidemiology course at the Nordic School of Public Health to include a short section on object orientation. You can get this from: http://www.myatt.demon.co.uk As a ZIP file containing MS Word '95 (DOC) and Adobe Acrobat v4.xx (PDF) version of the document
2002 Mar 17
1
R hosting
Hi, I am thinking about setting a service to provide R hosting on Linux. Would anyone be interested? The idea is that a machine would be available that would provide R, Apache, MySQL, Java, Perl, PHP, and Python. Users could remotely login to use R directly or could use it to develop applications that use R. Also, this would save people the trouble of installing and upgrading R. This
2001 Feb 07
3
Goodness of fit to Poisson / NegBinomial
All, I have some data on parasites on apple leaves and want to do a goodness of fit test to a Poisson distribution. This seems to do it: mites <- c(rep(0,70), rep(1,38), rep(2,17), rep(3,10), rep(4,9), rep(5,3), rep(6,2), rep(7,1)) tab <- table(mites) NSU <- length(mites) N <-
2020 Mar 28
0
[klibc:update-dash] dash: eval: Fail immediately with redirections errors for simple command
Commit-ID: e9dcd440e4ba1812181839ba803dc0fe2909c43e Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=e9dcd440e4ba1812181839ba803dc0fe2909c43e Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Sat, 19 May 2018 02:39:54 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:55 +0000 [klibc] dash: eval: Fail
2001 May 30
3
Cluster process
Dear all, Is there a function to generate a Poisson cluster process? I believe that S-plus has a function to generate some point processes, make.pattern(), which include a Poisson cluster process. Thanks in advance ------------------------ Takashi Mizuno zoono at sci.osaka-cu.ac.jp Plant Ecology Lab. Osaka City University ------------------------
2006 Jun 02
2
Helping out - simple bugs to help familiarize with R design, source, etc
Hi All, Well I finally have found the time to get svn working and I have successfully built my own tuned atlas (multi-threaded version) libs and have both the r-devel and r-patched trees building daily on my box. The problem is I still do not have a good idea of the layout and design of R, and typically I "learn by doing" by trying to fix a bug that hits me. Unfortunately ;-)
2011 Nov 27
2
Transforming a string into a command
I would like to make a string executable, e.g, s<- "ln(a+b)" a<-1 b<-2 ???? execute string s to obtain ln(a+b) ???? How can I make it? Ciao fron Rome Vittorio