tibble could refer to an R class (tbl_df class), which is an improved data frame with stricter checking and better formatting. tibble could also refer to an R package providing functions to create and manipulate a tibble.
Questions tagged [tibble]
1309 questions
-2
votes
1 answer
rowSum problems in dplyr - 'x' must be numeric
I come across problems when trying to make rowSums in dplyr.
After grouping the data via
data <- data %>%
group_by(location, category) %>%
summarise(amount = sum(amount)) %>%
spread(key = "category", value = "amount", fill = 0)
The output…

Christopher
- 2,120
- 7
- 31
- 58
-3
votes
3 answers
Turn 2 short columns into 1 longer col
Please help and thanks. The solution should be automatic for 10k rows (20k nations with 10k each group)
Original table
|Group1|Group2|Population1|Pop2|
|--|--|--|--|
|"USA"| "ENG"| 1000| 502|
|"RUS"| "FRC"| 1200| 200|
|"UEC"| "IND"| 120| …

Will N
- 1
- 1
-3
votes
2 answers
R from long to wide dataframe with real valued columns
I have a quick question that relates to reshaping my data frame where I have ID "grouped_by" data.
I have the following schema of the df (+ 2 exemplary instances that I wish to widen (in total I have >5000)):
id solver scoreA …

gero
- 119
- 11
-3
votes
1 answer
Do things for all tibbles in environment
I have 110 tibbles in my environement. These tibbles are among other objects, but all tibbles have a common pattern. I know how to list them with ls(pattern = MyPattern).
Now i need to do some basic work on each tibble. I have no idea at all how to…

gabx
- 472
- 2
- 7
- 18