wow =P
Thank you guys. I will use the hb2 , because it is the fastest one.
Eddie
> wow! :)
>
> vQ
>
> Henrik Bengtsson wrote:
> > library(gsubfn)
> > library(gtools)
> > library(rbenchmark)
> >
> > n <- 1
> > df <- data.frame(
> > a = rnorm(n),
> > b = rnorm(n),
> > c = rnorm(n),
> >
Maybe you can make a package for something like this. (IP sort,etc). Like in
Perl, there is a module called Sort::Key::IPv4
I think, not only me has the same problem for sorting e.g IP?
Eddie
> Not really, just the old saying that any piece of code can be made
> twice as fast (which often holds
<- strsplit(as.character(df$ip), split=".", fixed=TRUE)
> >> ip <- unlist(ip, use.names=FALSE)
> >> ip <- as.integer(ip)
> >> dim(ip) <- c(4, nrow(df))
> >> ip <- 256^3*ip[1,] + 256^2*ip[2,] + 256*ip[3,] + ip[4,]
> >> o <- order(ip)
&g
; > >> hb = {
> > >> ip <- strsplit(as.character(df$ip), split=".", fixed=TRUE)
> > >> ip <- unlist(ip, use.names=FALSE)
> > >> ip <- as.integer(ip)
> > >> dim(ip) <- c(4, nrow(df))
> > >> ip <- 256^3*ip[1,] +
copping my TinnR
script. It contains not only the R script but also the errors returned in
the R console. I apologize that the script is still not really reproducible
but I just do not know how to create a sample data frame for it. Thanks
again for your help. Edwin.
##Load required packages
akin to the SPSS method, and thus produces nearly-identical results. You may
still see very, very minor differences in chi square goodness of fit, and 95%
CI of the doses/concentrations, etc. but this is due to differences in rounding
under the hood of the software.
Hope this helps!
Edwin R
nd "ZapfDingbats" is substituted by "AdobePiStd".
Any help is greatly appreciated.
Edwin
<http://r.789695.n4.nabble.com/file/n4709707/Capture.png>
--
View this message in context:
http://r.789695.n4.nabble.com/Embed-font
function that can handle exogenous variables in
estimating GARCH?
Thank you a lot.
Edwin
--
View this message in context:
http://n4.nabble.com/another-GARCH-problem-tp859307p1819640.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r
<- data.frame(year=1875:1972, level=LakeHuron)
ggplot(huron, aes(year)) +
geom_line(aes(y=level+5, colour="above")) +
geom_line(aes(y=level-5, colour="below")) +
scale_colour_manual("Direction", c("above"="black", "below"="black&
Hello - Thank you so much for the help. It works perfectly. I guess that as
many have pointed out, ggplot is a great package but there is a lack of
documentation and examples.
Edwin Sun
baptiste auguie-5 wrote:
>
> Hi,
>
> I don't understand why you used scale_manual_colour
Hi,
Is there any way to sort a tabel with a colum with IP-address?
table:
id rank color status ip
138 29746 yellow no 162.131.58.26
138 29746 red yes 162.131.58.16
138 29746 blue yes 162.131.58.10
138 29746 red no 162.131.58.17
138 29746 yellow no 162.131.58.14
138 29746 red no 162.131.58.
Hi Allan,
Thank you for your reply. I have more than 4 Rows. I don't believe than
it's a good solution, if I need to write down all of the values. I have
about 200 Rows. Do you have any other solution?. Is there any package
that I can use?
Edwin
> Date: Fri, 29 May 2009 0
Hi Peter,
This works as I expected. Thank you very much.
Eddie
> Date: Fri, 29 May 2009 11:15:37 +0200
> From: p.dalga...@biostat.ku.dk
> To: all...@cybaea.com
> CC: r-help@r-project.org
> Subject: Re: [R] IP-Address
>
> Allan Engelhardt wrote:
> > IP addresses are very (very!) difficult
Hi VQ,
Thank you. It works like charm. But I think Peter's code is faster. What is the
difference?
Eddie
> Date: Fri, 29 May 2009 11:44:15 +0200
> From: waclaw.marcin.kusnierc...@idi.ntnu.no
> To: p.dalga...@biostat.ku.dk
> CC: r-help@r-project.org
> Subject: Re: [R] IP-Address
>
> Peter
Thanks, that helped! I didn't realize there was another version of the book.
On Wed, Apr 1, 2009 at 2:51 PM, Tobias Verbeke <
tobias.verb...@openanalytics.be> wrote:
> Hi,
>
> I'm trying to follow the ggplot introduction here:
>> http://had.co.nz/ggplot/ggplot-introduction.pdf
>>
>> I've install
notice there is an index link at the bottom of the page.
By the way, I did not make any change on my browser.
Is this a change for this version? Thank you for your help.
Edwin Sun
--
View this message in context:
http://n4.nabble.com/navigation-panel-with-help-tp1395663p1395663.html
Sent from the R
I have the same problem and I wonder if there is any answer from the
community. Thanks.
--
View this message in context:
http://r.789695.n4.nabble.com/ggplot2-How-to-change-font-of-labels-in-geom-text-tp991579p2286671.html
Sent from the R help mailing list archive at Nabble.com.
___
nux
---
Thanks for your help,
Edwin
--
Dr. Edwin Groot, postdoctoral associate
AG Laux
Institut fuer Biologie III
Schaenzlestr. 1
79104 Freiburg, Deutschland
+49 761-2032945
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-h
,
multiprocessing and cluster processing.
Edwin
On Tue, 14 Sep 2010 10:15:42 -0400
"Johnson, Cedrick W." wrote:
> ?multicore perhaps
>
> On 09/14/2010 10:01 AM, Edwin Groot wrote:
> > Hello all,
> > I upgraded my R workstation, and to my dismay, only one core
> appea
of the
packages I have used so far. The HPC package guides lacked something in
the practical aspects of their usage.
lapply <- mclapply at the beginning of my script? Well, I never would
have thought of such a thing. Thanks!
I might be back on the list when I run out of physical RAM ;-)
Ed
Tal:
Invite everyone on R-Help, why not?
Please check your contact e-mail address!
Edwin
--
On Mon, 20 Sep 2010 02:14:17 -0700 (PDT)
Tal Galili via LinkedIn wrote:
> LinkedIn
> Tal Galili requested to add you as a connection on
>
matrix() function returns more than one element per call, that is
the source of your error message. It means you tried to store something
in s[] that goes beyond its dimensions.
Edwin
> __
> R-help@r-project.org mailing list
> https://stat.ethz.ch/
1] -0.444997
> pnorm(pdf.xb)
[1] 0.628605
Many thanks,
Edwin
--
View this message in context:
http://r.789695.n4.nabble.com/dnorm-and-qnorm-tp3040427p3040427.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mai
Thank you all for the great help. I think the optimize function and approach
solves my problem well.
Edwin Sun
--
View this message in context:
http://r.789695.n4.nabble.com/dnorm-and-qnorm-tp3040427p3041962.html
Sent from the R help mailing list archive at Nabble.com
Hello all,
I wrote a function with many arguments. Then I need to call it many times
with changes on some arguments only. Is there any way to write a function or
have a method to "update" it, like the relationship between lm() and
update()?
Many thanks,
Edwin Sun
T
Thank you all the reply. The use of sys.call() as suggested by Ducan works
pretty well. This is good as the outputs from my function are large. The use
of apply family functions as suggested by Erik is good for small amounts of
outputs.
Edwin Sun
--
View this message in context:
http://r
e include in your mail an excerpt of the relevant code
you used that read the data in and produced the error.
>From looking at your text file, I would delete the white space before
None, save the file, and use the following function to read your data
into a data.frame:
read.delim("smoked
;J','A','S','O','N','D'))
>
> I could omit default ticks but now how to control ticks.
>
Dear Yogesh,
I spray my clothing with "No-Bite", and that controls ticks quite well.
:-)
Edwin
> plot(file$time, file$ch4*1000, ylim=c(
ots (i.e. curve, points, bar, step) you
can arrange your data as columns in a matrix and use matplot().
matplot(vectorOfxValues, FooBarAsMatrix, lwd=2, lty=3, col=c("red",
"blue"))
legend(0.6,0.6,c('Default','Probabilistic'), col=c('red','b
Dear All,
I have a question of how to export S4 class specification to
clusters/workers in parallel computing. The package I used is snowfall. The
problem is reproducible as follows. Any hint is greatly appreciated.
Edwin Sun
=== begin ===
library(snowfall)
sfInit(parallel = TRUE, cpus
Hello,
I've been using: tmp.df = read.xls(filename, stringsAsFactors = FALSE) to
read in my files. Even though I get the "There were 50 or more warnings" thing,
for the most part most of the data is read in correctly. However, there are a
few select rows where there are values but they are
Thank you,
Edwin Sun
--
View this message in context:
http://r.789695.n4.nabble.com/Piecewise-distribution-function-estimation-with-Generalized-Pareto-for-tail-tp3649961p3649961.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-p
Hello all,
I am manipulating a large database with 70,000 records. "strptime" generates
a date variable but R treats some of the values as NA. I attach a simple
example below.
I have spent hours on this problem. Any hint would be greatly appreciated.
Many thanks,
Edwin Sun
# =
David - Thanks very much. That is a great hint. I believe that is the
solution.
Edwin Sun
--
View this message in context:
http://r.789695.n4.nabble.com/strange-problem-with-strptime-and-date-variable-tp3677178p3677205.html
Sent from the R help mailing list archive at Nabble.com
Hi all,
Mind my ignorance and complete newbiness, but I am very new to R and am
currently learning it through my stats course at university.
My question is regarding adding titles to plots. I'll post the code below,
and then explain my issue:
> hist(gender$HeartRate)
> title(Histogram: HeartRate
Basically, the x values correspond to the break points in the histogram.
Next I used the command
> points(x,y,type="l")
But for some reason, the line plot is shifted to the right and doesn't line
up with the histogram.
Thanks for the help!
Edwin Lei
Thanks for the quick response. But the points I'm trying to superimpose
isn't exactly the density of the data. Is there any other way to do it?
From: milton ruser [mailto:[EMAIL PROTECTED]
Sent: July 5, 2008 6:56 AM
To: Edwin Lei
Cc: r-help@r-project.org
Subject: Re: [R] trying to s
; -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: July 5, 2008 8:43 PM
> To: Edwin Lei
> Subject: Re: [R] trying to superimpose a line plot onto a histogram
>
>
> hi: you can do the same thing as below but just replace density(x) with
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: July 5, 2008 10:22 PM
> To: Edwin Lei
> Subject: RE: [R] trying to superimpose a line plot onto a histogram
>
> i'm no R expert but if you send EXACTLY what you want to do to the
>
0x47780439 0x 0x 0
---
R-Table:
6565 1199047737 0 0 0
Kind Regards,
Edwin
__
R-help@r-project.org mailing list
https
0x47780439 0x 0x 0
R-Table:
6565 1199047737 0 0 0
Kind Regards,
Edwin
__
R-help@r-project.org mailing list
https
Dear John,
Thank you.
Is there any possibility to get original stored number printed.
Because i have another coloum like:
Protocol
"TCP"
This is gonna cause probleme (as you notice before).
I dont really understand what you mean with a list. i am new with R.
Thanks,
Edwin
Dear John,
Am Montag, 7. April 2008 01:43:07 schrieb John Fox:
> Dear Edwin,
>
> On Mon, 7 Apr 2008 01:14:35 +0100
>
> Edwin Sendjaja <[EMAIL PROTECTED]> wrote:
> > Dear John,
> >
> > Thank you.
> >
> > Is there any possibility to get ori
Hello,
Is it possible to get the legend box outside the graphic?
Kind regards,
Edwin
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and
Hello,
Is it possible to get the legend box outside the graphic?
Kind regards,
Edwin
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and
Hello Gred,
I try to read R-Reference, but I cant understand it.
What does par (xpd=NA)? and par('usr')) mean? Thank you.
Kind regards,
Edwin
Am Freitag, 11. April 2008 19:19:24 schrieben Sie:
> Yes, here is one way:
> > plot(1:10, pch=1:2)
> > par(xpd=
ion. because it
replaces only 1 values.
Kind Regards,
Edwin Sendjaja
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented
Does anyone know how to solve this. I am so desperate.
I'd be terribly grateful for any help.
Am Samstag, 12. April 2008 05:19:16 schrieb Edwin Sendjaja:
> Hello,
>
> I have got 2 Tables from different files:
>
> Table 1 (lets say file: Salesman.data)
>
&g
e.data")
data<-merge(table1, table2, by.x="User_ID", by.y="User_ID")
result<-data$Name (for example)
Thank you.
Kind Regards,
Edwin Sendjaja
Am Samstag, 12. April 2008 19:40:03 schrieb Edwin Sendjaja:
> Does anyone know how to solve this. I am so despe
nd weekly data set.
For example: year_week)
data<-merge(table1, table2, by.x="year_week", by.y="year_week")
data
I hope it helps,
Edwin Sendjaja
Am Montag, 14. April 2008 11:09:12 schrieb Øystein Myrland:
> Dear R-help group,
>
> I have a dataset with d
rn the box
horisontally. I might wrong with this.
Thank a lot in advance
Edwin
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide
Hi Uwe,
Thanks for your answer.
What is the different between rgl and scatterplot3d? I dont need a graphik
like vulcano. I just need 3D-"dot"-plot.
Am Donnerstag, 17. April 2008 09:03:17 schrieb Uwe Ligges:
> Edwin Sendjaja wrote:
> > Hello,
> >
> > I've g
, heise.de,etc
If no, can you tell me little how to modify the code to get this. Thank you.
another question:
How can I change the width line of the axis (x,y,z). The default line is for
me too thin.
Thank you in advance,
Edwin Sendjaja
Am Donnerstag, 17. April 2008 14:43:39 schrieb Uwe Ligges
sTime: 1208514343.81209? It was 1208514343.812086. It is 1 digit
less. how can I avoid this?
I hope someone could answer this.
Thank you in advance,
Edwin
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
?
Thank you in advance,
Edwin
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Hi Simon,
Thank for your reply.
I have read ?Memory but I dont understand how to use. I am not sure if that
can solve my problem. Can you tell me more detail?
Thanks,
Edwin
> type
>
> ?memory
>
> into R and that will explain what to do...
>
> S
> - Original Mess
I think he meant:
?Memory
edwin
> When I do it on a Mac installation I get:
>
> Help for the topic "memory" was not found.
>
> Is that a Linux-specific function? Or perhaps you meant to type:
>
> ?Memory
>
> Which does produce useful information.
>
&
data set?
Edwin
> Only a couple of weeks ago I had to deal with this.
>
> adjust the memory limit as follows, although you might not want 4000, that
> is quite high
>
> memory.limit(size = 4000)
>
> Simon.
>
> ----- Original Message -
> From: "E
1 TB?mmm..
Edwin
> Hi,
>
> I am not very knowledgeable about this kind of stuff but my guess is that
> if you have a fairly slow computer and massive data sets there isnt alot
> you can do except get a better computer, buy more RAM or use something like
> SAS instead?
>
>
Hi Ben,
Using colClasses doensnt improve the performace much.
With the data, I will calculate the mean, min, max, and standard deviance.
I have also failed to import the data in a Mysql Database. I dont have much
knowledge in Mysql.
Edwin
> Edwin Sendjaja web.de> writes:
> &
Bellow, you can see the R data.
But this stucks even in first line (read.table..).
I dont know how to calculate this and write the result into a new table.
Edwin
data <- read.table("test.data")
data <- subset(data, (data$Zusatz!="60") &
Hello, My name is edwin, I come from Indonesia, Can you help me,
I want package which is contain lqs and lmsreg.
I need fast...
Can you help me to create
bootstrap regression
??
Thx
Edwin
[[alternative HTML version deleted]]
__
R-help@r
Hello, I'm EDWIN, I create (make) GUI, with call many function
but I don't know why when I call function I can't. if without function, Yes
I can..
can you help me ? can you make this, become true with full code?
Can you help me to
create data.entry with interface
LM - BETA1.
Hello, My name is Edwin, I come from INDONESIA
I have problem
I creating function then I have many calculation
like this
xx<-function(){
a<-sd()
b<-beta1.hat
c<-beta2.hat
data.entry(a,b,c)
}
then
i have function too, almost same
yy<-function(){
d<-sd()
e<-b
Hello, I have problem
I have a, and b in regression
then I can't plot x,y with (and) a, b lines
can you help me ?
thx
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE
My code below makes a data frame with columns for
date, time, and price. Time on each date runs from 1
to 4.
I'd like to add a new column "ts$closingprice", which
would have the closing price for that date. To find
the closing price, I'd like to take the price in the
row having the greatest time
Hi,
Can someone help me how to create a table for Min, Max, Mean, Deviance.
I have input data like this:
Person Age Child
1 517 2
2 517 0
3 517 1
4 5202
5 520 3
6 710 1
7 721
Hi,
Thank you Stefan,
I think, this package will do what I want.
Edwin
> Edwin Sendjaja schrieb:
> > Hi,
> >
> > Can someone help me how to create a table for Min, Max, Mean, Deviance.
>
> Try the summaryBy function of the doBy package. The package has an
> exce
Hi,
I have a table for an 1 week exam result for many classes in school, like
this:
Day Class_ID TestResult
1 Monday1 Paper Passed
2 Tuesday1 Oral Passed
3 Friday 1 Paper Passed
4 Monday3
xAxisTicks=xAxisTicks,
yAxisTicks=yAxisTicks,
type="l",
colorMode=plotColorMode,
hideLegend=FALSE,
legendPos=c(1,1))
dev.off()
Thank you
Edwin
[[alternative HTML version deleted]]
___
ation ... OK
* cleaning src
* installing the package to process help pages
---
* installing *source* package ‘fluEvidenceSynthesis’ ...
** libs
g++ -I/usr/share/R/include -DNDEBUG
-I"/home/edwin/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include"
-I"/ho
Thank you! I was missing the SystemRequirements. I guess it could be useful
to add this to the example given here:
http://gallery.rcpp.org/articles/simple-lambda-func-c++11/
Cheers, Edwin
On Wed, 24 Jun 2015 at 17:50 Charles Determan wrote:
> Hi Edwin,
>
> If you look at the build o
please ...
Just for additional information: I'm running my R script on my 32-bit machine:
Ubuntu 9.10, hardware: AMD Athlon Dual Core Processor 5200B, memory: 1.7GB.
Many thanks in advance.
Kind Regards,
--
Ir. Edwin H. Sutanudjaja
Dept. of Physical Geography, Faculty of Geosci
res",multi=1,
Rscale=F,scaling="1")
> plot(A)
Warning message:In ordiplot(x, choices = choices, type = type, display =
display, :Species scores not available“
Can anyone guide me to get the trait
stance
matrix as input. Problems with NA's?Message-ID:
<1322150277396-4104406.p...@n4.nabble.com>Content-Type:
Try the daisy() function from the package "cluster", it seems to be able to
handle NAs and non-dummy coded character variables metaMDS(daisy(df,
metric="
Dear R users,
I am new to R and wanted to apply competing risk methods in my research
work. I used the R code given by Zhang et al in his paper 'Nomogram for
survival analysis in the presence of competing risks published in Ann Trans Med
2017:5(20):403.
I am struggling with getting calibra
t", u=1, B=120, pr=FALSE, force=NULL,
estimates=TRUE,
bw=FALSE, aics=0, what="observed-predicted", tol=1e-12,
maxdim=5) plot(cal, subtitles=FALSE)
plot(cal)
cal.km <- calibrate(mod, u=1, cmethod='KM', m=10, B=10, pr=FALSE)
plot(cal.km)
cal.hare = calibrate(mo
Dear All,
I would like to use R function 'selectFGR' of fine gray model in competing
risks model. I used the 'Melanoma' data in 'riskRegression' package. Some of
the variables are factor. I get solution for full model but not in variable
selection model. Any advice how to use factor vari
eference which has R code?
Thank you very much for all your inputs and suggestions
Regards
Amalraj raja
-Original Message-
From: Ronald Geskus [mailto:statist...@inter.nl.net]
Sent: 21 March 2018 04:01
To: r-help@r-project.org
Cc: Raja, Dr. Edwin Amalraj
Subject: Re: [R] selectFGR - v
Hi ,
library(foreign)
write.dta(data1, "data1.dta")
should work. The file will be saved in the working directory.
Use
getwd()
to know the working directory.
Best wishes
Amalraj Raja
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of rosario
scandurra
Se
Dear Thomas,
I want to use evaluate effect of Age using restricted cubic form in the
FGR function as
Fgr.crr <- FGR(Hist(time, event) ~ rcs(Age_years), data=dat)
It provides error. " Error in parse(text = termtext, keep.source = FALSE):
1: response ~ rcs(Age_years
Do I need to c
Hi.
I am having trouble with something that should be simple. I am unable
to get sprintf using escape sequences:
> sprintf("a\nb")
[1] "a\nb"
> sprintf("a\"bc\"d")
[1] "a\"bc\"d"
But it seems to need them any way:
> sprintf("a\"bc"d")
Error: unexpected symbol in "sprintf("a\"bc"d"
Any suggest
ll show the escape
> characters, but if you use "cat", or output to a file, you will see
> that the result is correct:
>
>
> > cat( sprintf("a\nb"))
> a
> b>
> > cat(sprintf("a\"bc\"d"))
> a"bc"d>
> >
>
Good morning, How can I resolved error message New_X with convergence 1.Thanks
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read t
84 matches
Mail list logo