Values in `value` are not uniquely identified; output will contain list-cols.
* Use `values_fn = list(value = list)` to suppress this warning.
* Use `values_fn = list(value = length)` to identify where the duplicates arise
* Use `values_fn = list(value = summary_fun)` to summarise duplicates
How can I see each value for each parameter in column?
Entries like ""DryT""=>""1"", are going to be difficult to parse. You mentioned json field. Does the data come from a json file originally, and then converted to csv? If so, a package designed to read json, such as rjson will avoid the problem.
Yes it was a json file riginally, then converted to csv.
How can rjson help me?
I think the code I wrote it's correct, because ""DryT""=>""1"" is parsed correctly, but I cannot see values inside of each column. For example I obtain:
DryT
instead of 1.
The code shows me an error:
Values in value are not uniquely identified; output will contain list-cols.
Use values_fn = list(value = list) to suppress this warning.
Use values_fn = list(value = length) to identify where the duplicates arise
Use values_fn = list(value = summary_fun) to summarise duplicates
This is the same code you've provided, minus id_cols = .
The more explicit id_cols = c(user, status_id, machine_id) would work as well.
See the documentation of help("pivot_wider"):
id_cols
A set of columns that uniquely identifies each observation. Defaults to all columns in data except for the columns specified in names_from and values_from. Typically used when you have additional variables that is directly related.