Displaying 1 result from an estimated 1 matches for "baseprod".
Did you mean:
basemod
2013 Aug 24
1
Divide the data into sub data on a particular condition
Hi,
Use ?split()
#dat1 is the dataset:
lst1<- split(dat1,dat1$BaseProd)
lst1
#$`2231`
?# BaseProd? CF OSA
#1???? 2231 0.5 0.7
#2???? 2231 0.8 0.6
#3???? 2231 0.4 0.8
#
#$`2232`
?# BaseProd CF OSA
#4???? 2232? 1?? 2
#5???? 2232? 3?? 1
#
#$`2233`
?# BaseProd? CF OSA
#6???? 2233 0.9 0.5
#7???? 2233 0.7 0.5
#8???? 2233 4.0 5.0
#9???? 2233 5.0 7.0
lst1[[1]]
#? BaseProd?...