Learn R Programming

taxotools (version 0.0.139)

melt_cs_field: Generate a list melting character (comma) separated field values into multiple records

Description

Builds a list, melting character (comma) separated field values given a data frame with a field with repeating values

Usage

melt_cs_field(data, melt, sepchar = ",", verbose = FALSE)

Value

a data frame with separate records for each value in field specified

Arguments

data

data frame containing a data columns with character(comma) separated values

melt

Field name with character(comma) separated values

sepchar

Character separator between the data items. Default is comma

verbose

verbose output, Default: FALSE

See Also

Other List functions: DwC2taxo(), cast_cs_field(), compact_ids(), get_synonyms(), match_lists(), merge_lists(), syn2taxo(), synonymize_subspecies(), taxo2DwC(), taxo2doc(), taxo2syn(), wiki2taxo()

Examples

Run this code
# \donttest{
  scnames <- c("Abrothrix longipilis", "Abrothrix jelskii")
  syn_list <- list_itis_syn(scnames)
  cs_syn_list <- cast_cs_field(syn_list ,"Name","Syn")
  syn_list_new <- melt_cs_field(cs_syn_list,"Syn")
# }

Run the code above in your browser using DataLab