On Fri, 23-Mar-2007 at 06:00PM +, Prof Brian Ripley wrote:
| On Fri, 23 Mar 2007, Erin Hodgess wrote:
|
| Dear R People:
|
| I am in the process of creating an R package via Windows.
|
| If I would decide to submit in to CRAN, what would I need to
| do in order to make it run for the
Mark Fisher wrote:
Is it appropriate to ask about this here? (I didn't see anything in the
FAQ.)
Can you please send me (the package maintainer) a reproducible example
that crashes R in a private message?
Thanks,
Uwe Ligges
--Mark
__
Hello, I'm having trouble with using the alpha channel for transparency
with lines with lattice levelplots.
If I use transparency via the alpha argument to rgb to overplot lines on
levelplot the transparent colour affects all of the region colours in the
plot.
Can anyone explain why the
Stan,
On Sun, 25 Mar 2007 13:36:47 -0400
Stan Horwitz [EMAIL PROTECTED] wrote:
I have been tasked with installing statistical and other data
analysis applications on a new Sun Fire X4600 M2 x64 server that came
equipped with eight AMD dual core Opteronn 64-bit processors. It is
running
On 26-Mar-07 01:05:41, Adrian Baddeley wrote:
Ranjan Maitra writes:
Does anyone have a suggestion (or better still) code for sampling
from the uniform distribution over the convex hull of a set of
points?
This is implemented in library 'spatstat'.
If x and y are vectors of coordinates
Hallo,
can anyone tell me how I can create a matrix in R? I have two arrays A =
c(0:3), B=c(0:3). C should be the matrix. I just found the description
that a matrix is just an array with two substricpts.
Thanks,
Corinna
__
R-help@stat.math.ethz.ch
Have a look at ?cbind, ?rbind and ?matrix
C - cbind(A, B)
C - rbind(A, B)
C - matrix(c(0:3, 0:3), ncol = 2)
Cheers,
Thierry
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Reseach Institute for Nature
Hi All
Please see the Rprofile file which i have modified as follows and after
that when I start R then I see that R says to me TRUE for all the
packages implying that all loaded at once.
But when i try to use commands as simple as help(lm), it doesnt work nor
any of the menu Packages is not
Assuming this is about the R (D)COM server from
http://cran.r-project.org/contrib/extra/dcom/00ReadMe.html
please note that it has its own mailing lists (accessed via the link on
that page). You will need to tell people the versions of everything you
used (as the R posting guide asked you
Dear R-gurus,
I need to print several plots into a graphic device and I would like to print
out a main title.
My code looks like
x-1:100
y-x^2
z-y/x
w-exp(z)
par(mfrow=c(2,2))
plot(y~x)
plot(z~x)
plot(w~x)
plot(z~w)
Kind regards,
miltinho
Brazil
Dear R users,
The function lmacfPlot( ) in fBasics, returns a list including the Hurst
Exponent. I get sometimes a value for Hurst Exponent using lmacfPlot bigger
than 1 which is theoretically incorrect. What could be reason ?
From the related documents, I could not find how
Use par(oma) for outer margins and then title with outer=TRUE or mtext
in the same way.
x-1:100
y-x
z-y/x
w-exp(z)
par(oma=c(0,0,2,0))
par(mfrow=c(2,2))
plot(y~x)
plot(z~x)
plot(w~x)
plot(z~w)
title(main=Main title,outer=T)
- Henrik
Milton Cezar Ribeiro wrote:
Dear R-gurus,
I need to print
Hi All
what is the command to give me the listing of the loaded packages. I mean
which are active and not the listing of all the installed packages as
given by library()
thanks in advance
-gaurav
Hi All
Thanks to you all for replying to my small query i got it. How can i load
many packages other than the default packages automatically at the
startup. Please tell me. I tried it by modifying the RProfile file, as
given in the posted mail with the subject(Problem in loading all packages
On Mon, 26 Mar 2007, [EMAIL PROTECTED] wrote:
what is the command to give me the listing of the loaded packages.
?search
?sessionInfo
(sessionInfo massages the output of search() to show only packages).
I mean which are active and not the listing of all the installed
packages as given by
Hallo,
I build a list by the following way:
Lst = list(name=Fred, wife=Mary, no.children=3, cild.ages=c(4,7,9))
I know how I can extract the information one by one. But now I want to
add a new entry which looks like
name=Barney, wife=Liz, no.children=2, cild.ages=c(3,5)
How can I add this
Lst - list()
Lst[[1]] - list(name=Fred, wife=Mary, no.children=3,
cild.ages=c(4,7,9))
Lst[[2]] - list(name=Barney, wife=Liz, no.children=2, cild.ages=c(3,5))
I.e. a list of lists
Regards
Michael
Schmitt, Corinna wrote:
Hallo,
I build a list by the following way:
Lst = list(name=Fred,
Dear R-help,
I am trying to use a package (not from CRAN) which includes two shared
library (.so) files. The maintainer suggests inserting two lines
in /usr/bin/R,
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:path-to-package/lib
export LD_LIBRARY_PATH
This works, but I felt more comfortable putting the
I really don't know what is going on here, beyond that 'utils' has not
been loaded.
But
1) You are not supposed to edit system files like library/base/R/Rprofile.
If you do, don't ask for help!
2) I don't see how the output shown came from the input shown: almost
surely it did not.
3) It is
Thanks, all, and thanks especially to Ted for your investigations in the other
thread with the same title! Does spatstat handle higher dimensions than 2?
Best wishes,
Ranjan
On Mon, 26 Mar 2007 10:31:15 - (BST) (Ted Harding) [EMAIL PROTECTED]
wrote:
I just wrote:
Thanks, Adrian! I
maybe it'd be better to use a data.frame(), e.g.,
dat - data.frame(name = I(Fred), wife = I(Mary), no.children = 3,
cild.ages1 = 4, cild.ages2 = 7, cild.ages3 = 9)
##
new.info - c(name = Barney, wife = Liz, no.children=2,
cild.ages1 = 3, cild.ages2 = 5, cild.ages3 = NA)
rbind(dat,
Try these:
search()
sessionInfo()
loadedNamespaces()
The first two show the attached packages (and some other info) and the
last one shows the namespaces that are loaded. Note that detaching
a package does not unload its namespace and unloading a namespace
does not de-register its methods.
Hallo,
good idea it is working. A new question appears: How can I display the entries
in a table like
name wife no.children child.ages
FredMary3 4,7,9
Barney Liz 2 3,5
Thanks, Corinna
-Ursprüngliche Nachricht-
Use c() to extend your list creating a list of lists:
Lst = list(name=Fred, wife=Mary, no.children=3, cild.ages=c(4,7,9))
Lst - c(list(Lst), list(list(name=Barney, wife=Liz, no.children=2,
cild.ages=c(3,5
You can give names to the components:
Lst - c(Fred=list(Lst),
R-help,
I'm applying a gam model (package mgcv) to predict
relative abundances of a fish species.
The covariates are year, month, vessel and statistical rectangle.
The model looks like this:
g1 - gam(log(cpue) ~ s(rekt1) + s(year) + s(mon) + s(reg1), data =
dataTest)
Once the model is
I think your solution is more comfortable. But what do you do if an new entry
consists of 4 children? How can you modify the old result of rbind()? Is ther a
possibility to save the childrens ages in one table entry?
Thanks, Corinna
-Ursprüngliche Nachricht-
Von: Dimitris
Prof Brian Ripley [EMAIL PROTECTED]
26-03-07 07:06 PM
To
Charilaos Skiadas [EMAIL PROTECTED]
cc
[EMAIL PROTECTED], r-help@stat.math.ethz.ch
Subject
Re: [R] Problem in loading all packages all at once
I really don't know what is going on here, beyond that 'utils' has not
been loaded.
@@@
On Mon, 26 Mar 2007, ian white wrote:
Dear R-help,
I am trying to use a package (not from CRAN) which includes two shared
library (.so) files. The maintainer suggests inserting two lines
in /usr/bin/R,
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:path-to-package/lib
export LD_LIBRARY_PATH
(Not a
Something ugly like this?
Lst - list()
Lst[[1]] - list(name=Fred, wife=Mary, no.children=3,
child.ages=c(4,7,9))
Lst[[2]] - list(name=Barney, wife=Liz, no.children=2,
child.ages=c(3,5))
cbind( do.call(rbind, as.list(Lst))[ ,-4],
child.ages=sapply( Lst, function(myli)
Dear R-Helpers,
I want to make a subset from my data set.
I'd like to perform different condition for subset.
I.e.:
I like to create a subset when:
- var1=0
- var2=0
- var3 is different from 2.
How can i develop a subset under this condition?
Thank you in advance.
Sergio Della Franca.
On Mon, 2007-03-26 at 17:02 +0200, Sergio Della Franca wrote:
Dear R-Helpers,
I want to make a subset from my data set.
I'd like to perform different condition for subset.
I.e.:
I like to create a subset when:
- var1=0
- var2=0
- var3 is different from 2.
How can i develop a
Dear R-Helpers,
I want to substitute the contents of a variable under some contitions.
I.e., I have this data set:
YEAR PRODUCTS
1 80
2 90
3 50
4 60
5 30
I want to perform this condition:
if products 70 then products=NA else products=products.
If you data frame is called 'df'
df$PRODUCTS[df$PRODUCTS 70] - NA
--
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40 S 49° 16' 22
Ohttp://maps.google.com/maps?f=qhl=enq=Curitiba,+Brazillayer=ie=UTF8z=18ll=-25.448315,-49.276916spn=0.002054,0.005407t=kom=1
On 26/03/07, Sergio Della
Thanks Adai. You can tell by the clumsiness of my script that I am new
to R and to programming. After wrestling with it this morning, I found
that the following worked best:
pre.outliers-subset(final.roi.df, gFDR4FWHM = 1.96)
detach(final.roi.df)
say your data frame is called tmp
tmp$PRODUCTS[tmp$PRODUCTS 70] - NA
b
On Mar 26, 2007, at 12:31 PM, Sergio Della Franca wrote:
Dear R-Helpers,
I want to substitute the contents of a variable under some contitions.
I.e., I have this data set:
YEAR PRODUCTS
1 80
2
Ok, this run correctly.
Now i want to perform much more conditions, i.e.:
tmp$PRODUCTS[tmp$PRODUCTS 70] - NA
and
tmp$PRODUCTS[tmp$PRODUCTS 20] - NA.
How can i perform this double condition in the same code?
2007/3/26, Benilton Carvalho [EMAIL PROTECTED]:
say your data frame is called
condition1 | condition2 (or)
condition1 condition2 (and)
tmp$PRODUCTS[tmp$PRODUCTS 70 | tmp$PRODUCTS 20] - NA
b
On Mar 26, 2007, at 12:47 PM, Sergio Della Franca wrote:
Ok, this run correctly.
Now i want to perform much more conditions, i.e.:
tmp$PRODUCTS[tmp$PRODUCTS 70] - NA
and
# I seem to be having a bit of a problem with Hmisc.
At least, I assume it is
# coming from there. When I try to put a labeled
matrix into a data.frame
# I get a very strange result. If you would run the
two examples I think
# you will see my problem.
# Example 1 no label
library(Hmisc)
mydata -
This is a slightly different formulation of your problem, but you
might find it easier to work with:
Start by making a data frame):
df=data.frame(Father=c
(Fred,Fred,Fred,Barney,Barney),Mother=c
(Mary,Mary,Mary,Liz,Liz),Child.Age=c(4,7,9,3,5))
If you want to add a wedding date column
Hi all,
in order to verify some results I did the following test in R (2.4.1.,
windows system):
X - cumsum(rnorm(100))
for (i in 1:1000) {
tmp - seq(1,length(X),by=i)
X.coarse - X[tmp]
X.return - diff(X.coarse)
X.scale.mean[i] -
Dear R users
I would like to make a new dataframe from an existing dataframe, retaining
ONLY those variables that end in the letter t
I have searched the help archives and consulted several reference books but
cannot seem to find an example.
Any ideas...? Thanks!
Mark
[[alternative
if 'test' is your data frame...
test[, grep([tT]$, names(test))]
b
On Mar 26, 2007, at 3:06 PM, [EMAIL PROTECTED] wrote:
Dear R users
I would like to make a new dataframe from an existing dataframe,
retaining
ONLY those variables that end in the letter t
I have searched the help
On 3/26/2007 2:48 PM, Oliver Faulhaber wrote:
Hi all,
in order to verify some results I did the following test in R (2.4.1.,
windows system):
X - cumsum(rnorm(100))
for (i in 1:1000) {
tmp - seq(1,length(X),by=i)
X.coarse - X[tmp]
X.return
On Mon, 26 Mar 2007, Marc Schwartz wrote:
Sergio,
Please be sure to cc: the list (ie. Reply to All) with follow up
questions.
In this case, you would use %in% with a negation:
NewDF - subset(DF, (var1 == 0) (var2 == 0) (!var3 %in% 2:3))
Probably a typo: should be !(var3 %in% 2:3)
[Sorry, I need to correct a vital typo!!]
On 26-Mar-07 18:48:50, Oliver Faulhaber wrote:
Hi all,
in order to verify some results I did the following test in R (2.4.1.,
windows system):
X - cumsum(rnorm(100))
for (i in 1:1000) {
tmp - seq(1,length(X),by=i)
Alternatively, you can use ?glob2rx
test[, grep(glob2rx(*[tT]), names(test))]
which allows for wildcards.
--sundar
Benilton Carvalho said the following on 3/26/2007 12:19 PM:
if 'test' is your data frame...
test[, grep([tT]$, names(test))]
b
On Mar 26, 2007, at 3:06 PM, [EMAIL
Thanks Phil and Benilton!
Mark
On 3/26/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Dear R users
I would like to make a new dataframe from an existing dataframe,
retaining ONLY those variables that end in the letter t
I have searched the help archives and consulted several reference
From: Thomas Lumley
On Mon, 26 Mar 2007, Marc Schwartz wrote:
Sergio,
Please be sure to cc: the list (ie. Reply to All) with follow up
questions.
In this case, you would use %in% with a negation:
NewDF - subset(DF, (var1 == 0) (var2 == 0) (!var3 %in% 2:3))
Probably a
Oliver Faulhaber wrote:
Hi all,
in order to verify some results I did the following test in R (2.4.1.,
windows system):
X - cumsum(rnorm(100))
for (i in 1:1000) {
tmp - seq(1,length(X),by=i)
X.coarse - X[tmp]
X.return -
Dear Bob,
If I understand correctly what you've done, the newdata that you're
using to get predicted values includes the three values of the response
variable, which are irrelevant to the predictions and cause each
prediction to be repeated three times.
I hope that this helps,
John
On Tue, 27
Does anyone have any suggestions for how to test for violation of the
sphericity assumption and apply the Huynh-Feldt correction to a
repeated-measure model? My model follows the format below:
Rep.anova=aov(Y~X1*X2+Error(Subject/(X1*X2),data=DataFile))
I've already
Dear Hans-Peter,
Thank you very much for your note!
I tried your package and it works all right (i.e. it indeed writes data to
Excel files), however it creates a new Excel file and this is not what I really
need. I need to update/create one sheet in the existing file.
I am using R do compute
Dear Prof. Ripley,
You seem not to have tried the simplest possible option. The following
works for me (beware of wrapped lines from mailers)
chan - odbcDriverConnect(DRIVER=Microsoft Excel Driver
(*.xls);DBQ=C:\\bdr\\hills.xls; ReadOnly=False)
sqlSave(chan, USArrests, tests, fast=TRUE) # or
Rusers:
I have tried to minimize computing times by taking advanage of
lapply(). My data is a 1000*30 matrix and the distance matrix was
created with dist(). What I am trying to do is to compute the standard
distances using the frequencies attached to the nearest negibors of n
reference
On 3/26/07, Michael Sumner [EMAIL PROTECTED] wrote:
Hello, I'm having trouble with using the alpha channel for transparency
with lines with lattice levelplots.
If I use transparency via the alpha argument to rgb to overplot lines on
levelplot the transparent colour affects all of the region
Deepayan Sarkar wrote:
I don't understand what you are trying to say. Here's a modified
version of your code:
Sorry, it's not that the transparency affects the plot regions but the
colour of the lines darkens the region
colours. I.e. with grey lines the regions are greyed. In your PDF the
Hello, thanks to Deepayan Sarkar for sorting me out on this one.
The problem with transparent lines affecting region colour in lattice
plot appears
when using Adobe Reader (v 8 in my case). I've only viewed the file on
Windows XP.
I've tried using Foxit Reader to view the file and there's no
I am working with microarray analysis and was using PAM with excel interface.
Is there a way to do random divisions for the training set in excel?
I also tried PAM in R with the pamr menu. How can I do the random divisions in
R?
Then I tried to reproduce classification with gene
Hello All,
I have just installed my R 2.4 (windows) as a test trying to load a data
frame and run combn() for each line into another file. How do I do this?
data.csv:
a,b,c,d
1,2,3.4
g,3,6,t
etc
x=data.csv, m=3
Thank you
Zam
I am having a peculiar problem with installation of packages. I am
trying to install the package maptools. This is what I get.
install.packages(maptools,depend=T)
Warning in install.packages(maptools, depend = T) :
argument 'lib' is missing: using /usr/local/lib/R/site-library
Warning:
Yes, sqlDrop does not work correctly for Excel worksheet names (and there
are other quirks).
As I said in another message, it is on my TODO list to make this work
better, but in the absence of good documentation of what the Excel ODBC
driver should do and several with known bugs it is largely
OK.
By the way, I only thought that I could do what I wanted!
It worked once but then it failed. When I was trying to update an existing
sheet I got an error message saying that it existed and when I was trying to
make a new sheet (something that worked once) I got a message saying that there
62 matches
Mail list logo