I'm currently trying to create a data frame that I can write to a CSV, where one columns has several different element types. Here they are listed below:
"dv_select": chr
"remove_penalty": int
"alpha": num
"force_penalty": num
"pmax": int
"remove": list of chrs
"force": list of chrs
The names on the left represent one column, while the element types are what populate the adjacent column. "remove" and "force" can both range from 0 to a list of hundreds of strings. The data frame is able to successfully be created when remove and force contain either 0 or 1 string. However, either of them contains more than 1 string, I receive the following error:
Warning: Error in data.frame: arguments imply differing number of rows: 7, 2
I need the data in the correct format in order to read it back into my Shiny app, so any help would be greatly appreciated.
Thanks!