Displaying 20 results from an estimated 3000 matches similar to: "plot.table on R 1.9.1"
2005 Dec 12
2
export from R to MySQL
Hi R user!
What is the fastest way to export a large matrix or vector to a MySQL
database? The use of data.frame() and dbWriteTable() makes the process
slow, so is there any <direct> alternative?
Regards
Meinhard Ploner
2004 Nov 04
3
Finding out the number of times a loop has run
Hi,
Suppose I have:
for(i in 1:100000)
rnorm(100000)
(just a fake example, as my actual example is too long)
Is it possible to get the loop to print out i each time it has run?
Something like:
for(i in 1:100000) {
print(i)
rnorm(100000)
}
will only print i after the loop is completed. But if I want to print out
i whenever it re-enters the loop, is it possible (so I know how
2004 Mar 23
3
how to modify variables of another frame (but not global)
Hello!
Maybe "frame" is not the right term in this context.
I explain my problem by example code:
fun2 <- function(objName, add) {
## the object "objName" should be increased by "add",
## but the evaluation should be done in the calling function (here:
fun1)
## ...... what's the right code??
}
fun1 <- function() {
x <- 1
fun2("x",
2004 Sep 08
1
download of 1.9.1
Hi there,
I downloaded version 1.9.1 WinZip file, 9.367 bytes ( so I can update my R
and use the vcd package) but cannot get the download from your Web site to
unzip and install. So silly!
The error message is :" Error reading header after processing 0
entries." I tried downloading from 3 different URLs, all yielding the same
message when I try to unzip and install the file.
2006 Dec 21
4
where is the source code of bca.ci?
i was searching for the source of bca.ci, a function of the package
boot. I tried
require(boot, keep.source=TRUE)
but again the source was not viewable. How should i do?
Best regards
Meinhard Ploner
----------------
PS
> version
_
platform i386-apple-darwin8.8.1
arch i386
os darwin8.8.1
system i386, darwin8.8.1
status
major 2
2002 Feb 22
1
Summary: read.table on Mac OS X, CARBON vs. DARWIN
Thanks a lot, James!!
The problem is fixed. On the version 1.4.0 Mac/darwin (the latest
available version for this system) the function read.table (which is
called from read.delim etc., too) has the bug you explained.
Inserting the row
nlines <- nlines+1
after
lines <- c(lines, line)
removes this bug.
M.
On Friday, February 22, 2002, at 02:33 PM, james.holtman at convergys.com
2004 Sep 29
2
problems with ESS & R ...
Hi!
I have R 1.9.1, Mac OS X 10.3.5, GNU Emacs 21.2.1 and ESS 5.2.3.
I installed today the ESS by not changing ess-site.el, but creating
.emacs in $home with the single line:
$ cat ~/.emacs
(load "/usr/local/lib/ess-5.2.3/lisp/ess-site")
If I start now emacs and then R (with M-x R) then I get:
> options(STERM='iESS', editor='emacsclient')
but using fix() oder
2002 Feb 22
3
storing large data.frame's
I am new on R, so I have a maybe naive question:
if I have many large data.frames and I use only one or two per session,
what's the best way?
If all are stored in the actual .Rdata, the system gets slow.
On the other hand, I wouldn't like to make a separate package for the
data.
Should I save it with save() and then remove it with rm() ?
Could I reload it then?
Thanks for suggestions
2004 Oct 28
1
gsub() on Matrix
Hi,
Suppose I've got a matrix, and the first few elements look like
"x1 + x3 + x4 + x5 + x1:x3 + x1:x4"
"x1 + x2 + x3 + x5 + x1:x2 + x1:x5"
"x1 + x3 + x4 + x5 + x1:x3 + x1:x5"
and so on (have got terms from x1 ~ x14).
If I want to replace all the x1 with i7, all x2 with i14, all x3 with i13,
for example. Is there an easy way?
I tried to put what I want
2003 May 21
2
overlapping a plot with an external image
It's possible to overlap an external image (jpg or pdf)
with a plot generated with R?
Specifying the image as the background
of the plot might not be possible...
any idea?
thanks
Meinhard Ploner
2007 Oct 08
1
data.frame's and [2, c(T, F)] in R 2.6.0
In R prior to 2.6.0 with matrizes as well as with data.frames it is
possible to do:
a[2, c(TRUE, FALSE)]
In R 2.6.0 the mixed indexing works only for matrizes. Is this the
intention, a bug, or did I get something wrong?
Best regards
Meinhard
Meinhard Ploner
Althingstrasse 15
39031 Bruneck
P.IVA 0234 058 0212
Tel. +39 340 8937861
www.data-ploner.com
[[alternative HTML version
2004 Jul 08
1
building packages with NAMESPACE
hi!
I tried to build a very simple package with NAMESPACE file,
such that datasets are loaded only dynamically.
> a2 <- function(x=a1) x+4
> a1 <- 1:10
> package.skeleton("aaa", list=c("a1", "a2"))
Then I modified the help files and added the file NAMESPACE with these
2 lines:
useDynLib(aaa)
export(a1, a2)
Then "R CMD BUILD aaa" works
2006 Aug 19
1
problem with Rcmd check and fortran95, makefile
Hi all,
I have Win XP and R 2.3.1 on my notebook. I would like to write a package which includes some Fortran 95 code. Interestingly, if I compile and link the simple file test90.f90 directly with
g95 -c test90.f90
g95 -shared -o test90.dll test90.o
then PE Viewer ( a dll viewer) shows me the right functions in the export table, hence I can use the dll in R. But as it should become part of a
2004 Oct 25
2
library gregmisc
I write to ask you an help about the package gregmisc.
I saw the instructions, and I need some functionalities of this package,
but I am unable ti download it.
On friday I was able to download thte .zip, but R does not install this
package, today there is no possibility to download it.
What I have to do?
Thanks
Anna Maria Paganoni
Anna
2004 Aug 21
1
error bars
Dear all,
is there an easy way to create error bars for the following types of plots:
a) barplots
b) interaction plots
Many other statistics packages (e.g. Statistica) offer very nice
interaction plots with error bars, and I??d like to be able to do the
same in R.
Best regards
Christoph
2004 Sep 23
3
multinomial logistic regression
Hi, how can I do multinomial logistic regression in R?
I think glm() can only handle binary response
variable, and polr() can only handle ordinal response
variable. how to do logistic regression with
multinomial response variable?
Thanks
__________________________________
2004 Oct 03
3
Excluding data in R
I was hoping someone could help me!
How do you exclude outliers from a set of data?
Thanks,
Laura
[[alternative HTML version deleted]]
2004 Dec 27
1
classification using logistic regression
Dear Colleagues,
I would like to do classification using logistic regression. Which R package can I use?
Also is there any package for feature selection for logistic regression based method?
Thanks a lot in advance.
Happy holidays.
Regards,
Raj
[[alternative HTML version deleted]]
2005 Aug 02
1
R: regression data set
hi all
i am busy teaching a regression analysis course to second year science
students. the course is fairly theoretical with all of the standard
theorems and proofs...
i would like to give the class a practical assignment as well. could you
suggest a good problem and the location of the data set/s?
it would be good if the data set has been analysed by a number of other
people so that students
2004 Aug 16
3
adding sem to a plot
R-help,
I have a barplot and I wish to add standard erros (or deviations) bars to it.
How?
Thank you
Luis Ridao Cruz
Fiskiranns??knarstovan
N??at??n 1
P.O. Box 3051
FR-110 T??rshavn
Faroe Islands
Phone: +298 353900
Phone(direct): +298 353912
Mobile: +298 580800
Fax: +298 353901
E-mail: luisr at frs.fo
Web: www.frs.fo