similar to: putting output from print() into a string?

Displaying 20 results from an estimated 7000 matches similar to: "putting output from print() into a string?"

2001 May 09
1
Fortran subroutines dblepr, realpr, intpr
I am making my first attempts at using some Fortran code with R, and so far it's going OK. To print from my Fortran programs, it seems I need subroutines dblepr, realpr and intpr. From the excellent "Writing R Extensions" document: "Three subroutines are provided to ease the output of information from FORTRAN code. subroutine dblepr(label, nchar, data, ndata)
2000 Oct 26
1
Rgui and tcltk
I am having a little problem in relation to sending output to the R Console window, when a function is called by pushing a button in a Tk window. Actually there seem to be two components to the problem: -- the R prompt does not re-appear until <return> is pressed -- text output to the R Console window *disappears* after <return> is pressed The following, in R 1.1.1 under
2002 Feb 04
2
ASCII characters: from decimal code to R octal?
Is there a straightforward way to convert character information from decimal representation to the octal one used by R? I'd like something like a function ascii(number,base=10), such that > ascii(91) [1] "\133" I can easily do the mapping from 91 to 133, but what is a good way to operate on 133 to deliver "\133"? Would a lookup table be a better solution? David
2000 Nov 25
2
assigning to data frames with whole columns of NAs
I suppose this could be described as a feature (it seems to be similar in S-Plus), but it looks to me more like a bug. Why can't the assignment below to a row of "emptyframe" (or "anotherframe") be made? This with R --vanilla (version info below). Regards -- David David Firth Phone +44 1865 278544 Nuffield College Fax +44 1865
2001 May 03
0
R and Ox
Hi David, I hope all is well w/ you. Co-operation beetwen R and Ox would be most welcome. A possible problem lies in the fact that, although free for academic use, Ox is not open source. I too have been using Ox for computer-intensive programming. I also code some of my programs in C, but I always try Ox first, and in most cases it is efficient enough. For details, see
2001 Jul 12
0
density estimation from interval-censored data
I am aware of the nice R package "logspline", which does smooth density estimation from interval-censored data (that is, values that are known to lie in a specified interval rather than known exactly). Function logspline.fit uses a maximum penalized likelihood method, with the penalty related to the number of knots used in a cubic regression-spline fit. I need to be able to do some
2003 Jul 10
1
RE: packaged datasets in .csv format (David Firth)
> ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 9 Jul 2003 10:53:27 +0100 > From: David Firth <david.firth at nuffield.oxford.ac.uk> > Subject: [R] packaged datasets in .csv format > To: r-help at stat.math.ethz.ch > Message-ID: > <307D34CE-B1F3-11D7-A8D2-0050E4C03977 at nuffield.oxford.ac.uk> >
2000 Oct 20
1
How to plot log histograms?
Q: Is there an easy way to plot log histograms? The command "hist" draws a standard histogram with observed frequency on the y-axis. I would like to be able to draw the log frequency on the y-axis, but I can't see whether I can use "hist" for this. The purpose of such a plot is to see whether data are normal or Laplace or something else. - and the same question for
2001 May 01
2
6 times faster by eliminating apply
This is some kind of follow-up to my previous posts. I have further improved the speed of my program 6 times by eliminating all the apply(). It turns out that apply is slow, is slower than direct loop, it is an order slower than a matrix operation alternative. Here is one example. The first apply version runs 19 seconds, the second loop version runs 13 seconds, the third matrix version runs 1
2001 May 11
1
Windows, RCMD INSTALL and path (PR#939)
Full_Name: David Firth Version: 1.2.3 OS: Windows NT4 Submission from: (NULL) (163.1.103.107) Two things that look like bugs: 1. RCMD INSTALL does not seem to cope with quotes in the Windows path. With my path set to PATH="C:\R\Rtools";"C:\R\rw1023\bin";C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\ mingw2\bin I get, for example, C:\R>RCMD INSTALL boot RCMD
2006 Jan 12
1
Firths bias correction for log-linear models
Dear R-Help List, I'm trying to implement Firth's (1993) bias correction for log-linear models. Firth (1993) states that such a correction can be implemented by supplementing the data with a function of h_i, the diagonals from the hat matrix, but doesn't provide further details. I can see that for a saturated log-linear model, h_i=1 for all i, hence one just adds 1/2 to each count,
2005 Mar 20
1
Re: [R-SIG-Mac] NaN and linear algebra
No, blas/veclib is tested, so aprt this extreme case you should report some other more commonly used cases in which something fails on OS X. This will help us to work it out. As said, I'll try some tests without using veclib and let you know. I've fowarded this mail to r-devel, which seems to be the right place, so for future msg on the subject please use r-devel. stefano On
2009 Apr 21
4
OT Question about raid 5
Hi List I am hoping that someone here could perhaps give me a straight answer on a question that someone asked me today I have always belived that if you have 5 hard drives 1 50gb second 50gb third 20gb fourth 60gb firth 30gb that the largest would then be the size of the smallest disk, not 80 or 100 or 120 for that matter or am I wrong here? Regards? Per Qvindesland? -------------- next part
2004 Oct 23
2
R_LIBS and R Cocoa GUI for Mac OS X (PR#7308)
Full_Name: David Firth Version: 2.0.0 OS: Mac OS 10.3.5 Submission from: (NULL) (81.178.234.156) When running R in R Cocoa GUI 1.0 (v2004-10-14), I have > Sys.getenv()[["R_LIBS"]] [1] "/Users/david/Library/R" > .libPaths() [1] "/Users/david/Library/R/library" [2] "/Library/Frameworks/R.framework/Resources/library" The pasting of
2014 Jan 17
2
[LLVMdev] Invalid RegNum error
I'm writing a compiler using LLVM, and suddenly today I started to get this error, when emitting to a .s file. Assertion failed: (I != M+Size && I->FromReg == RegNum && "Invalid RegNum"), function getLLVMRegNum, file MCRegisterInfo.cpp, line 78. I'm emitting using x86_64-apple-darwin. Any thoughts about what could be causing this? LLVM validation does not
2001 Oct 01
1
lm documentation, "formula" component (PR#1105)
Full_Name: David Firth Version: 1.3.1 OS: linux and others Submission from: (NULL) (163.1.103.121) help(lm) says that An object of class `"lm"' is a list containing at least the following components: ... formula: the formula supplied. But is the "formula" component necessarily present? An example: > x<-rnorm(10) > y<-rnorm(10) >
2005 Jun 24
1
Capitalize the title in DESCRIPTION files? (PR#7969)
Full_Name: David Firth Version: 2.1.1 OS: Mac OS X Submission from: (NULL) (137.205.240.25) A small inconsistency in the "Writing R Extensions" manual: at http://cran.r-project.org/doc/manuals/R-exts.html#The-DESCRIPTION-file the displayed example has Title: My first collection of functions but the text that follows it says "The Title field...should be capitalized",
2004 Jan 28
1
\link{\url{anything}} gives Rdconv trouble (PR#6496)
Full_Name: David Firth Version: 1.8.0 OS: Mac OS 10.2.8 Submission from: (NULL) (80.177.12.48) In .Rd files, we use \url{stuff} to refer to a URL on the web. Just as the documentation says. Perhaps this isn't a bug, then, but certainly it's a trap for the unwary. If the construction \link{url{something}} appears in a .Rd file, then Rdconv --type=html ... gets stuck and appears
2003 Feb 12
1
models for square tables
I've posted a sample file for estimating loglinear models for square tables (mobility models) at http://www.xs4all.nl/~jhckx/mcl/R/ Comments and suggestions are welcome. John Hendrickx
2002 Feb 22
2
Tcl/Tk window lingering too long
I want to set up a simple Tk dialog interface to a function in R, such that when the "OK" button is pressed, the dialog window is destroyed and then R does its work on the data/parameters/whatever that were entered in the dialog. The function "test" below is a simple prototype. My problem: upon running test() and hitting "OK", R does its work (ie, computes