You're welcome, Satish.
Yes, questions that are seeking solutions in R code are appropriate for
this group. It's helpful if you provide sample data (for example, using
dput()) and sample R code that folks can use. And it's helpful if you show
the results that you are hoping to achieve (as you
Jean:
Wow. Thank you so much for this. I will read up igraph and then see if this
is going to work for me for the larger dataset.
Thanks for the wonderful snippet code you wrote. Basically, the requirement
is this:
TLA1 (Top Level Assembly) and its components should belong to the same
group. If a
Satish,
If you rearrange your data into a network of nodes and edges, you can use
the igraph package to identify disconnected (mutually exclusive) groups.
# example data
df <- data.frame(
Component = c("C1", "C2", "C1", "C3", "C4", "C5"),
TLA = c("TLA1", "TLA1", "TLA2", "TLA2", "TLA3",
It isn't at all clear to me how you are creating the groups. They
aren't the unique combinations of Component and TLA. They might be
based only on TLA value: in your example TLA1 and TLA2 form one group,
and TLA3 the other.
Without understanding your logic, I can't replicate it with R code.
Hello All:
I would like to get some help with the following problem and understand how
this can be done in R efficiently. The header is given in the data frame.
*Component, TLA*
C1, TLA1
C2, TLA1
C1, TLA2
C3, TLA2
C4, TLA3
C5, TLA3
Notice that C1 is a component of TLA1 and TLA2.
I would like to
5 matches
Mail list logo