On Tue, Feb 2, 2010 at 11:40 PM, David Winsemius dwinsem...@comcast.net wrote:
The real solution is to grab the miscreant sender by the throat , er,
tactfully discuss with your valued customer ,,, and shake out a machine
readable form that has all of one row in a row.
Indeed. But you might
Dear experts,
I would like to be able to interactively (if possible, with mouse and clik)
edit point labels in graphs, particularly in multivariate graphs, such as the
biplots you get after a correspondence analysis (with, for example, package
ca), where labels tend to overlap. The graph aspect
Dear all,
I using R version 2.9.0 on Windows XP and want to insert data from a data
frame in R into a oracle database via sqlUpdate with the package RODBC.
My example is the following:
TEST0-data.frame(NR=c(1,2,600),NAME=c(JK,TR,AR),
DATUM=c(2009-01-01,2010-01-02,2010-06-09))
If I create the
Le mercredi 03 février 2010 à 00:01 -0500, David Winsemius a écrit :
On Feb 2, 2010, at 11:38 PM, Peng Yu wrote:
?contrast in the contrast package gives me the following description.
However, I have no idea what Type II and III contrasts are. Could
somebody explain it to me? And what does
hello,
I have to do some work about information.
and I want to do it with R software.
The main problem is how to plot using R language.
Could you give me help? I need some material about it.
if you have some good material ,Could ihave i ?
my email is cailix...@genomics.org.cn
THX.
--
View this
On 02/02/2010 09:33 PM, Meenakshi wrote:
Hi,
When I run the repeat loop in R for large dataset, I got Memory problem.
How can I solve these problem.
1) Wait 2^m years, where m is the power of 2 that approximates the
multiple of your current amount of RAM that would accommodate your
problem
On 02/02/2010 11:01 PM, walter.dju...@chello.at wrote:
Hello R-experts,
I am having difficulties with 3D plotting (i.e. the evolution of various
forward curves through time).
I have two comma seperated files both ordered by date (in the first column) one containing contracts
(meaning forward
Hi
r-help-boun...@r-project.org napsal dne 02.02.2010 22:16:06:
'fraid not :-((
tapply( data, groups, weighted.mean, weights)
tapply(seq(along=lll), rrr, function(i, x, w) weighted.mean(x[i], w[i]),
x=lll, w=ttt)
If you want to subset more than one thing, subset the index
On Wed, Feb 3, 2010 at 10:50 AM, Santosh santosh2...@gmail.com wrote:
Dear R-experts..
I am trying to generate legend inside panels of lattice barplots..
Following is a sample dataset..
Sno DN EP Y1 Y2
1 1 D1 A20 19 19
2 1 D1 A50 8 9
3 1 D1 A70 3 4
4 2 D2 A20 22 22
5
Hi!
Looks like get() doesn't work. Here is what I do and what I get (still
in the loop):
names(get(paste(names(file)[3], name.num, sep=_)))-
levels(factor(file[[3]]))
Error in names(get(paste(names(file)[3], name.num, sep = _)))-
levels(factor(file[[3]])) :
could not find function get-
Hi
r-help-boun...@r-project.org napsal dne 03.02.2010 02:54:46:
Let's look at your data frame:
str(daily.sub1)
'data.frame': 9 obs. of 4 variables:
$ Trial: Factor w/ 1 level 2: 1 1 1 1 1 1 1 1 1
$ Tanks: Factor w/ 3 levels a4,c4,h4: 1 1 1 2 2 2 3 3 3
$ Day : Factor w/ 9 levels
Yes.
data.df[,wcol,drop=FALSE]
For an explanation of drop see ?[.data.frame
Chuck White chuckwhi...@charter.net wrote in message
news:20100202212800.o8xbu.681696.r...@mp11...
Additional clarification: the problem only comes when you have one column
selected from the original dataframe. You
Hi
r-help-boun...@r-project.org napsal dne 03.02.2010 09:19:59:
hello,
I have to do some work about information.
and I want to do it with R software.
If you have working connection to internet try to search
http://www.r-project.org/index.html documentation section (either for
manuals
Dear all,
i just wonder if there´s a way to use a two column time index field in plm
package.
the manual says the following concerning data indexing:
a character vector of length two containing the names of the individual and the
time
index,
What would y´all do with a quarterly dataset
Hi
r-help-boun...@r-project.org napsal dne 02.02.2010 21:32:16:
ke te pehea koe Peter?
I don't see how I could do this with a merge to be honest...
mat-matrix(sample(letters[1:3], 24, replace=T),6,4)
mat
[,1] [,2] [,3] [,4]
[1,] b c b c
[2,] b a a c
[3,] c b c a
[4,] b
I am using ggplot and posted this question at that helplist. It was
suggested that I try a more general R-help list for a possible solution to
this problem.
Within ggplot, I am using geom_area with red and blue and expect where they
overlap should be purple. But instead, it's dark red.
Playing
Hello
On 2/3/10, trece por ciento el13porcie...@yahoo.com wrote:
Dear experts,
I would like to be able to interactively (if possible, with mouse and clik)
edit point labels in graphs,
Try playwith.
Liviu
particularly in multivariate graphs, such as the biplots you get after a
Hi everybody,
I have just thought that it might help if I would provide a sample data
set. I have attached it as a txt file (tab separated).
Here is the modified code to fit this data set.
library(WRS)
file - read.table(file=file.choose(), header=T, sep=\t)
seq.num- c(4,5)#column
On 02/03/2010 08:43 PM, bluecuttlefish wrote:
I am using ggplot and posted this question at that helplist. It was
suggested that I try a more general R-help list for a possible solution to
this problem.
Within ggplot, I am using geom_area with red and blue and expect where they
overlap should
Hi everybody,
I am using the contour function to draw isobares. And i would like to to bold
contours for an interval of 500m and weak contour for an interval of 100m.
Can someone help me with this?
Thanks a lot
Karine
karine heerah wrote:
Hi everybody,
I am using the contour function to draw isobares. And i would like to to bold
contours for an interval of 500m and weak contour for an interval of 100m.
Can someone help me with this?
Thanks a lot
Karine
Hello,
I have to vectors high and low on a time scale as follows
time - 1:5
low - c(1, 2, 3, 4, 5)
high - c(5, 4, 3, 4, 4)
Now I'm searching for an elegant solution to know if a data point in time is
inside the boundaries but not only on the predefined time points but
continuous (e.g. time=2.5).
Update - The first problem is solved:
sqlQuery(channel, create table TEST3 (NR NUMBER, NAME VARCHAR2(55),TAG
DATE))
--
View this message in context:
http://n4.nabble.com/sqlUpdate-RODBC-tp1460867p1460899.html
Sent from the R help mailing list archive at Nabble.com.
Amy,
It would help if you told us what you did, and what warnings you received.
For instance, what happens with
mydata - read.table(triazines.txt, sep=\t, header=TRUE)
You probably also need to delete off those initial blank lines, or use
skip=3 in the previous statement (or however many there
On 02/03/2010 10:39 PM, Amy Hessen wrote:
Hi,
I receive too many warnings when I try to read the attached datasets. Could you
please tell me where the problem in them?
Hi Amy,
triazines-read.table(triazines.txt,header=TRUE)
pyrim-read.table(pyrim.txt,header=TRUE)
Both work fine for me.
Dear R helpers
After executing the R code, where the last few lines of the code are something
like given below.
## Part of my R code
n = 20
.
final_output = data.frame(Numbers = numbers, ABC = data1, XYZ = data2, PQR =
data3)
On Feb 3, 2010, at 6:25 AM, Martin Kappler wrote:
Hello,
I have to vectors high and low on a time scale as follows
time - 1:5
low - c(1, 2, 3, 4, 5)
high - c(5, 4, 3, 4, 4)
Now I'm searching for an elegant solution to know if a data point in
time is
inside the boundaries but not only on
Hello!!
Does there any packages can simulation data from Markov Random Field?
Thanks much
Ming Hung Chen
[[alternative HTML version deleted]]
On Feb 3, 2010, at 7:09 AM, Amelia Livington wrote:
Dear R helpers
After executing the R code, where the last few lines of the code are
something like given below.
## Part of my R code
n = 20
.
final_output = data.frame(Numbers = numbers, ABC = data1, XYZ =
data2,
On Feb 3, 2010, at 7:50 AM, 陳明宏 wrote:
Hello!!
Does there any packages can simulation data from Markov Random
Field?
Ming Hung Chen, meet the searching function. The answer appeared in
the 8 hits. You should search first, post second.
RSiteSearch(Markov Random Field)
--
Kay Cichini Kay.Cichini at uibk.ac.at writes:
hello,
i'd be happy if someone could provide help with the following problem:
i have a dist.matrix that comes from vegdist() function of the vegan
package. the used method = horn is not accepted as argument in
Hi:
You can also use the melt() function in the reshape package: using
a small snippet of your data as a test case,
library(reshape)
df
Scenario Numbers ABC XYZ PQR
1 Sc_1 1 22 18.0 6
2 Sc_2 2 24 16.5 11
melt(df, id = c('Scenario', 'Numbers'))
Scenario Numbers
For adding the 'names', put the data in a temporary first:
for(i in 1:length(seq.num)) {
k- seq.num[i]
name.num- names(file)[k]
temp - fac2list(file[,k], file[3])
names(temp) - levels(factor(file[[3]]))
assign(paste(names(file)[3], name.num, sep=_), temp)
}
hi,
I have my data time expressed in character string exple 5:20 (hour:min) and i
want to convert these in times recognized by R. I have tried the POSIXct
function:
balise07$Hour - as.POSXIct(balise07$Hour)
but it didn't work.
Do you know why? Do you know how i can convert my
Great, thanks a lot!
But I feel stupid... I didn't think about that easy solution. I wanted
to change the names after...
Anyway, it now works!
Regards, Ivan
Le 2/3/2010 14:22, jim holtman a écrit :
For adding the 'names', put the data in a temporary first:
for(i in 1:length(seq.num)) {
hi,
I have my data time expressed in character string exple 5:20 (hour:min) and
i want to convert these in times recognized by R. I have tried the POSIXct
function:
balise07$Hour - as.POSIXct(balise07$Hour)
but it didn't work.
Do you know why? Do you know how i can
thank you for the information.
would be great to have the possibility to check significance of clusters
coming from other distance-measures, too - but i'll be satisified with what
pvclust() can do.
yours,
kay
--
View this message in context:
Hi,
Adding two semi-transparent colours results in non-intuitive colour
mixing (a mystery for me anyway). Is it additive (light), substractive
(paint), or something else? Consider the following example, depending
on the order of the two layers the overlap region is either purple
or dark red. I
baptiste auguie baptiste.auguie at googlemail.com writes:
Adding two semi-transparent colours results in non-intuitive colour
mixing (a mystery for me anyway). Is it additive (light), substractive
(paint), or something else? Consider the following example, depending
on the order of the two
Dear list,
I cannot find an elegant solution to this problem. I have a factor f
containing several levels (5) and I wish to create a new factor of the
same length with fewer levels (2). This new factor should therefore
group together some levels of the original data. Ideally this grouping
would
Is there a way of repositioning the y label in scatterplot3d so that it is
parallel with the y axis?
Many thanks
Richard
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
Try this:
as.POSIXct(5:30, format=%H:%M)
[1] 2010-02-03 05:30:00 EST
On Wed, Feb 3, 2010 at 8:27 AM, karine heerah karine.hee...@hotmail.fr wrote:
hi,
I have my data time expressed in character string exple 5:20 (hour:min) and
i want to convert these in times recognized by R. I have
Hi
r-help-boun...@r-project.org napsal dne 03.02.2010 14:52:02:
Dear list,
I cannot find an elegant solution to this problem. I have a factor f
containing several levels (5) and I wish to create a new factor of the
same length with fewer levels (2). This new factor should therefore
group
On 03.02.2010 15:02, RICHARD PITMAN wrote:
Is there a way of repositioning the y label in scatterplot3d so that it is
parallel with the y axis?
Short answer: No.
Long answer: You could hack the code and add some angle argument to the
text() calls that label the y axis, but it is hard to
Thanks Uwe, much appreciated
Regards
Richard
--- On Wed, 3/2/10, Uwe Ligges lig...@statistik.tu-dortmund.de wrote:
From: Uwe Ligges lig...@statistik.tu-dortmund.de
Subject: Re: [R] Positioning the y label in scatterplot3d
To: RICHARD PITMAN richard.pitm...@btopenworld.com
Cc:
On 03/02/2010 8:50 AM, Ken Knoblauch wrote:
baptiste auguie baptiste.auguie at googlemail.com writes:
Adding two semi-transparent colours results in non-intuitive colour
mixing (a mystery for me anyway). Is it additive (light), substractive
(paint), or something else? Consider the following
As always the question seems silly after you've learned the answer!
Thanks a lot,
baptiste
On 3 February 2010 15:06, Petr PIKAL petr.pi...@precheza.cz wrote:
# order levels
f.t-factor(f, levels=disorder)
# change levels
levels(f.t) - new.lev
all.equal(f.t,f2)
[1] TRUE
Regards
Petr
Dear r-helpers,
I am working with plm package. I am trying to fit a fixed effects (or
a 'within') model of the form
y_it = a_i + b_i*t + e_it, i.e. a model with an individual-specific
intercept and an individual-
specific slope.
Does plm support this directly?
Thanks in advance!
Otto Kassi
On Tue, Feb 2, 2010 at 11:22 PM, David Winsemius dwinsem...@comcast.net wrote:
On Feb 3, 2010, at 12:20 AM, Peng Yu wrote:
On Tue, Feb 2, 2010 at 11:14 PM, David Winsemius dwinsem...@comcast.net
wrote:
On Feb 3, 2010, at 12:11 AM, Peng Yu wrote:
On Tue, Feb 2, 2010 at 11:04 PM, David
Try this (and see R News 4/1):
library(chron)
tt - times(paste(5:20, 00, sep = :)); tt
[1] 05:20:00
tt + 12/24 # add 12 hours
[1] 17:20:00
On Wed, Feb 3, 2010 at 8:27 AM, karine heerah karine.hee...@hotmail.fr wrote:
hi,
I have my data time expressed in character string exple 5:20
That makes perfect sense, thank you, except that I'm not sure where
the white comes from when I set the background to transparent?
png(testingOrder.png, bg = transparent)
plot.new()
par(bg=transparent)
rect(0.3, 0.5, 1, 1, col=rgb(1, 0, 0, alpha=0.5))
rect(0, 0.5, 0.7, 1, col=rgb(0, 0, 1,
On Feb 3, 2010, at 9:28 AM, Peng Yu wrote:
On Tue, Feb 2, 2010 at 11:22 PM, David Winsemius dwinsem...@comcast.net
wrote:
On Feb 3, 2010, at 12:20 AM, Peng Yu wrote:
On Tue, Feb 2, 2010 at 11:14 PM, David Winsemius dwinsem...@comcast.net
wrote:
On Feb 3, 2010, at 12:11 AM, Peng Yu
On 02.02.2010 22:52, Reena Bansal wrote:
Apologies in advance if this is not the right email to post this
question.
I successfully created my first R package myPackage1.
Now I want to create another R package myPackage2 which requires
functions from myPackage1.
However when I try R CMD check
That's strange because I was able to read the file into R just fine
--- On Tue, 2/2/10, David Winsemius dwinsem...@comcast.net wrote:
From: David Winsemius dwinsem...@comcast.net
Subject: Re: [R] how to read this data file into R?
To: Felipe Carrillo mazatlanmex...@yahoo.com
Cc:
Dear all,
does anybody ever encountered the problem with diagnostic plots?
x-rnorm(100)
y-rnorm(100)
plot(lm(x~y))
It gives the following message Waiting to confirm page change... and
nothing happens.
Thanks a lot!
[[alternative HTML version deleted]]
On Wed, Feb 3, 2010 at 2:12 AM, Emmanuel Charpentier
charp...@bacbuc.dyndns.org wrote:
Le mercredi 03 février 2010 à 00:01 -0500, David Winsemius a écrit :
On Feb 2, 2010, at 11:38 PM, Peng Yu wrote:
?contrast in the contrast package gives me the following description.
However, I have no
Dear Matt,
yes you have. 'plm' doesn't support multi-column time indices, but it should
happily make do with any *single* time index whose order can be recognized by
R, such as, e.g., a lexicographic ordering.
So you will probably want to paste your indices along these lines:
year -
Thank you. I was already convinced of the value of MASS (drop a hat
and I'll tell you my other list of musts for a stats library) but I
didn't know about the Exegeses.
On Wed, Feb 3, 2010 at 3:12 AM, Emmanuel Charpentier
charp...@bacbuc.dyndns.org wrote:
Le mercredi 03 février 2010 à 00:01
Concise and perfect answer. Thanks!
I'm surprised I never came across this issue before (4 years playing with R).
Jose
Quoting Erik Iverson er...@ccbr.umn.edu:
FAQ 7.31
j.delashe...@ed.ac.uk wrote:
It is a strange behaviour in that I did not expect it... but I am
sure there is a
On 03/02/2010 9:38 AM, baptiste auguie wrote:
That makes perfect sense, thank you, except that I'm not sure where
the white comes from when I set the background to transparent?
You'd have to check the png device documentation or source code to find
out what it does when you mix half red
Yes, R_LIBS have been set to include the library where myPackage1 is
installed.
When I start R and do library(myPackage1) it loads just fine so it is
definitely installed.
But somehow it is not able to do the same when I do R CMD check
myPackage2.
-Original Message-
From: Uwe Ligges
Hi everyone,
is there a way/package in R that would allow me to select a group of
points from a scatterplot by drawing a circle around them or some such?
I can use 'identify' to pick individual points, but that gets tedious
if one has more than 10-20 spots.
I can easily select spots
I'm trying to compile R 2.10.1 on AIX, and getting the following errors when it
is trying to build the tools package:
Error in read.dcf(file = descfile) :
Line starting 'Package: tools ...' is malformed!
Calls: makeLazyLoading ... code2LazyLoadDB - loadNamespace -
parseNamespaceFile -
On Wed, Feb 3, 2010 at 8:41 AM, David Winsemius dwinsem...@comcast.net wrote:
On Feb 3, 2010, at 9:28 AM, Peng Yu wrote:
On Tue, Feb 2, 2010 at 11:22 PM, David Winsemius dwinsem...@comcast.net
wrote:
On Feb 3, 2010, at 12:20 AM, Peng Yu wrote:
On Tue, Feb 2, 2010 at 11:14 PM, David
Hi everyone,
I have a matrix with many Na's. Some rows contain some Na's and some others
are entirely composed of Na's. I want to delete the rows that are entirely
composed of Na's but not the other ones so I can't use a simple removeNA.
Has any one an idea?
-
Anna Lippel
--
View this
Did you actually look at what you got? I got 129 lines:
str(x)
'data.frame': 129 obs. of 9 variables:
$ A: Factor w/ 28 levels [,..: 4 5 6 7 8 9 10 11 12
13 ...
$ B: Factor w/ 129 levels ] 0.7982354 -5.195960 2.0059635
2.00596350 2.0059635 2.005964 2.0059635,..: 119 123
On 2/3/10, j.delashe...@ed.ac.uk j.delashe...@ed.ac.uk wrote:
Many graph plotting programs allow you to pick a group of points directly
from the graph by circling them with teh mouse cursor. Is that soemthing
that I can do in R?
I am not sure that they will do exactly what you need, but check
hi,
i have a longitude vector (x) a latitude vector (y) and a matrix of bathymetry
(z) with the dimensions (x,y). I have already succeeded in plotting it with the
image.plot (package 'field') and the contour functions.
But now, I want to make a grid in order to extract easily the bathymetry
On Wed, 3 Feb 2010, baptiste auguie wrote:
That makes perfect sense, thank you, except that I'm not sure where
the white comes from when I set the background to transparent?
png(testingOrder.png, bg = transparent)
plot.new()
par(bg=transparent)
rect(0.3, 0.5, 1, 1, col=rgb(1, 0, 0, alpha=0.5))
On Wed, Feb 3, 2010 at 10:01 AM, Peng Yu pengyu...@gmail.com wrote:
Some examples in the help page are too long to be copied from screen.
Could somebody let me know some easy way on how to extract the example
to a file so that I can play with them?
I forget to mention. I use a terminal version
hello,
I have a problem to open an hdf file. i have downloaded the package 'hdf5' as
it was advised on R seek. But when i try to load the file, the R console sends
me an eror message:
setwd(C:/Documents and Settings/Karine/Bureau/data/)
#install.packages('hdf5')
library(hdf5)
sea_ice -
also do:
plot(lm(x~y), ask=FALSE)
On Wed, Feb 3, 2010 at 10:21 AM, Trafim Vanishek rdapam...@gmail.com wrote:
Dear all,
does anybody ever encountered the problem with diagnostic plots?
x-rnorm(100)
y-rnorm(100)
plot(lm(x~y))
It gives the following message Waiting to confirm page
Hit 'enter'. There are several plots and they are being presented with
par(ask=TRUE)
On Wed, Feb 3, 2010 at 10:21 AM, Trafim Vanishek rdapam...@gmail.com wrote:
Dear all,
does anybody ever encountered the problem with diagnostic plots?
x-rnorm(100)
y-rnorm(100)
plot(lm(x~y))
It gives
Hi,
I have two series of data set (it's measurment of growth but under two
different conditions).
To model these data I use the same function which is :
formula - y ~ Asym_inf + Asym_sup * ( (1 / (1 + (n1 * (exp( (tmid1-x)
/ scal1) )^(1/n1) ) ) ) - (1 / (1 + (n2 * (exp( (tmid2-x) / scal2)
On MacOSX I can tell Preview or Photoshop not to use a white
background yet the mixing still shows a difference (with either pdf or
png for that matter). So I guess it's something to do with mixing
colours with the transparent channel as you say. I'll try to find the
reason in the source code
Peng Yu wrote:
On Wed, Feb 3, 2010 at 8:41 AM, David Winsemius dwinsem...@comcast.net wrote:
On Feb 3, 2010, at 9:28 AM, Peng Yu wrote:
On Tue, Feb 2, 2010 at 11:22 PM, David Winsemius dwinsem...@comcast.net
wrote:
On Feb 3, 2010, at 12:20 AM, Peng Yu wrote:
On Tue, Feb 2, 2010 at 11:14
Dear all,
I want to ask if there is mix distribution fit toolbox, which is
friendly to use in R. Which one should I choose? Thanks.
Best,
Jiang
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the
Hello,
You can run a row-wise all( is.na( ) ).
You will then detect rows consisting of NAs only.
Best regards,
Carlos J. Gil Bellosta
http://www.datanalytics.com
anna wrote:
Hi everyone,
I have a matrix with many Na's. Some rows contain some Na's and some others
are entirely composed of
Yes, this is clearly the key to working with subsets. Thanks
-Original Message-
From: Petr PIKAL [mailto:petr.pi...@precheza.cz]
Sent: Wednesday, February 03, 2010 4:16 AM
To: Steve Jaffe
Cc: r-help@r-project.org
Subject: Re: [R] tapply for function taking of 1 argument?
Hi
Some examples in the help page are too long to be copied from screen.
Could somebody let me know some easy way on how to extract the example
to a file so that I can play with them?
__
R-help@r-project.org mailing list
also,
library(plyr)
ddply(d,~grp,function(df) weighted.mean(df$x,df$w))
--
View this message in context:
http://n4.nabble.com/tapply-for-function-taking-of-1-argument-tp1460392p1461428.html
Sent from the R help mailing list archive at Nabble.com.
Really? Where exactly is the loophole in 'If the question relates to a
contributed package ... try contacting the package maintainer first.'?
How about the general R philosophy that if you dare to mistakenly
submit a bug report that turns out to be a feature, not a bug, you
shall be well and
Hi Peng,
May be this is not the best way to do what you want, but it works for my
proposes:
sink('example_lm.txt')
example(lm)
Hit Return to see next plot:
sink()
Then, I just look at the file example_lm.txt on my working directory.
HTH,
Jorge
On Wed, Feb 3, 2010 at 11:01 AM, Peng Yu
Hi
r-help-boun...@r-project.org napsal dne 03.02.2010 16:53:20:
Hi everyone,
I have a matrix with many Na's. Some rows contain some Na's and some
others
are entirely composed of Na's. I want to delete the rows that are
entirely
composed of Na's but not the other ones so I can't use a
hi,
I am new to R and i have managed to create 2 3d scatterplots with R and
Iwaswondering if there is a way to connect them.
I was also wondering how i can add arrows to the plot similar to the 2d
comment arrows()?
--
View this message in context:
On Wed, Feb 3, 2010 at 11:06 AM, David Freedman 3.14da...@gmail.com wrote:
also,
library(plyr)
ddply(d,~grp,function(df) weighted.mean(df$x,df$w))
Or
ddply(d, grp, summarise, mean = weighted.mean(x, w))
which is convenient if you want more than one output
Hadley
--
http://had.co.nz/
Hi,
See the files at
http://bulldog.duhs.duke.edu/~faheem/R/
Usage is
$ Rscript memgraph.R meminfo.csv
Output is meminfo.pdf. As you can see, one of the lines (blue) runs off
the top of the graph. Can anyone suggest a way to avoid this happening?
Please CC me on any reply. Thanks in
HI Amy,
On Wed, Feb 3, 2010 at 1:56 AM, Amy Hessen amy_4_5...@hotmail.com wrote:
Hi Steve,
Could you please help me in this point?:
I use SVM of R and I’m trying some datasets from UCI but when I compare the
results of my program( that does not do anything more than calling SVM) with
the
I tried to bypass R CMD check myPackage2 and did the following
R CMD build myPackage2
R CMD INSTALL -l ~/Rlibs myPackage2
and this works, I can load myPackage2 into my R session. Wondering why R
CMD check failed and is it not necessary for R CMD check to work before
I can build the package?
Hello.
I am getting an error thrown from tkrplot. It is
X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 12
could not be loaded
sessionInfo()
R version 2.10.1 Patched (2009-12-29 r50852)
i686-pc-linux-gnu
locale:
[1] LC_CTYPE=en_US LC_NUMERIC=C
On Feb 3, 2010, at 12:53 PM, Faheem Mitha wrote:
Hi,
See the files at
http://bulldog.duhs.duke.edu/~faheem/R/
Usage is
$ Rscript memgraph.R meminfo.csv
Output is meminfo.pdf. As you can see, one of the lines (blue) runs
off the top of the graph. Can anyone suggest a way to avoid this
On Feb 3, 2010, at 10:53 AM, Peng Yu wrote:
On Wed, Feb 3, 2010 at 8:41 AM, David Winsemius dwinsem...@comcast.net
wrote:
On Feb 3, 2010, at 9:28 AM, Peng Yu wrote:
On Tue, Feb 2, 2010 at 11:22 PM, David Winsemius dwinsem...@comcast.net
wrote:
On Feb 3, 2010, at 12:20 AM, Peng Yu
On 03.02.2010 18:38, mb622 wrote:
hi,
I am new to R and i have managed to create 2 3d scatterplots with R and
Iwaswondering if there is a way to connect them.
In most cases it is advisable to just add points as shown in the
examples of ?scatterplot3d
I was also wondering how i can add
Also try this:
library(sqldf)
DF - data.frame(data = 1:10, groups = rep(1:2, 5), weights = 1)
sqldf(select groups, sum(data * weights)/sum(weights) 'wtd mean' from DF
group by groups)
groups wtd mean
1 15
2 26
On Tue, Feb 2, 2010 at 5:06 PM, sjaffe
Suppose that I have the following list of lists of frames 'root'
(let's call it a 'tree' of frames). I want to flatten it to be a list
of frames. However, if I unlist(root), it will flatten the frames as
well. Is there a simply way to flatten the tree to certain depth?
Thanks, Iâm actually more comfortable with vector-ish syntax than sql-ish but
this is a good thing to keep in mind⦠I wonder how it compares in performance
versus âbyâ or âtapplyâ
From: Gabor Grothendieck [via R]
[mailto:ml-node+1461531-1948782...@n4.nabble.com]
Sent: Wednesday,
Hi,
On Wed, Feb 3, 2010 at 1:19 PM, Peng Yu pengyu...@gmail.com wrote:
Suppose that I have the following list of lists of frames 'root'
(let's call it a 'tree' of frames). I want to flatten it to be a list
of frames. However, if I unlist(root), it will flatten the frames as
well. Is there a
My editorial opinion only:
It will of necessity be slower (because there's more machinery underlying
the sqldf package); but I doubt whether it would be noticeably slower than
the native R solution in most practical situations. The same would be true
for plyR's implementation (it relies on the
Thanks for this complementary information. My head itches slightly
when reading about these virtual layers with unidirectional absorption
and reflection properties but I guess that's imputable to my personal
background as a physicist.
I still have a few questions,
- is this behavior documented?
Hello,
I have a problem with fPortfolio recently. I am using below code:
Data = read.table(hf.txt,header = TRUE,sep = )
Data = Data[, c(CA, SS, EM, EMN, ED, DS, MS, RA, FIA,
GM, LSE, MF, SP500, NASDAQ, JPM)]
d = as.timeSeries(Data)
class(d)
Spec = portfolioSpec()
setNFrontierPoints(Spec) =
1 - 100 of 186 matches
Mail list logo