Re: [R] IP-Address

2009-06-01 Thread edwin
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), > >

Re: [R] IP-Address

2009-06-01 Thread edwin
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

Re: [R] IP-Address

2009-06-04 Thread edwin
<- 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

Re: [R] IP-Address

2009-06-17 Thread edwin
; > >> 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,] +

Re: [R] I cannot get species scores to plot with site scores in MDS when I use a distance matrix as input. Problems with NA's?

2011-12-01 Thread Edwin
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

Re: [R] Differences between SPSS and R on probit analysis

2017-06-22 Thread Edwin Burgess
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

[R] Embed fonts in an R graph

2015-07-10 Thread Edwin Sun
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

Re: [R] GARCH estimation with exogenous variables in the mean equation

2010-04-09 Thread Edwin Sun
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

[R] ggplot legend for multiple time series

2009-12-01 Thread Edwin Sun
<- 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&

Re: [R] ggplot legend for multiple time series

2009-12-01 Thread Edwin Sun
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

[R] IP-Address

2009-05-28 Thread edwin Sendjaja
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.

Re: [R] IP-Address

2009-05-30 Thread edwin Sendjaja
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

Re: [R] IP-Address

2009-05-30 Thread edwin Sendjaja
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

Re: [R] IP-Address

2009-05-30 Thread edwin Sendjaja
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

Re: [R] help with ggplot2 -- ggpoint function missing?

2009-04-02 Thread Edwin Chen
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

[R] navigation panel with help

2010-01-28 Thread Edwin Sun
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

Re: [R] ggplot2: How to change font of labels in geom_text

2010-07-12 Thread Edwin Sun
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. ___

[R] Multiple CPU HowTo in Linux?

2010-09-14 Thread Edwin Groot
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

Re: [R] Multiple CPU HowTo in Linux?

2010-09-14 Thread Edwin Groot
, 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

Re: [R] Multiple CPU HowTo in Linux?

2010-09-15 Thread Edwin Groot
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

Re: [R] Tal Galili wants to stay in touch on LinkedIn

2010-09-20 Thread Edwin Groot
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 >

Re: [R] store matrix in an arrary

2010-09-27 Thread Edwin Groot
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/

[R] dnorm and qnorm

2010-11-12 Thread Edwin Sun
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

Re: [R] dnorm and qnorm

2010-11-14 Thread Edwin Sun
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

[R] how to update my own function

2010-11-23 Thread Edwin Sun
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

Re: [R] how to update my own function

2010-11-23 Thread Edwin Sun
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

Re: [R] Help Please!!!!!!!!!

2010-11-29 Thread Edwin Groot
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

Re: [R] how to control ticks

2010-12-21 Thread Edwin Groot
;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(

Re: [R] How to Plot Two Curves Into One Page

2011-02-02 Thread Edwin Groot
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

[R] undefined S4 class in parallel computing at snowfall

2012-06-28 Thread Edwin Sun
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

[R] read.xls question

2012-07-11 Thread Tsay, Edwin
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

[R] Piecewise distribution function estimation with Generalized Pareto for tail

2011-07-06 Thread Edwin Sun
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

[R] strange problem with strptime and date variable

2011-07-18 Thread Edwin Sun
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 # =

Re: [R] strange problem with strptime and date variable

2011-07-18 Thread 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

[R] Help with R plots

2011-10-12 Thread Jonathan Edwin
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

[R] trying to superimpose a line plot onto a histogram

2008-07-05 Thread Edwin Lei
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

Re: [R] trying to superimpose a line plot onto a histogram

2008-07-05 Thread 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

Re: [R] trying to superimpose a line plot onto a histogram

2008-07-05 Thread Edwin Lei
; -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

Re: [R] trying to superimpose a line plot onto a histogram

2008-07-06 Thread Edwin Lei
> -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 >

[R] Hex Decimal Convert

2008-04-06 Thread Edwin Sendjaja
0x47780439 0x 0x 0 --- R-Table: 6565 1199047737 0 0 0 Kind Regards, Edwin __ R-help@r-project.org mailing list https

[R] Hex Decimal Convert

2008-04-06 Thread Edwin Sendjaja
0x47780439 0x 0x 0 R-Table: 6565 1199047737 0 0 0 Kind Regards, Edwin __ R-help@r-project.org mailing list https

Re: [R] Hex Decimal Convert

2008-04-06 Thread Edwin Sendjaja
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

Re: [R] Hex Decimal Convert

2008-04-07 Thread Edwin Sendjaja
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

[R] Legend position outside

2008-04-11 Thread Edwin Sendjaja
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

[R] Legend position outside

2008-04-11 Thread Edwin Sendjaja
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

Re: [R] Legend position outside

2008-04-11 Thread Edwin Sendjaja
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=

[R] Mapping file-Legend- from 2 Files/Tables

2008-04-11 Thread Edwin Sendjaja
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

Re: [R] Mapping file-Legend- from 2 Files/Tables

2008-04-12 Thread Edwin Sendjaja
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

Re: [R] Mapping file-Legend- from 2 Files/Tables

2008-04-13 Thread Edwin Sendjaja
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

Re: [R] Merging daily and weekly data

2008-04-14 Thread Edwin Sendjaja
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

[R] 3-D-Plot

2008-04-16 Thread Edwin Sendjaja
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

Re: [R] 3-D-Plot

2008-04-17 Thread Edwin Sendjaja
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

Re: [R] 3-D-Plot

2008-04-17 Thread Edwin Sendjaja
, 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

[R] Bug in Merge?

2008-04-18 Thread Edwin Sendjaja
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.

[R] Large Dataset

2009-01-06 Thread Edwin Sendjaja
? 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.

Re: [R] Large Dataset

2009-01-06 Thread Edwin Sendjaja
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

Re: [R] Large Dataset

2009-01-06 Thread Edwin Sendjaja
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. > &

Re: [R] Large Dataset

2009-01-06 Thread Edwin Sendjaja
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

Re: [R] Large Dataset

2009-01-06 Thread Edwin Sendjaja
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? > >

Re: [R] Large Dataset

2009-01-06 Thread Edwin Sendjaja
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: > &

Re: [R] Large Dataset

2009-01-06 Thread Edwin Sendjaja
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") &

[R] Package

2009-01-14 Thread Edwin Wibisono
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

[R] Project Robust & Linier Regresssion

2009-01-15 Thread Edwin Wibisono
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.

[R] My Problem

2009-01-17 Thread Edwin Wibisono
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

[R] Regression

2009-01-29 Thread Edwin Wibisono
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

[R] Is there simple code for this simple financial time series task?

2008-02-19 Thread Edwin Hoyle
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

[R] Creating Tabel for Mean, Deviance

2008-12-03 Thread Edwin Sendjaja
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

Re: [R] Creating Tabel for Mean, Deviance

2008-12-04 Thread Edwin Sendjaja
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

[R] How to calculate words in column?

2008-12-06 Thread Edwin Sendjaja
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

[R] Shell Bash with R

2007-10-31 Thread Edwin Sendjaja
xAxisTicks=xAxisTicks, yAxisTicks=yAxisTicks, type="l", colorMode=plotColorMode, hideLegend=FALSE, legendPos=c(1,1)) dev.off() Thank you Edwin [[alternative HTML version deleted]] ___

[R] Rcpp cpp11 and R CMD build

2015-06-24 Thread Edwin van Leeuwen
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

Re: [R] Rcpp cpp11 and R CMD build

2015-06-24 Thread Edwin van Leeuwen
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

[R] memory problem for scatterplot using ggplot

2010-07-28 Thread Edwin Husni Sutanudjaja
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

[R] I cannot get species scores to plot with site scores in MDS when I use a distance matrix as input. Problems with NA's?

2011-11-24 Thread Edwin Lebrija Trejos
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

Re: [R] I cannot get species scores to plot with site scores in MDS when I use a distance matrix as input. Problems with NA's?

2011-11-27 Thread Edwin Lebrija Trejos
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="

[R] Competing risks - calibration curve

2018-02-16 Thread Raja, Dr. Edwin Amalraj
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

Re: [R] Competing risks - calibration curve

2018-02-16 Thread Raja, Dr. Edwin Amalraj
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

[R] selectFGR - variable selection in fine gray model for competing risks

2018-03-18 Thread Raja, Dr. Edwin Amalraj
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

[R] selectFGR vs weighted coxph for internal validation and calibration curve- competing risks model

2018-03-21 Thread Raja, Dr. Edwin Amalraj
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

Re: [R] exporting data to stata

2018-03-22 Thread Raja, Dr. Edwin Amalraj
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

[R] restricted cubic spline in FGR function

2018-03-23 Thread Raja, Dr. Edwin Amalraj
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

[R] sprintf doesn't care of escape characters

2012-07-30 Thread Edwin Helbert Aponte Angarita
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

Re: [R] sprintf doesn't care of escape characters

2012-07-30 Thread Edwin Helbert Aponte Angarita
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> > > >

Re: [R] Error message when using 'optim' for numerical maximum likelihood

2023-05-14 Thread iguodala edwin via R-help
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