Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 445

Transform the value of column to number of rows [duplicate]

$
0
0

I m new in R.I want to transform the column value to number of rows.

data:

Month         NumberMarch         1February      2February      2

The output i want is :

Month         NumberMarch         1February      1February      1February      1February      1

I try this code but he give me this

data %>%    ungroup %>%    uncount(Number)

Viewing all articles
Browse latest Browse all 445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>