Skip to content

Commit c5201bd

Browse files
AjaiKNdavidshepherd7
authored andcommitted
Add ^ exponentiation in R
Since ^ is exponentiation in R, which has a high precedence, it's not generally surrounded with spaces.
1 parent 9d5b08e commit c5201bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: electric-operator.el

+1
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,7 @@ Also handles C++ lambda capture by reference."
10321032
(cons "%*%" " %*% ") ; Matrix product
10331033
(cons "%o%" " %o% ") ; Outer product
10341034
(cons "%x%" " %x% ") ; Kronecker product
1035+
(cons "^" "^") ; Exponentiation (https://style.tidyverse.org/syntax.html#infix-operators)
10351036
(cons "%in%" " %in% ") ; Matching operator
10361037
(cons "~" " ~ ") ; "is modeled by"
10371038
(cons ":=" " := ")

0 commit comments

Comments
 (0)