Displaying 20 results from an estimated 7000 matches similar to: "Ouput several lines of cat"
2010 Jul 30
4
Need to read an Excel File
I am trying to read an Excel file using the following:
a<-read.xls("mydata.xls", sheet=1)
The file mydata.xls is stored in the working directory. However I am getting
the following error. Can anyone help.
Error in findPerl(verbose = verbose) :
perl executable not found. Use perl= argument to specify the correct path.
Error in file.exists(tfn) : invalid 'file' argument
--
2005 Dec 30
5
HABTM with finder_sql problem (Rails bug?)
I''m building an app that needs i18n support across the entire database
(i.e. localized attributes). In order to do this I''ve created a
special HABTM join table that can be associated with _any_ other
table:
create table language_strings (
for_table varchar(255) not null,
foreign_id int not null,
language_id varchar(5) not null,
attr_name varchar(255) not null,
value text
2012 May 19
1
Catenating strings involving plotmath symbols.
In the context in which I am actually working it is necessary for
me to build parts of a text string to place on a plot in two separate
stages.
The following toy example illustrates what I am trying to do:
L1 <- substitute(list(paste("Bias in ", gamma,", ")))
L2 <- substitute(list(beta==b0),list(b0=300))
plot(1:10,main=L1) # Works fine.
plot(1:10,main=L2) # Works fine.
2007 Sep 13
1
minimize white space around lattice plot
Dear list,
I'm trying to produce a plot via xyplot with minimal sourounding white
space. However, I cannot find the options in xyplot, ps.options or
wherever which prevents lattice from drawing quite some white space
around my plot. However, this is quite a problem for me as I want to
produce an inset plot inside another lattice-plot. I'm using the panel
function to open a viewport and
2012 Feb 24
1
Telling plot() the max y value to expect when plotting one distribution and then using lines() to add more distributions
I am plotting three Pearson Type IV distributions. It looks like I have to plot the distribution with the highest value of y and then use lines() to add the two distributions that are shorter / have lower max values of y. The following code figures out which distribution has the max y value, plots it first and then uses lines for the other two distributions with a series of three if statements.
2024 Jul 29
1
Question about regexp edge case
On StackOverflow (here:
https://stackoverflow.com/questions/78803652/why-does-gsub-in-r-match-one-character-too-many)
there was a question about this result:
> gsub("^([0-9]{,5}).*","\\1","123456789")
[1] "123456"
The OP expected "12345" as the result. Several points were raised:
- The R docs don't mention the case of {,5} for the
2009 Jan 14
1
Histograms: Boxes and lines
Hi folks! I'm trying to get a histogram legend to give me a filled box and
a line. The problem is I keep getting both filled boxes and a line. How
can I get rid of the second box from the code below?
x<-rnorm(1000,mean=0,sd=1)
hist(x, breaks = 50, main="Histogram of x",freq=FALSE,
xlab=" x", ylab="Density",col="lightblue",
2009 Jan 14
1
Histograms: Lines and boxes
Hi folks! I'm trying to get a histogram legend to give me a filled box
and a line. The problem is I keep getting both filled boxes and a line.
How can I get rid of the second box from the code below?
x<-rnorm(1000,mean=0,sd=1)
hist(x, breaks = 50, main="Histogram of x",freq=FALSE,
xlab=" x", ylab="Density",col="lightblue",
2007 Oct 18
1
Lattice fails to draw insets
Hello all lattice experts!
I'm currently trying to plot inset figures in my lattice graphics. The
plot is composed out of two panels and in each panel I want to show an
inset figure which is a closeup of the data in each panel. Thus in each
panel I call xyplot again to plot the inset which I place in a grid
viewport. Nevertheless, once my first inset plot is drawn, lattice
aborts with an
2024 Aug 01
1
Question about regexp edge case
Thanks Tomas. Do note that my original post also mentioned a bug or doc
error in the PCRE docs for this regexp:
> - perl = TRUE does *not* give the documented result on at least one
> system (which is "123456789", because "{,5}" is documented to not be a
> quantifier, so it should only match the literal string "{,5}").
Duncan
On 2024-08-01 6:49 a.m.,
2006 Apr 26
1
Accessing Ouput from the Shell
Basically i am running input via rails into ffmpeg which is a shell
program. Is there a way i can take the output of the shell and store it
into a string? or any other form that i can manipulate.
andrew
p.s. i am trying to read the dimensions of a video file via ffmpeg and
use this value in my rails app.
--
Posted via http://www.ruby-forum.com/.
2010 Mar 03
1
Html/JavaScript/CSS code ouput in TextArea-- Best Ways
Hello:
What would be the best way to Output Code in TextArea for a UI
component?
The Rails App View is pure HTML and JavaScript.
1.render in text for controller action and the text is the code string.
The < and > etc can be passed as is in this mode.
2.Read a HTML Template File (containing JS and CSS references) in Public
directory(?) that needs to be substitute some variables that were
2008 Jun 07
0
[LLVMdev] C ouput pass or native binary
Recently I've been working on putting a little language together using the llvm toolset. I think I've wrapped my head around some of the beginner bits (and a big "thank you" for the kaleidoscope tutorial). What I'd like to do now is to take my Module* and output either a C file for native compilation, or just directly output a native binary.
I saw that llc can output C
2004 Aug 06
1
Good mp3-player with stdout-ouput for unix?
Hi,
as I am sending PCM-data over the stdin to ices2, i need a good mp3-player
wich runs at the console and is able to output pcm to stdout.
So far i tried mpg123 and xaudio, but each had problems. mpg123 wasn't able
to play some songs, particularely with varibale bitrate and xaudio played
some songs and afaik most mp3pro-shit in double speed, even if it's 44.1khz.
Does anyone know a
2008 Mar 17
1
Writing GLM/GEE Ouput to Text File
Hello,
How can one write the output of a GLM/GEE model to a text file, such that
the results appear in text file in the same (or similar) format they appear
in the R console? For instance, I have the following model:
Traitresult <- compar.gee(Y~X, data = data, family = "binomial", phy = tree,
scale.fix = TRUE, scale.value = 1)
How would I write "Traitresult" to a text
2006 Jul 03
2
could i change the ouput style on summary?
Dear friends,
summary() doesn't give a good ouput style,e.g.:
grass soiltem airtem gheight
humidity altitude
diluo :38 Min. :15.90 Min. :17.70 Min. : 8.00 Min. :
0.2360 high: 43
huanghuacai:32 1st Qu.:19.32 1st Qu.:22.60 1st Qu.:40.00 1st Qu.:
0.3190 low :119
hucao :46 Median :20.20 Median :25.30 Median :60.00
2003 Jul 27
2
Ogg ouput using libvorbisfile
Hi, I'm new to writing any kind of sound program and somewhat new to C.
I am on linux and I've been trying to get the example code
(http://www.xiph.org/ogg/vorbis/doc/vorbisfile/example.html)for the
decoder using libvorbisfile to work. I think my main problem is output
to /dev/dsp. If I use the example where the only change I made were to
open a file instead of using stdin and I ouput
2005 Dec 06
2
figure with inset
I am trying to plot a figure within a figure (an inset that shows a closeup of
part of the data set). I have searched R-help and other sources but not found a
solution.
What I would like to do is
(1) produce a plot
(2) specify a window that will be used for the next plot (in inches or using the
coordinate system of the plot produced in (1)
(3) overlay a new plot in the window specified under (2)
2024 Aug 09
1
Question about regexp edge case
On 8/1/24 20:55, Duncan Murdoch wrote:
> Thanks Tomas.? Do note that my original post also mentioned a bug or
> doc error in the PCRE docs for this regexp:
>
>> ? - perl = TRUE does *not* give the documented result on at least one
>> system (which is "123456789", because "{,5}" is documented to not be
>> a quantifier, so it should only match the
2009 Feb 25
2
A Modest Definition List Proposal (David E. Wheeler)
Taking David's example further, here is a first try:
id | name | description | more info
-----+---------+-------------------+-----------------
6 | Inset | An inset element | just one element
8 | Stories | Another element | another element
: with 2 lines, without
: colons on the left.
9 | Other