Skip to main content
4 votes
4 answers
296 views

When printing a tibble, how do I print the cells with nested data types (in list columns)? Let's have a look at two examples: 1. call data type b <- tibble(a = 1, prior = list(call("rnorm"...
Tomas's user avatar
  • 60.2k
-1 votes
1 answer
132 views

After something like: library(tidyverse) df <- tibble(a=c(1,2,3), b=c(4,5,6)) tbl <- df %>% flextable::flextable() Is there a way to get back df from tbl?
robertspierre's user avatar
1 vote
2 answers
133 views

After reading in my data using read_csv() from readr, the command spec() returns "full column specification" for the resulting tibble: > spec(steps) cols( duration = col_double(), ...
Ben's user avatar
  • 821
1 vote
0 answers
172 views

I'm working with a variety of data frames across multiple projects. For better readability and a concise overview in the console, I prefer the tibble format, which shows only the first few rows along ...
TarJae's user avatar
  • 80.2k
1 vote
1 answer
43 views

I have ran into a problem with using ggpubr::stat_pvalue_manual with a ggplot2 violin plot that has a fill aspect. There is either an issue of the fill aspect group not being found as an object or the ...
bribina's user avatar
  • 89
2 votes
2 answers
85 views

I want to merge multiple (>2) time series into a single object. For example, here are multiple time series (w missing data, incomplete, and irregular): library(tidyverse) library(zoo) set.seed(123)...
Peter Nelson's user avatar
3 votes
5 answers
189 views

Consider the following code: > df <- tibble(gender=c(1,1,0)) > df$male Warning: Unknown or uninitialised column: `male`. NULL How can I convert this specific warning type into an error? I ...
robertspierre's user avatar
1 vote
2 answers
58 views

I have this huge file (> 25 Mb) of the following structure: ITEM: TIMESTEP 0 ITEM: NUMBER OF ATOMS 14748 ITEM: BOX BOUNDS ss ss ss -1.3314357502021994e+02 1.1517122459132779e+02 -1....
mce1's user avatar
  • 25
0 votes
1 answer
80 views

I have tibble (data frame) in R called table_factors that at the end will be a flextable. I want to conditionally color the columns Results based on multiple and complex condition. For example the ...
Homer Jay Simpson's user avatar
0 votes
1 answer
131 views

I have a tibble in R that has text (string) in the 3rd column that its cells has character and number.I want the number only to be colored but the text to remain black. Is that possible to do that in ...
Homer Jay Simpson's user avatar
1 vote
0 answers
68 views

I have an Excel spreadsheet called "my_data". I can recreate the spreadsheet in R as follows: library(tibble); library(readxl) tibble(x = c(1L, 2L, 3L), y = c("A", "B", &...
luciano's user avatar
  • 14k
0 votes
0 answers
38 views

The sjmisc package provides summary stats. I need it to a column for each summary statistic to a tibble. But instead it does something strange and adds a single column and seemingly sub-columns within ...
luciano's user avatar
  • 14k
3 votes
0 answers
44 views

I'm working with IPUMS microdata that looks like the sample below. For every March case, I have one from the ASEC survey (ASECFLAG == 1) and one from the basic CPS survey (ASECFLAG == 2). Each unique ...
user24690595's user avatar
-1 votes
1 answer
64 views

I have a tibble containing 24 columns, each with 107 observations. Each column is a variable describing the bone specimen in a CT image, and all values within the columns are type "double." ...
Nathan_of_Bothell's user avatar
3 votes
1 answer
65 views

I am trying to implement a subclass of a tibble which comes with a custom printing method. I figured that dplyr::group_by silently drops my custom class with the effect that my S3 printing methods are ...
thothal's user avatar
  • 20.7k

15 30 50 per page
1
2 3 4 5
93