-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlearning-path.qmd
More file actions
777 lines (705 loc) · 25.5 KB
/
Copy pathlearning-path.qmd
File metadata and controls
777 lines (705 loc) · 25.5 KB
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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
---
title: "R Learning Path"
format: html
title-block: false
---
```{=html}
<style>
*, *::before, *::after { box-sizing: border-box; }
:root {
--bg: #f6f4ee;
--panel: rgba(255,255,255,0.86);
--panel-strong: #fffdfa;
--text: #1d1f1a;
--muted: #65685f;
--subtle: #8c8f85;
--line: rgba(24, 32, 20, 0.12);
--line-strong: rgba(24, 32, 20, 0.22);
--accent: #155c48;
--accent-soft: #dbeee7;
--accent-2: #a54426;
--accent-2-soft: #f8e9e2;
--accent-3: #1e5f92;
--accent-3-soft: #e3eef8;
--accent-4: #8b6311;
--accent-4-soft: #f8ecd3;
--shadow: 0 18px 50px rgba(42, 49, 36, 0.08);
--shadow-soft: 0 10px 24px rgba(42, 49, 36, 0.05);
--radius: 22px;
--font: "Segoe UI", "Aptos", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #1b1d19;
--panel: rgba(34, 37, 32, 0.92);
--panel-strong: #242822;
--text: #eceadf;
--muted: #bcc0b4;
--subtle: #8f9388;
--line: rgba(255,255,255,0.10);
--line-strong: rgba(255,255,255,0.20);
--accent: #8ed1b8;
--accent-soft: #113e31;
--accent-2: #f1a183;
--accent-2-soft: #4d1f10;
--accent-3: #9bc6ec;
--accent-3-soft: #123652;
--accent-4: #f0c66a;
--accent-4-soft: #493104;
--shadow: none;
}
}
body {
margin: 0;
font-family: var(--font);
color: var(--text);
background: #ffffff;
min-height: 100vh;
padding: 2rem 1rem 3rem;
}
.page-shell {
max-width: 1180px;
margin: 0 auto;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 0.45rem;
padding: 0.35rem 0.7rem;
border-radius: 999px;
background: var(--accent-soft);
color: var(--accent);
font-size: 0.76rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.page-title {
font-size: clamp(2rem, 4vw, 3.35rem);
line-height: 1.02;
margin: 0 0 0.8rem;
max-width: 14ch;
}
.page-lead {
font-size: 1.05rem;
line-height: 1.7;
color: var(--muted);
max-width: 74ch;
margin: 0 0 1.3rem;
}
.journey {
display: grid;
grid-template-columns: 340px minmax(0, 1fr);
grid-template-areas:
"journeycopy journeycopy"
"nav panel";
gap: 1rem;
align-items: start;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 28px;
box-shadow: var(--shadow);
backdrop-filter: blur(10px);
overflow: hidden;
}
.journey-copy {
grid-area: journeycopy;
padding: 1.15rem 1.25rem 0;
color: var(--muted);
font-size: 0.96rem;
line-height: 1.7;
max-width: 78ch;
}
.journey-nav {
grid-area: nav;
padding: 1.9rem 1.25rem 1.5rem;
position: sticky;
top: 1rem;
align-self: start;
min-height: 100%;
border-right: 1px solid var(--line);
}
.section-title {
margin: 0 0 0.35rem;
font-size: 0.86rem;
font-weight: 700;
letter-spacing: 0.09em;
text-transform: uppercase;
color: var(--subtle);
}
.section-copy {
margin: 0 0 1rem;
font-size: 0.94rem;
color: var(--muted);
line-height: 1.65;
}
.stage-list {
display: flex;
flex-direction: column;
gap: 0;
}
.stage-btn {
width: 100%;
border: 0;
border-top: 1px solid var(--line);
background: transparent;
text-align: left;
padding: 1rem 0.25rem;
cursor: pointer;
transition: background 0.15s ease;
position: relative;
display: grid;
grid-template-columns: 2rem 1fr;
gap: 0.8rem;
align-items: start;
}
.stage-btn:hover {
background: rgba(21, 92, 72, 0.04);
}
.stage-btn.active {
background: linear-gradient(135deg, rgba(21, 92, 72, 0.10), rgba(21, 92, 72, 0.03));
border-radius: 18px;
margin: 0.55rem 0;
padding: 1rem 0.9rem;
border-top-color: transparent;
box-shadow: inset 0 0 0 1px rgba(21, 92, 72, 0.08);
}
.stage-btn.active::before {
content: "";
position: absolute;
left: 0;
top: 12px;
bottom: 12px;
width: 3px;
border-radius: 999px;
background: var(--accent);
}
.stage-index {
display: inline-flex;
width: 1.8rem;
height: 1.8rem;
align-items: center;
justify-content: center;
border-radius: 50%;
background: var(--accent);
color: #fff;
font-size: 0.82rem;
font-weight: 700;
margin-top: 0.1rem;
}
.stage-btn.active .stage-index {
background: var(--accent-2);
}
.stage-copy {
display: block;
}
.stage-title {
display: block;
font-size: 0.96rem;
font-weight: 700;
color: var(--text);
margin-bottom: 0.2rem;
line-height: 1.35;
}
.stage-sub {
display: block;
font-size: 0.82rem;
color: var(--muted);
line-height: 1.5;
}
.journey-panel-wrap {
grid-area: panel;
padding: 1.85rem 1.7rem 1.55rem;
background:
radial-gradient(circle at top right, rgba(21, 92, 72, 0.04), transparent 26%),
radial-gradient(circle at top left, rgba(165, 68, 38, 0.03), transparent 20%);
}
.panel {
display: none;
}
.panel.active {
display: block;
}
.panel-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
}
.panel-head-main {
max-width: 72ch;
}
.pill {
display: inline-block;
padding: 0.34rem 0.68rem;
border-radius: 999px;
font-size: 0.72rem;
letter-spacing: 0.08em;
text-transform: uppercase;
font-weight: 700;
}
.pill-green { background: var(--accent-soft); color: var(--accent); }
.pill-coral { background: var(--accent-2-soft); color: var(--accent-2); }
.pill-blue { background: var(--accent-3-soft); color: var(--accent-3); }
.pill-amber { background: var(--accent-4-soft); color: var(--accent-4); }
.panel h2 {
margin: 0.6rem 0 0;
font-size: clamp(2.2rem, 5vw, 3.8rem);
line-height: 1.1;
letter-spacing: -0.03em;
}
.panel-intro {
margin: 0 0 1rem;
font-size: 0.98rem;
line-height: 1.55;
color: var(--muted);
max-width: 68ch;
}
.panel-rule {
height: 1px;
background: var(--line);
margin: 1rem 0 1.45rem;
}
.close-btn {
border: 1px solid var(--line);
background: var(--panel-strong);
color: var(--muted);
border-radius: 12px;
cursor: pointer;
padding: 0.5rem 0.7rem;
font-size: 0.84rem;
}
.panel-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.95rem;
}
.panel-grid.panel-grid-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.content-card {
background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(252,250,245,0.96));
border: 1px solid var(--line);
border-radius: 22px;
padding: 1.15rem;
min-height: 100%;
box-shadow: var(--shadow-soft);
}
@media (prefers-color-scheme: dark) {
.content-card {
background: linear-gradient(180deg, rgba(38, 40, 34, 0.95), rgba(31, 34, 29, 0.98));
}
}
.content-card h3 {
margin: 0 0 0.55rem;
font-size: 0.92rem;
color: var(--accent);
}
.content-card p {
margin: 0;
color: var(--muted);
font-size: 0.92rem;
line-height: 1.65;
}
.content-card ul {
margin: 0;
padding-left: 1.1rem;
color: var(--muted);
}
.content-card li {
margin: 0 0 0.5rem;
line-height: 1.55;
}
.prompt-list {
display: flex;
flex-direction: column;
gap: 0.65rem;
}
.prompt {
border-left: 4px solid var(--accent);
background: rgba(21, 92, 72, 0.06);
padding: 0.85rem 0.9rem;
border-radius: 0 14px 14px 0;
font-size: 0.91rem;
color: var(--text);
line-height: 1.55;
}
.icon-badge {
width: 3rem;
height: 3rem;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
margin-bottom: 0.85rem;
background: linear-gradient(135deg, rgba(21, 92, 72, 0.16), rgba(21, 92, 72, 0.06));
color: var(--accent);
border: 1px solid rgba(21, 92, 72, 0.10);
font-size: 1.35rem;
line-height: 1;
}
.callout-row {
margin-top: 1rem;
}
.resource-list {
display: flex;
flex-direction: column;
gap: 0.7rem;
}
.resource-card {
display: block;
text-decoration: none;
color: inherit;
border: 1px solid var(--line);
background: rgba(255,255,255,0.78);
border-radius: 16px;
padding: 0.9rem;
transition: border-color 0.15s ease, transform 0.15s ease;
}
@media (prefers-color-scheme: dark) {
.resource-card {
background: rgba(35, 37, 33, 0.88);
}
}
.resource-card:hover {
border-color: var(--line-strong);
transform: translateY(-1px);
}
.resource-card strong {
display: block;
margin-bottom: 0.18rem;
font-size: 0.94rem;
}
.resource-card span {
display: block;
color: var(--muted);
font-size: 0.87rem;
line-height: 1.5;
}
.resource-card em {
display: block;
margin-top: 0.4rem;
color: var(--subtle);
font-size: 0.75rem;
font-style: normal;
}
.panel-foot {
margin-top: 1rem;
padding: 1.05rem 1.1rem;
border-radius: 22px;
background: linear-gradient(135deg, rgba(30, 95, 146, 0.08), rgba(21, 92, 72, 0.08));
border: 1px solid var(--line);
color: var(--muted);
font-size: 0.93rem;
line-height: 1.65;
box-shadow: var(--shadow-soft);
}
@media (max-width: 980px) {
.journey,
.panel-grid {
grid-template-columns: 1fr;
}
.journey {
grid-template-areas:
"journeycopy"
"nav"
"panel";
}
.journey-nav {
position: static;
border-right: 0;
border-bottom: 1px solid var(--line);
}
}
</style>
<div class="page-shell">
<p class="page-lead">Return to R by learning the work you need to do, not every corner of the language.</p>
<section class="journey">
<div class="journey-nav">
<p class="section-title">Recommended path</p>
<p class="section-copy">Start at the top and move stage by stage. You can revisit any stage whenever your work exposes a gap.</p>
<div class="stage-list">
<button class="stage-btn active" id="btn-orientation" onclick="showStage('orientation')">
<span class="stage-index">1</span>
<span class="stage-copy">
<span class="stage-title">Introduction</span>
<span class="stage-sub">Mindset, role, and how this path works.</span>
</span>
</button>
<button class="stage-btn" id="btn-syntax" onclick="showStage('syntax')">
<span class="stage-index">2</span>
<span class="stage-copy">
<span class="stage-title">Learn Enough Syntax</span>
<span class="stage-sub">Recognise data frames, dplyr, ggplot2, pipes, and packages.</span>
</span>
</button>
<button class="stage-btn" id="btn-ai" onclick="showStage('ai')">
<span class="stage-index">3</span>
<span class="stage-copy">
<span class="stage-title">Learn Through Relevant Work</span>
<span class="stage-sub">Pick a project that matters to you and use AI to learn by doing it.</span>
</span>
</button>
<button class="stage-btn" id="btn-code" onclick="showStage('code')">
<span class="stage-index">4</span>
<span class="stage-copy">
<span class="stage-title">Learn from Real Scripts</span>
<span class="stage-sub">Read team code and notice which analyses, outputs, or tools matter to you.</span>
</span>
</button>
<button class="stage-btn" id="btn-workflow" onclick="showStage('workflow')">
<span class="stage-index">5</span>
<span class="stage-copy">
<span class="stage-title">Use AI as a Translator</span>
<span class="stage-sub">Turn familiar SAS, or analysis ideas into R code.</span>
</span>
</button>
</div>
</div>
<div class="journey-panel-wrap">
<div class="panel active" id="panel-orientation">
<div class="panel-head">
<div class="panel-head-main">
<span class="pill pill-green">Stage 1</span>
<h2>1. Introduction</h2>
</div>
<button class="close-btn" onclick="showStage('orientation')">Reset stage</button>
</div>
<p class="panel-intro">
Mindset, role, and how this path works.
</p>
<div class="panel-rule"></div>
<div class="panel-grid panel-grid-3">
<div class="content-card">
<div class="icon-badge">B</div>
<h3>Goal</h3>
<p>Replace the feeling of "I have to relearn everything" with "I already know the analysis, I just need to learn how R expresses it."</p>
</div>
<div class="content-card">
<div class="icon-badge">AI</div>
<h3>AI Role</h3>
<p>Use AI as a translator, explainer, code reviewer, and debugging partner while you learn in context.</p>
</div>
<div class="content-card">
<div class="icon-badge">U</div>
<h3>Audience</h3>
<p>Designed for people either returning to R or coming to R as a newcomer.</p>
</div>
</div>
<div class="callout-row">
<div class="panel-foot">If you last touched R years ago at university, the fastest route back is not a long course taken in order. It is a guided, applied path: learn enough syntax to recognise what R is doing, use AI to translate what you already know from SAS, or other analysis workflows, then learn from real scripts and real tasks.</div>
</div>
</div>
<div class="panel" id="panel-syntax">
<div class="panel-head">
<div>
<span class="pill pill-blue">Stage 2</span>
<h2>Learn enough syntax to recognise what R is doing</h2>
</div>
<button class="close-btn" onclick="showStage('orientation')">Back to start</button>
</div>
<p class="panel-intro">
Spend a short burst of time on the core shapes of modern R code. The aim is recognition and confidence, not deep mastery.
</p>
<div class="panel-rule"></div>
<div class="panel-grid">
<div class="content-card">
<h3>Goal</h3>
<p>Become comfortable seeing data frames, verbs like <code>filter()</code> and <code>mutate()</code>, pipes, and basic <code>ggplot2</code> code.</p>
</div>
<div class="content-card">
<h3>What to do</h3>
<ul>
<li>Spend one or two days on introductory material only.</li>
<li>Focus on data frames, <code>dplyr</code>, <code>ggplot2</code>, pipes, and packages.</li>
<li>Do not worry if you cannot write everything from memory.</li>
</ul>
</div>
<div class="content-card">
<h3>Ask AI this</h3>
<div class="prompt-list">
<div class="prompt">"Explain data frames, dplyr, ggplot2, and pipes as if I am a clinical-trial analyst returning to R."</div>
<div class="prompt">"Show me a tiny example that reads a dataset, filters rows, creates a new variable, and makes a simple plot in R."</div>
</div>
</div>
<div class="content-card">
<h3>Recommended resources</h3>
<div class="resource-list">
<a class="resource-card" href="https://gsk-biostatistics.github.io/intro_to_r_and_the_tidyverse_training/" target="_blank" rel="noopener">
<strong>GSK: Intro to R and the tidyverse</strong>
<span>Practical, structured material for getting comfortable with modern R syntax.</span>
<em>gsk-biostatistics.github.io</em>
</a>
<a class="resource-card" href="https://r4ds.hadley.nz/" target="_blank" rel="noopener">
<strong>R for Data Science</strong>
<span>Use selected sections, not necessarily front-to-back, to recognise common tidyverse patterns.</span>
<em>r4ds.hadley.nz</em>
</a>
<a class="resource-card" href="https://www.youtube.com/watch?v=yZ0bV2Afkjc" target="_blank" rel="noopener">
<strong>Introductory video walkthrough</strong>
<span>A lightweight way to re-familiarise yourself with what R code looks like in practice.</span>
<em>youtube.com</em>
</a>
</div>
</div>
</div>
<div class="panel-foot">If someone can look at a short tidyverse script and roughly follow its shape, this stage has done its job.</div>
</div>
<div class="panel" id="panel-ai">
<div class="panel-head">
<div>
<span class="pill pill-coral">Stage 3</span>
<h2>Learn through work that actually matters to you</h2>
</div>
<button class="close-btn" onclick="showStage('orientation')">Back to start</button>
</div>
<p class="panel-intro">
The best way to keep progressing is to choose an analysis, output, or area you are genuinely likely to work on, then use AI to turn that into a learning loop.
</p>
<div class="panel-rule"></div>
<div class="panel-grid">
<div class="content-card">
<h3>Goal</h3>
<p>Create a workflow that turns a relevant project into one connected cycle of planning, coding, debugging, and explanation.</p>
</div>
<div class="content-card">
<h3>What to do</h3>
<ul>
<li>Choose something you genuinely care about learning, such as meta-analysis, dashboards, survival analysis, repeated measures work, plotting, reporting, or reproducible pipelines.</li>
<li>Write the project or analysis plan in plain English first.</li>
<li>Ask AI to generate a first draft of the R code.</li>
<li>Run it, inspect the output, then debug with AI when needed.</li>
<li>Ask AI to explain the final script and tell you what R concepts you learned through the project.</li>
</ul>
</div>
<div class="content-card">
<h3>Ask AI this</h3>
<div class="prompt-list">
<div class="prompt">"I am likely to need to do meta-analysis in my role. Help me learn how to approach that in R step by step."</div>
<div class="prompt">"I am interested in dashboards rather than modelling right now. What is a good beginner-friendly R project path for that?"</div>
<div class="prompt">"Here is the analysis I need to do. Turn this English plan into tidyverse R code."</div>
<div class="prompt">"Here is my current script and output. What should I check next?"</div>
<div class="prompt">"Now that this works, explain the final code and point out the R ideas I should remember from this project."</div>
</div>
</div>
<div class="content-card">
<h3>Why this works</h3>
<p>People learn faster when the work feels relevant. If meta-analysis is something you are likely to do, learn that in R. If dashboards, plots, reporting, or survival work matter more, start there instead.</p>
</div>
</div>
<div class="panel-foot">The long-term aim is not dependence on AI. It is faster understanding, cleaner iteration, and better transfer from one real project to the next.</div>
</div>
<div class="panel" id="panel-code">
<div class="panel-head">
<div>
<span class="pill pill-green">Stage 4</span>
<h2>Learn from the real code your team already uses</h2>
</div>
<button class="close-btn" onclick="showStage('orientation')">Back to start</button>
</div>
<p class="panel-intro">
The most relevant R education often comes from the scripts, packages, and conventions already present in your team, especially when they point toward the kinds of analyses or outputs you are likely to work on yourself.
</p>
<div class="panel-rule"></div>
<div class="panel-grid">
<div class="content-card">
<h3>Goal</h3>
<p>Understand the actual style of R code used around you, and notice which analyses, reports, or tools feel most relevant to your own work.</p>
</div>
<div class="content-card">
<h3>What to do</h3>
<ul>
<li>Take short sections of shared scripts and study them with AI.</li>
<li>Notice the packages, naming patterns, and data-flow style your team prefers.</li>
<li>Pay attention to the types of work the code supports, such as meta-analysis, visualisation, dashboards, reporting workflows, or survival analysis.</li>
<li>Ask for beginner-friendly rewrites when a script feels too dense.</li>
</ul>
</div>
<div class="content-card">
<h3>Ask AI this</h3>
<div class="prompt-list">
<div class="prompt">"Explain what this code is doing and tell me which R concepts I need to understand first."</div>
<div class="prompt">"What packages are being used here and why would a clinical-trial team choose them?"</div>
<div class="prompt">"Looking at this script, what kind of analysis or project is this closest to, and would it be a good learning project for me?"</div>
<div class="prompt">"Rewrite this in a more beginner-friendly way but keep the same analytical result."</div>
</div>
</div>
<div class="content-card">
<h3>Recommended resources</h3>
<div class="resource-list">
<a class="resource-card" href="https://posit.cloud/learn/recipes" target="_blank" rel="noopener">
<strong>Posit Recipes</strong>
<span>Bite-sized worked examples that pair well with reading and adapting real scripts.</span>
<em>posit.cloud/learn/recipes</em>
</a>
<a class="resource-card" href="https://posit.co/resources/cheatsheets/" target="_blank" rel="noopener">
<strong>Posit cheat sheets</strong>
<span>Useful when you are reading team code and need a quick reminder of syntax or function patterns.</span>
<em>posit.co/resources/cheatsheets</em>
</a>
</div>
</div>
</div>
<div class="panel-foot">This is often where R starts to feel real: the learner can connect tutorial ideas to the scripts, analyses, and outputs their team actually cares about, then choose one of those areas as the next place to learn more deeply.</div>
</div>
<div class="panel" id="panel-workflow">
<div class="panel-head">
<div>
<span class="pill pill-amber">Stage 5</span>
<h2>Use AI as a translator, not just a search engine</h2>
</div>
<button class="close-btn" onclick="showStage('orientation')">Back to start</button>
</div>
<p class="panel-intro">
AI is most useful when you ask it to bridge from what you already know into R code, explanation, and debugging help.
</p>
<div class="panel-rule"></div>
<div class="panel-grid">
<div class="content-card">
<h3>Goal</h3>
<p>Learn in context by translating familiar analytical tasks into R instead of trying to memorise syntax in isolation.</p>
</div>
<div class="content-card">
<h3>What to do</h3>
<ul>
<li>Describe the task the way you would describe it in SAS, or plain English.</li>
<li>Ask AI to explain code line by line, not only to generate code.</li>
<li>When you hit an error, paste the code and error together and ask for diagnosis.</li>
</ul>
</div>
<div class="content-card">
<h3>Ask AI this</h3>
<div class="prompt-list">
<div class="prompt">"I would do this in SAS. How do I do it in R using tidyverse code?"</div>
<div class="prompt">"Explain this R code line by line as if I am an analyst new to R."</div>
<div class="prompt">"I ran this code and got this error. Tell me what the error means, what probably caused it, and how to fix it."</div>
<div class="prompt">"Rewrite this R code in a more beginner-friendly way and explain the packages being used."</div>
</div>
</div>
<div class="content-card">
<h3>Recommended resources</h3>
<ul>
<li>Save good prompts that worked well for translation, explanation, and debugging.</li>
<li>Keep asking AI to rewrite dense code in a simpler style until the structure feels familiar.</li>
<li>Use this stage alongside real datasets and real scripts, not only toy examples.</li>
</ul>
</div>
</div>
<div class="panel-foot">This stage is where learning speed usually jumps. AI lets people learn from real work instead of waiting until they feel fully trained.</div>
</div>
</div>
</section>
</div>
<script>
const stages = ['orientation', 'syntax', 'ai', 'code', 'workflow'];
function showStage(id) {
stages.forEach(stage => {
document.getElementById('panel-' + stage).classList.remove('active');
document.getElementById('btn-' + stage).classList.remove('active');
});
document.getElementById('panel-' + id).classList.add('active');
document.getElementById('btn-' + id).classList.add('active');
}
</script>
```