Tidy up some parts of r.snippets
This commit is contained in:
parent
55887f0db4
commit
bd8ef3d110
@ -36,7 +36,7 @@ endsnippet
|
|||||||
|
|
||||||
# functions
|
# functions
|
||||||
snippet fun "Function definition"
|
snippet fun "Function definition"
|
||||||
${1:name} = function (${2:variables}) {
|
${1:name} <- function (${2:variables}) {
|
||||||
${0}
|
${0}
|
||||||
}
|
}
|
||||||
endsnippet
|
endsnippet
|
||||||
@ -88,8 +88,8 @@ tapply(${1:vector}, ${2:index}, ${0:function})
|
|||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet rapply "rapply function"
|
snippet rapply "rapply function"
|
||||||
rapply(${1:list}, ${0:function})
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
rapply(${1:list}, ${0:function})
|
||||||
|
|
||||||
# plot functions
|
# plot functions
|
||||||
snippet pl "Plot function"
|
snippet pl "Plot function"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user