summaryrefslogtreecommitdiff
path: root/luasnip_snippets/r.json
blob: 95140785495de67e01db7956879164de92f087d0 (plain)
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
{
  "#!": {
    "prefix": "#!",
    "description": "#!/usr/bin/env Rscript",
    "body": [
      "#!/usr/bin/env Rscript",
      "$0"
    ],
    "luasnip": {
      "priority": -20
    }
  },
  "df": {
    "prefix": "df",
    "description": "Data frame",
    "body": "${1:name}[${2:rows}, ${0:cols}]"
  },
  "fis": {
    "prefix": "fis",
    "description": "Fisher test",
    "body": "fisher.test(${1:x}, ${0:y})"
  },
  "chi": {
    "prefix": "chi",
    "description": "Chi Squared test",
    "body": "chisq.test(${1:x}, ${0:y})"
  },
  "tt": {
    "prefix": "tt",
    "description": "t-test",
    "body": "t.test(${1:x}, ${0:y})"
  },
  "wil": {
    "prefix": "wil",
    "description": "Wilcox test",
    "body": "wilcox.test(${1:x}, ${0:y})"
  },
  "cor": {
    "prefix": "cor",
    "description": "Correlation test",
    "body": "cor.test(${1:x}, ${0:y})"
  },
  "fte": {
    "prefix": "fte",
    "description": "FTE test",
    "body": "var.test(${1:x}, ${0:y})"
  },
  "kvt": {
    "prefix": "kvt",
    "description": "KV test",
    "body": "kv.test(${1:x}, ${0:y})"
  },
  "vec": {
    "prefix": "vec",
    "body": "${1:var} <- c(\"${0:\\${VISUAL:/ /\",\"/g\\}}\")"
  }
}