similar to: how to read a file one line at a time?

Displaying 20 results from an estimated 1000 matches similar to: "how to read a file one line at a time?"

1999 Jun 07
2
GIF graphics device
Is there a GIF graphics device or some other way to generate a GIF from an R plot instead of postscript? Then, I could paste a plot right into PowerPoint or Word. -- Terry J. Westley, Principal Engineer Veridian Engineering, Calspan Operations P.O. Box 400, Buffalo, NY 14225 twestley at buffalo.veridian.com http://www.veridian.com
1999 Aug 30
3
using underscore character in column names
Suppose you're reading data from a file in which the column names contain underscore characters. Example: ------ start of file ----- pos_x pos_y 1.0 0.0 2.0 1.0 ------ end of file ------- Using read.table, I can read this file just fine: > data <- read.table (file="data", head=T) > data pos_x pos_y 1 1 0 2 2 1 > However, I can't
1999 Apr 01
2
need help installing ESS on Win95
Has anyone successfully installed ESS on Win95? I have emacs version 19.34.6 and R version 0.63.3. The ESS README and Makefiles seem pretty Unix-specific. -- Terry J. Westley, Principal Engineer Veridian Engineering, Calspan Operations P.O. Box 400, Buffalo, NY 14225 twestley at buffalo.veridian.com http://www.veridian.com
1999 Jun 28
3
using R interactively
1) Is it possible to erase data points, legends, and/or text from an R plot? 2) What's the best way to find the closest data point to what locator() returns? For more background and some context on these questions, read on... In using R interactively, I am displaying further details about a specific data point when the user clicks on the plot point. Here's a simple example: #
1999 May 14
1
HDF5 support in R
Has anyone succeeded in using HDF5 in R? Using Solaris R version 0.64.0: 1) R was configured in this way: cd /home/westley/R/R-0.64.0 setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/home/westley/HDF/lib ./configure \ --prefix=/home/westley/R \ --with-g77=/usr/calspan/gnu/bin/g77 \ --x-lib=/usr/openwin/lib \ --with-hdf5-libs=/home/westley/HDF/lib 2) But, when I attempt to
1999 Mar 29
1
Can R read NCSA's HDF?
I'm an R newbie, so please forgive if this question has been asked and answered many times before on this mailing list. I can't find anything in the manual (Notes or R), the FAQ or on CRAN, so... Has anyone implemented an interface so R can read NCSA's HDF? -- Terry J. Westley, Principal Engineer Veridian Engineering, Calspan Operations P.O. Box 400, Buffalo, NY 14225 twestley at
1999 Oct 25
1
need help with building R on Solaris without using shared FORTRAN libraries
I need to build R (we're currently at R version 0.64.0) for Solaris 2.5.1 on SunSPARC without using the libF77.so and libsunmath.so shared libraries. I'd like to use statically linked libraries instead. Nothing I have tried has worked as measured by executing the command "ldd R.binary" to see whether it references the shared libraries or not. This is what I've tried: 1)
1999 May 07
1
using text() to write into left margin
In version 0.63.0 for Win95, I can use text() to write into the left margin (to the left of the axis) as follows: > plot(0:10,0:10,pch="+") > text(c(1,0.5,0,-0.5,-1),1,"O") I see 5 "O" symbols at the expected position, two of which are left of the left axis. However, in version 0.64.0 for Solaris 2.5.1 on a Sparc/Ultra2, I only see three "O"
1999 Jun 29
0
dev.print() doesn't copy graphics in left margin
I've a plot which puts some text and lines in a wider than normal left margin (using xpd=T). When I use dev.print() to capture the plot to postscript, it faithfully duplicates the plot except for the graphics in the left margin. I can't duplicate this effect in a simple plot such as plot(runif(10)), so I can't give you sample code. Any idea what I'm doing wrong? R version
1999 Oct 25
0
errors terminating script
When running R in batch mode, I would like to detect certain errors and prevent them from terminating the script. Specifically, when I read in a file with read.table() and the file is empty, the script terminates. There are occasions when an empty file is OK, so I'd like to continue running. How can I catch such errors? -- Terry J. Westley, Software Systems Engineering Supervisor Veridian
1999 Jun 21
0
measure displayed size of a character string
Is there a way to measure the length of a character string as text() or mtext() would display it? Not in characters, but in inches or user coordinates. I'm displaying a hierarchical list in the left margin. I'd like to determine the length of the labels so that I can resize the plot so the labels don't spill over into the plot area. Like this:
1999 Aug 02
2
HTML Output from R
Task: To generate HTML output from R Details: I am trying to serve up HTML output from R. That is analyses or table of data from R saved as HTML output with formatted tables etc. This file is then called in a CGI script to output to user browser. The CGI script inspired by Mark J. Ray reads the HTML output, formats the header and footer and any graphic output if necessary. My question is: Has
1999 Oct 25
1
Summary: SQL-Interface
Some days ago I asked for general methods to access SQL-Databases. Thanks to: Terry Westley [twestley at buffalo.veridian.com], partha_bagchi at hgsi.com, F.Tusell [etptupaf at bs.ehu.es], Michael Lapsley [mlapsley at ndirect.co.uk], Robert Gentleman [rgentlem at jimmy.harvard.edu], Torsten Hothorn [hothorn at statistik.uni-dortmund.de] Several solutions were suggested: (1) using Michael
1999 Sep 30
6
Graphics output device
Dear developers, I wonder would you consider making a save to a graphics file format (as opposed to ps)? What prompts this is that we have just finished my wife's thesis using R heavily for stats and graphs. The combination of latex, bibtex and R generated .eps worked a treat and we were very pleased with both the final outcome and the efficiency of gernerating it, especially when all the
1999 Aug 03
2
Performance & capacity characteristics of R?
I hope this is merely a FAQ, and not an AFAQ (annoyingly....). I'm a SAS programmer, with several years' experience of the system, evaluating alternatives. See the SAS for Linux website (URL in sig) for more info. I'm exploring R's capabilities and limitations. I'd be very interested in having a deeper understanding of it capacity and performance limitations in dealing with
1999 Apr 30
2
Graphs
I am trying to use the Windows version of R to do the following: - Have a Delphi front-end which gets the user input - Delphi will produce a R script, do a system call to R to calculate the statistics. Is there a better way? Maybe a library one can use in Delphi or Visual C? - How do one see a graph? A graph is plotted in a window which IMMEDIATELY closes afterwords so that one can't
2007 Sep 25
2
Constraining Predicted Values to be Greater Than 0
I have a WLS regression with 1 dependent variable and 3 independent variables. I wish to constrain the predicted values (the fitted values) so that they are greater than zero (i.e. they are positive). I do not know how to impose this constraint in R. Please respond if you have any suggestions. There are some previous postings about constraining the coefficients, but this won't accomplish
2018 Aug 07
2
[R-pkg-devel] Run garbage collector when too many open files
Dear Uwe, (When replying to your message, I sent the reply to r-devel and not r-package-devel, as Martin Meachler suggested that this thread would be a better fit for r-devel.) Thanks. In the example below I used rm() explicitly, but in general users wouldn't do that. One of the reasons for the large number of file handles is that sometimes unnamed temporary objects are created. For
2008 Sep 17
10
netfilter + vpn + how/why + etc...
Hi, I have a few questions about the inner workings of netfilter (a graphical layout of my network setup @ https://aequorin.homeunix.net:62389/local/media/network-graph.png) 1) These are the syslog entries for some simple connection tests. Shorewall/netfilter has been set to record all stateful connections SSH is recognized as phys(eth0) -> $FW traffic. This is because PHYSIN is
2007 Jul 03
6
Need Advice/Suggestion
Hi all, As we know we can configure in astersik like before 5:00pm calls go to reception and after 5:00 pm calls go to some mobile no. One of my client requested that he wants to manually shift the dial plan like above as he has flexiable timing sometime he finishes at 3:00pm some time 8pm. I can not give him freepbx access. Any idea or solution. Regards Farooq --