Most voted "tidyr" questions
Tidyverse package that helps to create Tidy data. Tidy data are those in which each column of the data frame is a variable, each row is a subject and each cell is an observed value.
Learn more…5 questions
Sort by count of
-
3
votes1
answer45
viewsAutomatically creating new variables through interaction between two pre-existing variables
Suppose I own the following set of dados: dados #> letras numeros cores valor #> 1 a 1 branco 2 #> 2 a 1 preto 1 #> 3 a 2 branco 9 #> 4 a 2 preto 4 #> 5 a 3 branco 8 #> 6 a 3…
-
2
votes1
answer18
viewsExpand / insert new rows into a data frame based on the value of a discrete variable
I have a data frame with summarized data volumes of a certain product configuration. I need to expand the lines according to the "volume" variable of each summarized line. I tried using add_row()…
-
1
votes1
answer23
viewsR language - Column separation
I have the two columns below and I need to separate them so that the digits are in other columns. The idea is to have at the end 4 columns with names of teams and score. Two columns of df2 type…
-
0
votes2
answers40
viewsI want to group 3 columns into one, separated by a comma in the R
My dataset is like this: x y z A 1.1 1.2 1.3 B 2.1 2.2 2.3 Using R, I want to group the 3 columns into one, separated by a comma. I want you to stay like this: x A 1.1, 1.2, 1.3 B 2.1, 2.2, 2.3 Dice…
-
0
votes1
answer33
viewsPlot multiple columns at the same time
I need to plot all columns of a table relative to a specific column. Dataset: df <- read.table( text = "c1 c2 c3 x 2 4 5 0 3 5 2 0 6 7 8 0 1 2 5 1 2 5 6 1 3 3 3 1", header = TRUE) I need to plot…