Learn R Programming

emcAdr (version 1.2)

csv_to_population: Function used to convert your genetic algorithm results that are stored into a .csv file to a Data structure that can be used by the clustering algorithm

Description

Function used to convert your genetic algorithm results that are stored into a .csv file to a Data structure that can be used by the clustering algorithm

Usage

csv_to_population(ATC_name, filename, sep = ";")

Value

An R List that can be used by other algorithms (e.g. clustering algorithm)

Arguments

ATC_name

the ATC_name column of the ATC tree

filename

Name of the file where the results are located

sep

the separator to use when opening the csv file (';' by default)

Examples

Run this code
# \donttest{
  data("ATC_Tree_UpperBound_2024")
  genetic_results = csv_to_population(ATC_Tree_UpperBound_2024$Name,
                    "path/to/output.csv")
# }

Run the code above in your browser using DataLab