Skip to content

double conditions in source code not supported by R anymore? #58

@Taib98

Description

@Taib98

Hello,

While trying the toy dataset analysis based on the tutorial, I consistently got an error when trying to extract the mutual information and entropy information. There is apparently a double condition (i.e &&) that R signals as an error in the source code. Is there any way to fix this issue?

for (i in 1:length(s)){
  ent_mi_data <- calculate_entropy_and_mi(s[[i]], s[[i]]$treatment, mult_factor = 1.5, bin_size = 0.1)
  #calculate entropy and mutual  info in first andd second element based on treatment
  s[[i]]$mutual_inf <- ent_mi_data[["data_dists"]][['MI']]
  s[[i]]$entropy <- ent_mi_data[["data_dists"]][["ENT"]]
}
#gives error: Error in well_i != well_j && same_well_only == T : 'length = 2' in coercion to 'logical(1)'

Thanks a lot,
Kind regards,

T.I.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions