[R] Combinations

2013-03-15 Thread Amir
Hi every one, I have two sets T1={c1,c2,..,cn} and T2={k1,k2,...,kn}. How can I find the sets as follow: (c1,k1), (c1,k2) ...(c1,kn) (c2,k1) (c2,k2) (c2,kn) ... (cn,kn) Thanks. Amir -- __ Amir Darehshoorzadeh

[R] 3D plot

2013-05-14 Thread Amir
Dear all, I need to plot more than one surface in 3D using R. I tried with "persp" function, it produce only one surface. Could you please help me how can I do it? The X and Y axis are the same but I have Z1 and Z2. I want to have both results in one graph. T

[R] combination value

2010-12-21 Thread amir
<mailto:r-help@r-project.org>Hi every one, I want to calculate the combination function in R, the value not all the possible choices. I mean cmbn(5,2)=10. Is there any function unless using factorial? Regards, Amir [[alternative HTML version d

[R] using R and for simulating a wireless network

2010-06-01 Thread amir
is wiring a simple simulator using R that a node sends some packet and using some table to reach the destination (Like Ns-2 but with less details) Best Regards, Amir __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] writing a matrix in a file

2010-06-02 Thread amir
1 -1 882765 668275 Matrix: [,1] [,2] [,3] [,4] [,5] [,6] [1,]55 -1 -1 -1 -1 [2,]882765 [3,]66827 5 Regards, Amir __ R-help@r-project.org maili

[R] intersection on more than two sets

2010-06-03 Thread amir
Hi, I want to do an intersection or union on more than two sets. Is there any command to do this? Regards, Amir __ 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

[R] minimum steiner tree

2011-02-03 Thread amir
Dear All, Is there any function in R that find the minimum steiner tree not minimum spanning tree? Regards, Amir __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] minimum spanning tree

2011-02-10 Thread amir
their edges. Then running minimum.spanning.tree(g'). I want to know is there any better solution? Regards, Amir -- ___ Amir Darehshoorzadeh |Comp. Architecture Dept. PhD Student |UPC-Campus Nord, C6-221

[R] directed minimum spanning tree

2011-02-10 Thread amir
Hi, Is there any function in R to find the Directed Minimum Spanning tree? There are some for undirected but I am looking for a directed tree. Regards, Amir -- ___ Amir Darehshoorzadeh |Comp. Architecture Dept. PhD Student

[R] directed MST

2011-02-11 Thread amir
Hi every body, Is there any function in R to find the Directed Minimum Spanning tree? There are some for undirected but I am looking for a directed Minimum spannin tree. Regards, Amir __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] cycle in a directed graph

2011-02-11 Thread amir
Hi, I have a directed graph and wants to find is there any cycle in it? If it is, which nodes or edges are in the cycle. Is there any way to find the cycle in a directed graph in R? Regards, Amir __ R-help@r-project.org mailing list https

[R] scatter graph of more than one value

2011-02-25 Thread amir
Hi, I have two X1,X2 and Y1,Y2 and I want to draw them ((X1,Y1), (X2,Y2)) in a scatter graph. How can I draw both of them in a same graph with different legends? And is there any way to show different labels on each point? Regards, Amir __ R-help@r

[R] using scatter plot for different values

2011-02-25 Thread amir
Hi everyone, I have two different results which is determined by (x,y) > x1 <- c(1,5,8) > y1 <- c(8,9,10) > x2 <- c(1,7,9) > y2 <- c(5,7,9) Let call one=(x1,y1) and Two=(x2,y2) how can I draw them in R in a scatter plot showing (x,y) with two different legends (

[R] number of repetition

2011-09-12 Thread amir
Hi, Is there any function or command in R that show that how many times a number is repeated in an array? Regards, Amir -- ___ Amir Darehshoorzadeh |Comp. Architecture Dept. PhD Student |UPC-Campus Nord, C6-221

[R] CDS (Connecting Dominating Set )

2011-10-24 Thread amir
Hi, Is there any way or function in R that can find the Connecting Dominating Set? Regards, Amir -- ___ Amir Darehshoorzadeh |Comp. Architecture Dept. PhD Student |UPC-Campus Nord, C6-221 Email: a...@ac.upc.edu

[R] Dominating set

2011-10-24 Thread amir
Hi, Is there any way to find the Connected Dominating Set (CDS) of a graph in R? Regards, Amir __ 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

[R] Container/Collection Object to keep data structures and object

2009-12-01 Thread Amir Liu
: "number of items to replace is not a multiple of replacement length" What is the general purpose collection object in R to store more complex objects, or how are these things generally approached? Kind Rega

[R] Passing additional argument to be numerically integrated function

2009-12-01 Thread Amir Liu
2: one ore more argument for function to be integrated   # integrate box function of height nb from 0 to 2   nb <- 5   val1 <- integrate(constX,0,2)   print(val1) } "const1" <- function(x) {  return(rep(1,length(x))) } "constX" <- function(x,nb) {  re

Re: [R] Container/Collection Object to keep data structures and object

2009-12-01 Thread Amir Liu
matrix(1:4, 2, 2) :   number of items to replace is not a multiple of replacement length > Date: Tue, 1 Dec 2009 17:31:41 -0800 > From: ch...@sharpsteen.net > To: r-help@r-project.org > Subject: Re: [R] Container/Collection Object to keep d

[R] Glmnet survival cox predict

2019-11-15 Thread Amir Hadanny
Hi all, i'm trying to get the prediction probabilities for a survival elastic net. When i use try to predict using the train model on the test set, it creates an object with the number rows of the train data (6400 rows) instead of the test data (2400 rows). I really don't understand why, and that d

Re: [R] Glmnet survival cox predict

2019-11-16 Thread Amir Hadanny
data1,] test<-data[-data1,] so test should be the exact same, and i still can't find the issue, thank you Amir On Sat, Nov 16, 2019 at 12:00 AM David Winsemius wrote: > > On 11/15/19 10:49 AM, Amir Hadanny wrote: > > Hi all, > > i'm trying to get the prediction p

[R] error in unique() command

2013-02-15 Thread Amir Kasaeian
er of rows for the different variable to continue my code for rest of analysis? Thank you so much. Kind regards, Amir __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-pr

[R] Appending many different and separate Excel files using R

2012-08-17 Thread Amir Kasaeian
data come from. As I have many Excel files and their sizes are very big I should write a loop in R to do the work. I will be very happy if you guide and help me to write the codes. Thank you very much in advance. Kind regards, Amir Kasaeian Amir Kasaeian, PhD Student in Biostatistics, Dept

[R] request for Unsubscribe

2008-04-25 Thread Amir Kavousi
Dear Please unsubscribe my email from mailing list of R-Help. Thanks Amir Kavousi [EMAIL PROTECTED] - [[elided Yahoo spam]] [[alternative HTML version deleted]] __ R-help@r

Re: [R] Welcome to the "R-help" mailing list (Digest mode)

2015-09-24 Thread amir via R-help
I would greatly appreciate if anybody could help with the stack-overflow question : Updating and Forecasting times series with new data |   | |   | |   |   |   |   |   | | Updating and Forecasting times series with new dataWe can fit a time series and use the model to make forecasts, for example