Displaying 20 results from an estimated 5000 matches similar to: "an R script editor for Mac"
2005 Jan 21
5
functions not found after installing DBI/RDBI packages
Hi,
I would like to be able to use R with a connection to a PostgreSQL database. I am using R 2.0.1 on windows XP. I have tried installing both the DBI and rDBI packages (which is better?) but in either case I run into the same problem - when i try to use either the dbDriver or dbConnect functions i'm told the function couldn't be found. Seems like the packages aren't installing
2004 Jul 21
3
How to sort TWO columns ?
Dear ALL,
I fear my question has already been answered many times before, but I
haven't fund that in archives...
I am working on spatial datasets and, in most arrays I'm handling, there are
two columns dedicated to (x,y)-coords.
For different reasons - notably to draw image() plots, I need to have these
two columns sorted in increasing order.
But sort() and order() seem to apply to
2004 Jul 15
1
About lattice plots and loops
I cannot operate lattice plots, notably those in package gstat, within for()
loops.
(I can neither read such graphics included in a .R (or .txt) file with the
source() function).
However same commands executed one by one don't fail.
Could you please help me find a means to execute lattice plots inside a loop
?
Jacques VESLOT
CIRAD
-----------------------------------------------------
2005 Jan 26
3
Still avoiding loops
Dear all,
I have a matrix X with 47 lines and say 500 columns - values are in {0,1}.
I'd like to compare lines.
For that, I first did:
for (i in 1:(dim(X)[1]-1))
for (j in (i+1):dim(X)[1]) {
Y <- X[i,]+Y[j,]
etc.
but, since it takes a long time, I would prefer avoding loops;
for that, my first idea was to add this matrix:
X1=X[,rep(1:46,46:1)]
to this one:
res=NULL
for (i in
2005 May 18
1
Line width through plot size reduction
Dear R-users,
Someone, who uses R under Mac, wants to insert a couple of small plots
(each with several lines) in an article, but he has to reduce plots'
size significantly. He did it (in pdf or enc. ps) but, unfortunately,
everything is reduced but lines' width. Besides, 'lwd' argument in par()
or plot() can't be less than one.
I am not a Mac user and I don't know
2004 Sep 22
1
layout for xyplot
Dear all,
I tried to use layout argument in xyplot to get one panel per page.
I have a dataframe named 'data' with the following variables:
x, y = coords,
sub, bloc = 2-level factors,
etat = 5-level factor,
I did :
> lset(theme = col.whitebg())
> xyplot(y ~ x | bloc*sub , data=data, groups=etat,
+ layout=c(0,1,4),
+ main="Etat des plantes dans chaque
2005 Jul 07
1
About ade4 and overlaying points
Dear R-users,
Is there an easy way to avoid points one upon another when ploting rows
and columns of 'dudi' objects ? Maybe there is a function in ade4 or in
an other package, or maybe someone has his or her own function to do
this (for example to automatically modify a little the coordinates of
these points to get a readable plot ?).
Thanks in advance.
Best regards,
Jacques VESLOT
2006 Nov 24
1
Error Message saying .Call("R_lazyLoadDBfetch", etc.
Hi,
I got the following error message when running a function of mine doing intensive computations:
Erreur dans .Call("R_lazyLoadDBfetch", key, file, compressed, hook, PACKAGE = "base") :
r?f?rence d'argument par d?faut r?cursive
I haven't found neither where the problem lies nor what could be recursive.
Besides, I wonder whether it might or not be a problem
2004 Sep 09
1
Indexing dataframe
I am sorry to ask such question, but I can't find a solution...
I have a dataframe 'd2004' and I want to remove two columns:
'd2004$concentration' and 'd2004$stade".
I could do it just as follows:
> names(d2004)
[1] "Localite" "Date" "parcelle" "maille"
"presence.plant"
2005 Oct 27
2
F tests for random effect models
Dear R-users,
My question is how to get right F tests for random effects in random effect models (I hope this
question has not been answered too many times yet - I didn't find an answer in rhelp archives).
My data are in mca2 (enc.) :
names(mca2)
[1] "Lignee" "Pollinisateur" "Rendement"
dim(mca2)
[1] 100 3
replications(Rendement ~ Lignee *
2005 Apr 26
11
good editor for R sources ?
Dear all,
(Sorry if the question has already been answered.)
Could someone please suggest a good text editor for
writing R sources ?
(I know emacs exists ... but I find it a bit heavy).
I use crimson (http://www.crimsoneditor.com) which is
small and simple, but the R syntax seems not to be supported.
Thanks for any advice
2004 Sep 09
0
AW: Indexing dataframe
Hi,
Use
Newdata <- subset(d2004, select=-c(concentration,stade))
See ?subset for details
Best,
Matthias
> -----Urspr??ngliche Nachricht-----
> Von: Jacques VESLOT [mailto:jacques.veslot at cirad.fr]
> Gesendet: Donnerstag, 09. September 2004 12:38
> An: r-help at stat.math.ethz.ch
> Betreff: [R] Indexing dataframe
>
>
> I am sorry to ask such question, but I
2006 Mar 29
6
which function to use to do classification
Dear All,
I have a data, suppose it is an N*M matrix data. All I want is to classify it into, let see, 3 classes. Which method(s) do you think is(are) appropriate for this purpose? Any reference will be welcome! Thanks!
Best,
Baoqiang Cao
2002 Dec 05
2
crimson editor
Hello,
Sorry about the last email, I just found the shortcutkey for sending, by
mistake :-(
OK. I am a windows user and I wanted to instal emacs. However, went to
speak with the information staf on the institut and they told me that that
is a bit problematic sometimes, and that there is a free soft that could do
a very similar job which is crimson...
This is like a note pad, but highlights the
2005 Oct 28
2
Random effect models
Dear R-users,
Sorry for reposting. I put it in another way :
I want to test random effects in this random effect model :
Rendement ~ Pollinisateur (random) + Lignee (random) + Pollinisateur:Lignee (random)
Of course :
summary(aov(Rendement ~ Pollinisateur * Lignee, data = mca2))
gives wrong tests for random effects.
But :
summary(aov1 <- aov(Rendement ~ Error(Pollinisateur * Lignee), data =
2005 Oct 07
2
R version 2.01.1, Crimson Editor and the "one" from nowhere
Dear List....
sorry to bother you R-gurus with such an "unstatistical" question... but
I face a problem using Crimson Editor with R 2.01.1 that I never had
using R 2.00.1.
I already posted on the Crimson Editor forum but it seems to be VERY few
R-users there....
I successfully used R v2.00.1until now (under Windows XP professionnal,
version 2002, Service Pack 2, P4 processor CPU 1.8
2004 Sep 21
1
bubble plots
Dear all,
I'm used to draw bubble plots (gstat) to get a first view of my spatial
marked data, but I can't find a way to label legend with marks after having
replaced them by a numeric scale.
I have a data frame with numeric coords and factors:
> names(data)
[1] "x" "y" "bloc" "sub" "inoc"
2005 Feb 15
1
Tests on contingency tables
Dear all,
I have a dataset with qualitative variables (factors) and I want to test the
null hypothesis of independance between two variables for each pair by using
appropriate tests on contingency tables.
I first applied chisq.test and obtained dependance in almost all cases with
extremely small p-values and warning messages.
> chisq.test(table(data$ins.f, data$ins.st))$p.val
[1]
2006 Sep 26
2
Vectorise a for loop?
Hi R guru coders
I wrote a bit of code to add a new column onto a "topTable" dataframe.
That is a list of genes processed using the limma package. I used a for
loop but I kept feeling there was a better way using a more vector
oriented approach. I looked at several commands such as "apply", "by"
etc but could not find a good way to do it. I have this feeling there
2006 Aug 18
0
[Fwd: Trend test and test for homogeneity of odd-ratios]
I partly answered my question since independence_test() function in coin package apparently do
Cochran-Armitage trend test just like Eric Lecoutre's function tabletrend() - slightly modified here:
> independence_test(pheno ~ geno, data = dat2, teststat = "quad", scores = list(geno = c(0, 1, 2)))
Asymptotic General Independence Test
data: pheno by groups 1 < 2