Skip to main content
1 vote
3 answers
127 views

This is a followup question based on one of my previous questions Transform dataframe to long format based on text . There is also another question that is similar Transforming multible columns from ...
Ekd's user avatar
  • 33
0 votes
1 answer
134 views

I have a data frame which I need to put into long format. Here is a simplified version of my data frame: df <- data.frame("UserID" = c(1:3), "ProdID" = c(1, 1, 2), "...
Dee G's user avatar
  • 166
1 vote
2 answers
112 views

I have a Pandas dataframe that records the performance of students in exams in different classes and it looks like: Class_ID Class_size Student_Number IQ Hours Score Place 1 3 ...
Ishigami's user avatar
  • 592
0 votes
2 answers
219 views

data <- data.frame( T2_husband = rnorm(5), T2_wife = rnorm(5), T1_husband = rnorm(5), T1_wife = rnorm(5), Dyad_ID = 1:5 ) I have 5 columns in the dataset. However, I want to make dataset ...
Tube's user avatar
  • 195
0 votes
1 answer
82 views

this is a followup question from my previous post. My dataframe arranges visit for a specific PK based on dates, with a columns for: visit number visit date exam done in that visit I am trying to ...
Gal Or's user avatar
  • 1
0 votes
2 answers
86 views

I have a rather large dataset with both long and short data inside: some columns have unique value given a subject and a visit, while other have multiple values. The short data is duplicated to match ...
Dan Chaltiel's user avatar
  • 8,617
0 votes
1 answer
70 views

original wide data frame mean_SRBD: I have a data frame (mean_SRBD). The measurement moments (day 1, day 2, day 3) are included in the suffix of the variables (-D1 = day 1, -D2 = day 2). I want to go ...
Herrewegh's user avatar
2 votes
3 answers
136 views

Here's an example of what I am trying to do. I am starting with a dataframe in "wide" format, like below. #sample dataframe id_1 <- c(260, 500, 640, 720) id_2 <- c(261, 501, 641, 721) ...
wooden05's user avatar
  • 195
0 votes
1 answer
64 views

I am working with long format dataframes and intend to write a package myself. While it is not crucial, I would like to adhere to common practice of column hierarchy, e.g. when I have 3 participants ...
Felix Schweigkofler's user avatar
-1 votes
1 answer
54 views

I am conducting a cross-sectional online study about 54 illnesses, and have 10 variables/columns for participants' background information, then participants were randomly assigned to a set of 9 ...
Lea's user avatar
  • 1
0 votes
0 answers
20 views

I have the following data structure in R DE_GDP DE_INFL US_GDP US_INFL 1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 ...
Rkid's user avatar
  • 33
2 votes
2 answers
69 views

I found this case and this other but they don't quite answer my problem. Input data are in wide format: dat0 # A tibble: 5 × 6 id gp a1 a2 a3 a4 <dbl> <chr&...
denis's user avatar
  • 1,248
0 votes
0 answers
34 views

I have an Excel Long format with the same ID over several days. Participants answered different types of questionnaires and times were recorded. I want to calculate the difference between two types of ...
Rebecca Shane's user avatar
1 vote
2 answers
51 views

I want to reshape from long to wide the following data base df_long <- data.frame( indiv_id = c(rep(1,2), rep(2,6), rep(3,4)), value = c(sample(x = 2), sample(x = 6), sample(x = 4)), field_id ...
Jamman's user avatar
  • 11
0 votes
1 answer
153 views

I have extremely little experience with factor analysis so my question may beyond rudimentary/remedial. My question is about data formatting. I have this dataset (well, this is just the first two of ...
JeniFav's user avatar
  • 117

15 30 50 per page
1
2 3 4 5