Displaying 4 results from an estimated 4 matches for "danieljm1976".
2008 Jul 24
5
How to delete duplicate cases?
Dear R users,
I have a dataframe with lot of duplicate cases and I want to delete duplicate ones which have low rank and keep that case which has highest rank.
e.g
> df1
cno rank
1 1342 0.23
2 1342 0.14
3 1342 0.56
4 2568 0.15
5 2568 0.89
so I want to keep 3rd and 5th cases with highest rank (0.56 & 0.89) and delete rest of the duplicate cases.
Could
2008 Jul 20
3
Order of columns(variables) in dataframe
Dear R experts,
I have a dataframe with 4 columns (variables). I want to redorder (or reposition) these columns on the basis of a value in its last row. e.g.
df1<-data.frame( v1= c(2,3,1,9,5), v2=c(8,5,12,4,11), v3=c(7,8,2,6,9), v4=c(1,4,6,3,6))
> df1
v1 v2 v3 v4
1 2 8 7 1
2 3 5 8 4
3 1 12 2 6
4 9 4 6 3
5 5 11 9 6
I wanto to get the order of df1 on the basis of
2008 Jul 16
1
Help regarding arules package
Dear R experts,
I need help to make my little program efficient which now takes 2hrs to complete.
Using arules package I developed set of rules consisted of 900 rules. Now I want to check whether a lower rule is a subset of a higher premises rule. And if it is a subset of higher premises rule then drop this rule. I am using following code but it takes too much time.
nor<-length(rules)
2008 Jul 24
1
How to get rule number in arules
Dear R experts
I generated rules using apriori method in arules package. Though I can access rules using %in% function but I am unable to access a specific rule by its unique identifier number. I want to use rule number for further analysis..
Thanking you in advance.
Daniel
Amsterdam
Send instant messages to your online friends