Displaying 20 results from an estimated 10000 matches similar to: "overwrite title"
2009 Aug 07
1
RMySQL - overwrite record, not table
Hi, useR-
In RMySQL, how do I overwrite records? (equivalent to "replace" query).
For example, suppose that dat2 is a newer data.frame than dat1.
con <- dbConnect(MySQL())
res <- dbWriteTable(con, "DBname", dat1, row.names=F, append=T, replace=T)
res <- dbWriteTable(con, "DBname", dat2, row.names=F, append=T, replace=T)
This would not update/replace the
2008 Jun 27
2
getting multiple argument names
hi, all-
i wrote a function that accept multiple arguments, but don't know how to
assign names automatically. run the following code:
foo <- function (...) {
x = list(...)
names(x) <- deparse(substitute(...))
x
}
a = 1; b = 2; c = 3
y <- foo( a, b, c)
names(y)
as you can see, only the first items are correctly named.
how do i correct this problem?
--
View this message in
2002 Sep 21
2
Setup.exe Hides Dialogues
I'm new on here, so I hope this has not been answered too many times
already. I searched the knowledge base at the Wine site without finding
a solution.
I just switched from Mandrake to Lindows, which seems to have a capable
version of Wine running. However, with two Winapps I've tried to
install, the initial setup window (fullscreen, borderless, no controls)
completely hides the
2009 Jun 19
1
namespace? environment? how to manage functions?
Hi, useRs-
I have been building a set of functions over time and now my R_GlobalEnv
becomes
too crowded.
I would like to put all my functions under the same namespace/environment.
Ideally,
I would like to call them using "env::func" as in C++.
The following code almost do the jobs I want - except that I need to add
"env$"
before defining each function. I can't do
2003 Jul 22
4
greek in main title
Hello,
I have written a function that demonstrates the CLT by
generating samples following the exponential distribution,
calculating the means, plotting the histogram, and drawing
the limiting normal curve as an overlay. I have the title
of each histogram state the sample size and rate (1/theta)
for the exponential (the output is actually 4 histograms),
but I can't get the greek letter theta
2009 Oct 23
2
connecting to Oracle
Hi, useR-
I am connecting to Oracle database using RODBC, but keep getting this error
message:
> library(RODBC)
> channel <- odbcConnect(dsn="abc", uid="abc", pwd="abc", case='oracle')
Warning in odbcDriverConnect(st, ...) :
[RODBC] ERROR: state IM002, code 0, message [Microsoft][ODBC Driver
Manager] Data source name not found and no default
2011 Jun 20
2
(no subject)
HELLO, anybody... could you help me to check the below coding for volcano.
what is the mistake?
what the plot could not display?
# volcano_plot.r
#
# Author: Amsha Nahid, Jairus Bowne, Gerard Murray
# Purpose: Produces a volcano plot
#
# Input: Data matrix as specified in Data-matrix-format.pdf
# Output: Plots log2(fold change) vs log10(t-test P-value)
#
#
2004 Sep 15
1
control of font size & colour for title, subtitles, axis, and tick marks in LATTICE graph
Hi,
I very much appreciate any help on this "fine tuning" problem in a lattice
graph (I am new to LATTICE and could not find an example in the help files
that worked for me. My apologies if I missed it there).
I am running the following box plots to compare conditional distributions of
x at different levels of y under two treatment conditions ID=1 (upper
panel ) & ID=0 (lower panel
2002 Feb 17
5
Horizontal Boxplot
Hello all.
I'm just a beginner trying to draw a boxplot and I don't know why every time
I try to make it horizontal I receive the error message "parameter
'horizontal' couldn't be set in high-level plot() function". Can anybody give
me an advice?
Here is the code:
opar <- par(ask = interactive() && (.Device == "X11" || .Device ==
2013 Jan 03
1
two lines in axis title combined with 'substitute' command
Hello,
I want to have the x-axis title of my plot in 2 lines, centered:
experiment 1:
log2(Ratio H/L)
I know that in principle that works with '\n'. However, I am also using the 'substitute' command for my axis title. However, it does not make a new line.
What I have so far:
logbase <- 2
test <- "bait"
cellline <- "cellline"
plot(
2011 Jul 18
2
line jump in plot legend title
Hello,
In order to reduce the width of my legend in a plot I introduced line jumps in the title. Here's the problem; the legend box hasn't adapted accordingly and part of the title is printed out of the frame.
See the example below:
plot(1:10)
legend("bottomright", bg="white", fill=c(7,8,12,13,19),
2007 Sep 07
3
Plotting lines to sets of points
I am using R to plot baseball spray charts from play-by-play data. I have
used the following command to plot the diamond:
plot (0:250, -250:0, type="n", bg="white")
lines(c(125,150,125,100,125),c(-210,-180,-150,-180,-210), col=c("black"))
I have also plotted different hit locations using commands such as the
following:
points(subset(framename$hit_x,
2011 Oct 17
2
special language character in a pie chart
Dear List Members,
I am working on a below piece of code: Initially have created pie
charts with Enlish labels to present the data for Czech Republic, now
however I need to print the label with original Czech fonts.
When I copy paste from Word, certain fonts get 'simplified' distorting
original spelling. How can solve this problem? Is there a package I
can download which will support
2009 Jul 17
2
Count data categories from table
Hi there,
I have a relatively simple question, though, I couldn't find a solution for
it so far. I have a table with 1000 entries and columns containing
information about different parameters for each entry.
What I want to do is group all parameters from one of the columns [e.g. if
all 1000 entries are grouped in 30 different categories (described as
character strings) in a second column] and
2003 Dec 14
1
A faster plotOHLC() for the tseries package
The plotOHLC function in the tseries package is useful to plot timeseries of
various financial assets with open/high/low/close data. I had often
wondered if it could be made to run a little faster. It turns out that the
following patch does
--- plotOHLC.R.orig 2003-12-14 12:02:20.000000000 -0600
+++ plotOHLC.R 2003-12-14 12:03:42.000000000 -0600
@@ -21,14 +21,9 @@
ylim <-
2005 Jul 15
2
pdf() black&white; panel titles in lattice
Hello,
I have two questions:
1. How can I get black and white graphics using the pdf()
device? I have tried pdf(Name.pdf, bg="white", fg"black"), but
I still get full-color graphics.
2. When using lattice, how do I change the title for each
panel? By default it uses the categories of the grouping
factor. I would like to modify the labels in the graphic
without changing
2009 Jun 05
1
Antialiasing plots and text on different devices
I have a question about antialiasing when R generates bitmaps. (This follows
a thread on the ggplot2 mailing list.)
I mostly use R on Linux, although I sometimes use it in Mac and Windows as
well. On Linux, I've found that plotting shapes 15-18 via cairo results in
bad-looking output. The points are not antialiased, and they are jagged and
misshapen. Plots generated in Windows also aren't
2009 Apr 18
1
export C++ array to R
Hi, I am a newbie on C++
Right now I have an array of doubles in C++.
Is there a way to "export" that array into R? Of course, I can allocate
the memory block first using "allocVector" and copying the array contents
one by one.
But, what if that array is fairly large? Copying doesn't look that
efficient.
I was thinking of setting the data pointer(DATAPTR) point to that
2008 Jun 03
1
using function from specific packages
hello, useRs-
i have a function that i wrote myself, for example, lag(x). however, when
i load 'zoo' packages and try to lag 'zoo' object, it gave me error. (R try
to
pass 'zoo' object into my function.)
i typed 'lag.zoo' in R, but it can't find it. how can i access 'lag.zoo'
function?
and in general, how can i deal with such problem as to access
2005 Sep 29
4
Any way to not overwrite sound files on compile?
Every time I recompile Asterisk (or upgrade to a new CVS-HEAD,
whatever) asterisk overwrites custom files I have made. Granted,
these files are named the same as the asterisk default files
(vm-login.gsm, etc) because we had a person here record them to
customize them a bit more for our application.
Short of keeping them somewhere and copying them back every time
(which isn't all that often)