Re: [R] How to take difference of sets when there is an empty subset involved

2018-03-18 Thread Duncan Murdoch
On 18/03/2018 11:00 AM, Neha Aggarwal wrote: Hello, Problem I am facing is as follows: Set A is made of 2 sets x and y x<-{"P1", "P2", "P3", "P4"} y<-{} Those aren't R code. I think you meant x <- set("P1", "P2", "P3", "P4") y <- set() A<-set(x,y) #A={{}, {"P1", "P2", "P3", "P4"}} i need

[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] How to take difference of sets when there is an empty subset involved

2018-03-18 Thread Neha Aggarwal
Hello, Problem I am facing is as follows: Set A is made of 2 sets x and y x<-{"P1", "P2", "P3", "P4"} y<-{} A<-set(x,y) #A={{}, {"P1", "P2", "P3", "P4"}} i need to use A in a recursive loop where i need to take set difference of A and it 's elements. Example: for (i in A){ print(i) A<-se

[R] rdwd package error: invalid file argument raised by readDWD

2018-03-18 Thread Jurat Shayidin
Hi: I tried to download germany' historical weather data with rdwd package. However, when I tried to read downloaded data (1080 txt file in total) with readDWD function, but R raised an error down below: library(rdwd) ftpURL <- selectDWD(name = "", exactmatch = TRUE, res="mon

[R] Set Difference Problem

2018-03-18 Thread Neha Aggarwal
Hello All, I am facing a problem and am unable to find much help online as sets package in R is relatively new. My problem is as follows: Set R is made of 2 sets x and y x<-{"P1", "P2", "P3", "P4"} y<-{} R<-set(x,y) #R={{}, {"P1", "P2", "P3", "P4"}} i need to use R in a recursive loop where i n