how to pivot longer without adding a new column or modifying data ? the table has 182 columns !

Wide_data <- cbind(Wide_minutes_steps, Wide_minutes_intensities, Wide_minutes_calories)

Wide_data1 <- Wide_data [, !duplicated(colnames(Wide_data))]

  • how to pivot longer ? the table has 182 columns !

wide_data2 <- wide_data1 %>% pivot_longer()

I don’t really have enough info to help you out. Could I ask you to provide a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help. A reprex consists of the minimal code and data needed to recreate the issue/question you’re having. You can find instructions how to build and share one here:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.