Skip to content

Commit f3751a0

Browse files
committed
Remove use of lambda functions.
1 parent e5ebbd6 commit f3751a0

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

R/two-sample-functional-test.R

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ two_sample_functional_test <- function(
9595
betti = {
9696
xfd <- do.call(
9797
rbind,
98-
args = lapply(x, \(el) {
98+
args = lapply(x, function(el) {
9999
TDAvec::computeBettiCurve(
100100
el,
101101
homDim = dimension,
@@ -105,7 +105,7 @@ two_sample_functional_test <- function(
105105
)
106106
yfd <- do.call(
107107
rbind,
108-
args = lapply(y, \(el) {
108+
args = lapply(y, function(el) {
109109
TDAvec::computeBettiCurve(
110110
el,
111111
homDim = dimension,
@@ -117,21 +117,21 @@ two_sample_functional_test <- function(
117117
euler = {
118118
xfd <- do.call(
119119
rbind,
120-
args = lapply(x, \(el) {
120+
args = lapply(x, function(el) {
121121
TDAvec::computeEulerCharacteristic(el, scaleSeq = scale_seq)
122122
})
123123
)
124124
yfd <- do.call(
125125
rbind,
126-
args = lapply(y, \(el) {
126+
args = lapply(y, function(el) {
127127
TDAvec::computeEulerCharacteristic(el, scaleSeq = scale_seq)
128128
})
129129
)
130130
},
131131
life = {
132132
xfd <- do.call(
133133
rbind,
134-
args = lapply(x, \(el) {
134+
args = lapply(x, function(el) {
135135
TDAvec::computeNormalizedLife(
136136
el,
137137
homDim = dimension,
@@ -141,7 +141,7 @@ two_sample_functional_test <- function(
141141
)
142142
yfd <- do.call(
143143
rbind,
144-
args = lapply(y, \(el) {
144+
args = lapply(y, function(el) {
145145
TDAvec::computeNormalizedLife(
146146
el,
147147
homDim = dimension,
@@ -153,7 +153,7 @@ two_sample_functional_test <- function(
153153
silhouette = {
154154
xfd <- do.call(
155155
rbind,
156-
args = lapply(x, \(el) {
156+
args = lapply(x, function(el) {
157157
TDAvec::computePersistenceSilhouette(
158158
el,
159159
homDim = dimension,
@@ -163,7 +163,7 @@ two_sample_functional_test <- function(
163163
)
164164
yfd <- do.call(
165165
rbind,
166-
args = lapply(y, \(el) {
166+
args = lapply(y, function(el) {
167167
TDAvec::computePersistenceSilhouette(
168168
el,
169169
homDim = dimension,
@@ -175,7 +175,7 @@ two_sample_functional_test <- function(
175175
entropy = {
176176
xfd <- do.call(
177177
rbind,
178-
args = lapply(x, \(el) {
178+
args = lapply(x, function(el) {
179179
TDAvec::computePersistentEntropy(
180180
el,
181181
homDim = dimension,
@@ -185,7 +185,7 @@ two_sample_functional_test <- function(
185185
)
186186
yfd <- do.call(
187187
rbind,
188-
args = lapply(y, \(el) {
188+
args = lapply(y, function(el) {
189189
TDAvec::computePersistentEntropy(
190190
el,
191191
homDim = dimension,

0 commit comments

Comments
 (0)