-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtryout.R
317 lines (236 loc) · 21.6 KB
/
tryout.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
install.packages("random")
library(tidyverse); library(shiny)
library("readxl"); library(reshape2)
library("random")
High <- c("Sovereign","Sovereign","Sovereign","Lover","Lover","Lover","Warrior","Warrior","Warrior","Magician","Magician","Magician")
Low <- c("Lover","Warrior","Magician","Sovereign","Magician","Warrior","Lover",'Magician',"Sovereign","Lover","Sovereign","Warrior")
Theme <- c("Affecting","Idealizing","Fostering","Yielding","Releasing","Relying","Upholding","Contesting","Establishing","Upholding","Alerting","Optionizing")
HL <- c("SL","SW","SM","LS","LM","LW","WL","WM","WS","ML","MS","MW")
Description <- c("'s archetype results indicate strength in Visionary leadership, high in Sovereign energy and low in Relational leadership, or Lover energy, known as Affecting.",
"'s archetype results indicate strength in Visionary leadership, high in Sovereign energy and low in Performancel leadership, or Warrior energy- known as Idealizing.",
"'s archetype results indicate strength in Visionary leadership, high in Sovereign energy and low in Insight leadership, or Magician energy, known as Fostering.",
"’s archetype results indicate strength in Relational leadership, high in Lover energy and low in Visionary leadership, or Sovereign energy, known as Yielding.",
"’s archetype results indicate strength in Relational leadership, high in Lover energy and low in Insight, or Magician energy, known as Releasing.",
"’s archetype results indicate strength in Relational leadership, high in Lover energy and low in Performance, or Warrior energy, known as Relying.",
"’s archetype results indicate strength in Performance leadership, high in Warrior energy and low in Relational leadership, or Lover energy, known as Upholding.",
"’s archetype results indicate strength in Performance leadership, high in Warrior energy and low in Insight leadership, or Magician energy, known as Contesting.",
"’s archetype results indicate strength in Performance leadership, high in Warrior energy and low in Visionary leadership, or Sovereign energy, known as Establishing.",
"’s archetype results indicate strength in Insight leadership, or Magician energy and low in Relational leadership, or Lover energy, known as Detaching.",
"’s archetype results indicate strength in Insight leadership, high in Magician energy and low in Visionary leadership, or Sovereign energy, known as Alerting.",
"’s archetype results indicate strength in Insight leadership, high in Magician energy and low in Performance leadership, or Warrior energy, known as Optionizing."
)
ThemeDescription <-c('They are full of confidence that the right answer always emerges and things will work out for the best. This type sometimes misses the need to acknowledge the pain or struggle that those around them may be experiencing.',
'They manifest a "fake it till theymake it" chutzpah— working hard to impress others with their competencies, affiliations and possessions.',
'They are natural coaches and mentors—taking people under their wing, helping them to grow and improve. They may have difficulty holding their mentees accountable or defining appropriate boundaries.',
'They have an intuitive connection to their senses and feelings. Their body is an instrument of both sensing and expression, giving them a rich sensory life filled with gusto, intuition and emotion. Under pressure, their sensitivity can feel overwhelming.',
'They feel a common bond with those who endure the struggle of their lives. They may be pilgrims on a spiritual path, understanding that there are important lessons in the trials and tribulations we endure. Yielding helps them avoid buckling under the extreme pressures they have experienced or witnessed in life.',
'They recognize the value of vulnerability in building and maintaining relationships. They readily receive support from others. Given their natural openness, a lack of attention to boundaries can foster over-dependency in some relationships.',
'They get on the balcony, leave the crowd and watch from afar. This tendency to disengage can give them perspective. The challenge for this type is accepting the invitation to join the fray and engage with their team.',
'They see all the options laid out before them. This type avoids hurting themselves or others by making decisions too quickly or leaping to conclusions. Instead, they juggle the possibilities, watching and waiting for the right one to show itself. They will resist decisions they feel are being made to quickly.',
'They are the watchdog that sounds the alarm when things could go wrong. This type is two steps ahead, vigilantly protecting their own and the collective well-being. They are willing to be unpopular if it means protecting what they care about. Their innate risk-management voice should not be confused with negativity.',
'This type has their own distinctive brand and style, their modus operandi, and cares little for what the rest of the pack might be doing. They can create friction in their relationships with their willingness to go their own way.',
"This type can dominate the space with their willingness to take the leadership role and their ability to drive their point home. This type feels their own place by pushing against boundaries and resistance. Those with this pattern thrive in an environment when they can assert themselves cleanly in a way that doesn't cause collateral damage inside or outside the team.",
'This type is compelled to correct anything around them that is bent or broken. They will fight hard in pursuit of excellence and can benefit by building relationships with other competent souls they can trust- finding a place to let their guard down and just relax.'
)
archetype_hi_low_theme <- data.frame(High,Low,HL,Theme,Description,ThemeDescription)
Loops <- c("Quest","Security","Theory","Experience","Connection","Independence")
LoopDescription <- c("They are inspired by a challenging quest—motivated to manifest a vision through action in the world. They can feel their progress is hindered by too much focus on risk, relationship, or process.",
"They are focused on creating safety and security, consciously or subconsciously aware of their vulnerabilities and those of their team. They can feel stressed when pushed to act before they are ready.",
"They thrive in learning environments that use information and knowledge to build a strong Theory about why things are happening as they are. They would much prefer to research the failures of others than waste time on a trial-and-error approach.",
"They like to learn through exploration and active engagement, preferring to dive right into testing and discovery, even if that means risking some mistakes and failures.",
"They are called to work with others in pursuit of a common goal, and can feel discomfort if working in isolation or without team support.",
"They thrive when given the space to work in their own way and in their own space. They may find group processes, group decisions and group environments overwhelming when they are working out complex problems."
)
loop <- data.frame(Loops,LoopDescription)
OpposingTypes <- c("Fostering over Alerting","Affecting over Yielding","Detaching over Releasing","Contesting over Optionizing","Upholding over Relying","Idealizing over Establishing","Yielding over Affecting","Alerting over Fostering","Releasing over Detaching","Optionizing over Contesting","Relying over Upholding","Establishing over Idealizing")
OpposingTypesDescription <- c('Under pressure, they find the best in people, and seek to support others, showing a willingness for self-sacrifice to benefit the whole. A way of describing this pattern is "support without caution".',
'Under pressure, they rise above the perceived bounds defined by their past conditions. Humility is secondary to aspiration for them, and rather than worrying about feeling like an outsider, they have chosen to carve their own path.',
'Under pressure, they show a fierce independence and step back to get away from emotions and drama. This can allow them to see the system as a whole. They are content to hold these observations privately and have no need to prove themselves to others.',
'Under pressure, they take decisive action, and can feel uncomfortable with those who hesitate in the face of tough choices or get lost in the weeds of pros and cons. Thinking too much can be harmful, and so they discern a path forward for themselves and others when leadership is needed.',
"Under pressure, they correct the mistakes and hold a level of excellence based on doing what's right, for its own sake. If they want the job done right, they do it themselves.",
'Under pressure, they manifest a strong sense of inspiration that can be contagious–an ability to hold a big vision and see the potential. These big ideas and charisma can lead them to pursue dreams that are not achievable or grounded.',
'Under pressure, they find solidarity with those who keep their heads down and their nose to the grindstone. They feel it is not up to them to change the system or save the world, and can see too much ambition as dangerous.',
'Under pressure, they manifest a watchful independence. They prefer to keep their position secure, keeping a watchful eye on the darker side of human nature, understanding that even good people can sometimes take advantage of others and be hypocritical.', '
Under pressure, they dive passionately into intuition and emotional intensity; feeling all the highs, the lows, and the emotional doldrums and deriving vitality and interpersonal connection through it all.',
'Under pressure, they weigh all the options and hold off on hasty decisions. They have an ability to step back and really think through the many costs and benefits of a particular line of action or menu of choices.',
'Under pressure, they build strong connections with people that are important to you. They maintain these connections with those they depend on, and can create a strong web of support, creating safety for themselves, and for others by being unafraid to ask for what they need., It can be difficult for them to navigate when they feel their support network shaken or lose those they depend on.',
'Under pressure, they distinguish themselves through hard work and a unique path - reinforcing their sense of inner strength. In the face of adversity or pressure to blend in, they chose the difficult path of breaking out on their own and defining their own way.'
)
archetype_opposing_types <- data.frame(OpposingTypes,OpposingTypesDescription)
FactFinder <- c("Simplify","Explain","Specify")
FactFinderDescription <- c("Gathers and shares information by Simplifying. This means he will summarize and help get to the point, cut through the red tape, and offer bottom-line options.",
"gathers and shares information by Explaining; he works within priorities, tests analogies, and starts with the highest probability.",
"This means he will gather and share information by Specifying. This includes ranking and quantifying, defining objectives, and developing complex strategies."
)
kolbe_fact_finder <- data.frame(FactFinder,FactFinderDescription)
FollowThru <- c("Adapt","Maintain","Systematize")
FollowThruDescription <- c("He organizes by Adapting; he switches task frequently, naturally multitasks and will thrive on interruptions.",
"He organizes through Maintaining; packaging things together that fit, adjusting procedures, coordinating schedules, and drafting guidelines.",
"He will organize by Systematizing; this means he will create the plan, coordinate needs, and graph the logistics.")
kolbe_follow_thru <- data.frame(FollowThru,FollowThruDescription)
QuickStart <- c("Stabilize","Modify","Innovate")
QuickStartDescription <- c("He will deal with risk and uncertainty by Stabilizing; this means he will protect the status quo, clarify deadlines, and minimize risk factors.",
"She handles risks and uncertainty by Modifying; trying new ideas, sustaining innovations and adjusting deadlines as needed.",
"She deals with risks and uncertainty by Innovating; creating a sense of urgency, initiating change, and defying the odds.")
kolbe_quick_start <- data.frame(QuickStart,QuickStartDescription)
Implementor <- c("Envision","Restore","Demonstrate")
ImplementorDescription <- c("Finally, he will handle space and tangibles by Envisioning; this means he will create virtual presentations, sketch ideas and capture the essence of things.",
"His best method for tackling space and intangibles is to Restoring; testing ingredients, fixing moving parts and removing both real and imagined obstacles.",
"Finally, he handles space and tangibles by Demonstrating; building prototypes and scalable solution, testing functionality and troubleshooting malfunctions by designing and fabricating new parts.")
kolbe_implementor <- data.frame(Implementor,ImplementorDescription)
ActionModes <- c("Move","Follow","Bystand","Oppose")
ActionModesDescription <- c("A Move initiates. Movers are often the first to suggest a direction or to introduce a new idea or concept. Moves start the action.",
"A Follow supports. Followers get behind others’ ideas and take the necessary action to carry the idea forward to completion. Follows finish the action.",
"A Bystand bridges. Bystanders observe, add neutral perspective, and integrate seemingly disparate ideas. Bystands connect the elements of the action.",
"An Oppose challenges. Opposers push back on ideas, providing alternatives, and helping to shore up weaknesses. Opposes correct the action.")
kantor_action_modes <- data.frame(ActionModes,ActionModesDescription)
OS <- c("Open","Closed","Random")
OSDescription <- c("Individuals who have the Open propensity emphasize process, participation, and teamwork. They look for ways to include others and place a high value on consensus. They believe everyone has a contribution to make.",
"Individuals with the Closed propensity emphasize structure and planning and are more likely to value both tradition and hierarchy. They provide others with clarity about individual roles and responsibilities and expect everyone to know and follow the rules.",
"Individuals demonstrating the Random propensity operate with no rules and few boundaries. They tend to emphasize creative expression, autonomy and individuality. They rarely consider imposing a system on others - they merely want the freedom to operate in their own unique way.")
kantor_operating_system <- data.frame(OS,OSDescription)
CommunicationDomain <- c("Power","Affect","Meaning")
CommunicationDomainDescription <- c("The language of Power is about accountability, competence and completion. Individuals with a Power Propensity tend to speak about specific goals and are highly conscious of time. They enjoy crossing items from their list and moving projects to closure.",
"The language of Affect is about connection between people, particularly emotional. Individuals with an Affect Propensity take special note of others’ well-being and how they are reacting to what is being said. They emphasize trust and motivation and try to provide a climate of warmth and caring.",
'The language of Meaning is about thinking, logic and a sense of purpose. Individuals with a Meaning Propensity are concerned with “what we stand for” and with deeply understanding how things work. They love exploring ideas and concentrating on the theoretical underpinnings of a discussion.'
)
kantor_communication_domain <- data.frame(CommunicationDomain,CommunicationDomainDescription)
glimpse(archetype_opposing_types)
length(Theme)
glimpse(archetype_hi_low_theme)
archetype_hi_low
archetype_hi_low <- read_xlsx("Data Entry Form.v2.xlsx",
sheet = "Archetypes Hi-Lo")
loop <- read_xlsx("Data Entry Form.v2.xlsx", sheet = "Archetype Loops")
glimpse(loop)
reference_list <- read_xlsx("Data Entry Form.v2.xlsx", sheet = "Reference Lists")
glimpse(reference_list)
reference_list[,1]
archetype_hi_low[1,]
response1 <- "Sovereign"; response2 <- "Lover"; response3 <- "Affecting";
length(archetype_hi_low[1,])
#Not needed anymore
# nrow(archetype_hi_low)
# i=1
# for(i in 1:nrow(archetype_hi_low)){
# if(archetype_hi_low[i,1]=="Sovereign"){
# archetype_hi_low[i,"H2"] = "S"
# } else if(archetype_hi_low[i,1]=="Lover"){
# archetype_hi_low[i,"H2"] = "L"
# } else if (archetype_hi_low[i,1]=="Warrior"){
# archetype_hi_low[i,"H2"] = "W"
# } else if(archetype_hi_low[i,1]=="Magician"){
# archetype_hi_low[i,"H2"] = "M"
# }
# if(archetype_hi_low[i,2]=="Sovereign"){
# archetype_hi_low[i,"L2"] = "S"
# } else if(archetype_hi_low[i,2]=="Lover"){
# archetype_hi_low[i,"L2"] = "L"
# } else if (archetype_hi_low[i,2]=="Warrior"){
# archetype_hi_low[i,"L2"] = "W"
# } else if(archetype_hi_low[i,2]=="Magician"){
# archetype_hi_low[i,"L2"] = "M"
# }
# archetype_hi_low[i,"HL"] = str_c(archetype_hi_low[i,"H2"],
# archetype_hi_low[i,"L2"])
# }
#Response for Archetype High, Low and Theme
response1 <- "Sovereign"; response2 <- "Sovereign"; response3 <- "Affecting";
resp <- paste0(substr(response1,1,1), substr(response2,1,1))
?append
name <- "Blah Blah Blah"
function(){
for(j in 1:nrow(archetype_hi_low_theme)){
if(archetype_hi_low_theme[j,"HL"] == resp){
description <- archetype_hi_low_theme[j,"Description"]
theme_description <- archetype_hi_low_theme[j,"ThemeDescription"]
results <- str_c(name,description,"\n",theme_description)
print(results)
break
}else if (response1==response2) {
results <- "Same responses were inputted for Archetype Hi and Archetype Low, No Description is gotten"
}
}
#Response for Loop
lr1 <- "Security"; lr2 <- "Security"; lr3 <- "Independence";
lr <- distinct(as.data.frame(c(lr1, lr2, lr3))); lr
for(k in 1:nrow(lr)){
for(l in 1:nrow(loop)){
if(loop[l,"Loops"] == lr[k,1]){
loop_result <- loop[l,"LoopDescription"]
}
}
}
for(k in 1:nrow(loop)){
while(nrow(lr)>= 1){
if(loop[k,"Loops"]==lr[1,1]){
loop_result <- loop[k,"LoopDescription"]
}
}
distinct(loop[,"Loops"])
print(results)
glimpse(archetype_hi_low)
glimpse(loop)
glimpse(acast(archetype_hi_low, High + Low~ Description))
#Response for Opposing types
resp_ot <- archetype_opposing_types[2,1]
for(i in 1:nrow(archetype_opposing_types)){
if(archetype_opposing_types[i,1]==resp_ot){
result_opposing_types <- archetype_opposing_types[i,2]
break
}
}
#Response for Kolbe Fact Finder
resp_kff <- kolbe_fact_finder[3,1]
for(i in 1:nrow(kolbe_fact_finder)){
if(kolbe_fact_finder[i,1]==resp_kff){
result_kff <- kolbe_fact_finder[i,2]
break
}
}
#Response for Follow Thru
resp_kft <- kolbe_follow_thru[1,1]
for(i in 1:nrow(kolbe_follow_thru)){
if(kolbe_follow_thru[i,1]==resp_kft){
result_kft <- kolbe_follow_thru[i,2]
break
}
}
#Response for Implementor
resp_imp <- kolbe_implementor[1,1]
for(i in 1:nrow(kolbe_implementor)){
if(kolbe_implementor[i,1]==resp_imp){
result_kft <- kolbe_implementor[i,2]
break
}
}
#Response for Quick Start
resp_kqs <- kolbe_quick_start[1,1]
for(i in 1:nrow(kolbe_quick_start)){
if(kolbe_quick_start[i,1]==resp_kqs){
result_kqs <- kolbe_quick_start[i,2]
break
}
}
#Response for Action Modes
resp_kam <- kantor_action_modes[1,1]
for(i in 1:nrow(kantor_action_modes)){
if(kantor_action_modes[i,1]==resp_kam){
result_kam <- kantor_action_modes[i,2]
break
}
}
#Response for Communication Domain
resp_kos <- kantor_operating_system[1,1]
for(i in 1:nrow(kantor_operating_system)){
if(kantor_operating_system[i,1]==resp_kos){
result_kcd <- kantor_operating_system[i,2]
break
}
}
}
arche(input$hi_archetypes,input$lo_archetypes,input$top_loop,
input$second_loop,input$trans_loop,input$opp_type,input$fact_finder,
input$follow_tru,input$quick_start,input$implementor,input$action_mode,
input$operating_system,input$com_domain)
append("asdc", "b", after = 1)