« first day (294 days earlier)      last day (1771 days later) » 

1:50 AM
1 message moved from Code Review
 
 
4 hours later…
5:30 AM
My file is like this-

Pcol Mcol
P1 M1,M2,M5,M6
P2 M1,M2,M3,M5
P3 M4,M5,M7,M6
I want to find the combination of Mcol elements along with Pcol.

Expected output-

Pcol Mcol
P1 M1,M2
P2 M1,M2
P1 M1,M5
P2 M1,M5
P1 M1,M6
P1 M2,M5
P2 M2,M5
P1 M2,M6
P1 M5,M6
P3 M5,M6
P2 M1,M3
P2 M2,M3
P3 M4,M5
P3 M4,M7
P3 M4,M6
P3 M7,M6
I have tried this-

x <- read.csv("file.csv" ,header = TRUE, stringsAsFactors = FALSE)
xx <- do.call(rbind.data.frame,
lapply(x$Gcol, function(i){
 
 
3 hours later…
8:04 AM
posted on June 28, 2019

Israel Folau and Rugby Australia are set to go to court after failing to reach a settlement in the first stage of the unfair dismissal case.

 
 
4 hours later…
12:28 PM
posted on June 28, 2019

London Irish players lend their hands and their own babies to an NHS campaign aimed at promoting safer infant sleeping.

 
 
1 hour later…
1:30 PM
posted on June 28, 2019

Gloucester fly-half Danny Cipriani is added to the squad for England's second World Cup training camp.

 
 
9 hours later…
10:18 PM
posted on June 28, 2019

England get their Women's Rugby Super Series title defence off to a winning start with a 38-5 victory over the USA in San Diego.

 

« first day (294 days earlier)      last day (1771 days later) »