# Small issue in today's code

**URL:** https://isgw-forum.colorado.edu/t/small-issue-in-todays-code/355
**Category:** Day 7
**Created:** [June 15, 2022, 7:10pm UTC](https://isgw-forum.colorado.edu/t/small-issue-in-todays-code/355 "2022-06-15T19:10:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ldearaujo](https://isgw-forum.colorado.edu/letter_avatar_proxy/v4/letter/l/59ef9b/32.png) [@ldearaujo](https://isgw-forum.colorado.edu/u/ldearaujo)
#### Post date: [June 15, 2022, 7:10pm UTC](https://isgw-forum.colorado.edu/t/small-issue-in-todays-code/355/1 "2022-06-15T19:10:53Z")

</div>

In the file 2022day7.txt, the line:

```auto
res$pval<-(1-pt(q=tStat, df = 1887, lower.tail = T))*2 

```

should actually read:

```auto
res$pval<-(1-pt(q=res$tStat, df = 1887, lower.tail = T))*2 

```

It wouldn’t run without the res$ in the version I copied to my home dir.

---

<div class="post-metadata">

### Author: ![sarah.medland](https://isgw-forum.colorado.edu/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sarah.medland](https://isgw-forum.colorado.edu/u/sarah.medland)
#### Post date: [June 17, 2022, 12:42am UTC](https://isgw-forum.colorado.edu/t/small-issue-in-todays-code/355/2 "2022-06-17T00:42:10Z")

</div>

sorry about that - I did find that and fix it in the qualtrics but I missed this  
thanks for posting the correction!  
-Sarah
