Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
49 views

How to split data to make it another column

I am working on a voting data and trying to show most voted two parties. Problem is I want them in columns as, "first_party", "first_votes", "second_party", "...
pimaniye41's user avatar
1 vote
2 answers
76 views

Transforming a `data.frame` using a character variable containing a string of data

I have a data.frame that contains a character variable, which has a string of additional metadata (sort of a key-value format) that I'd like to have as variables in a data.frame; the metadata variable ...
daRknight's user avatar
  • 243
0 votes
3 answers
136 views

Separate column by string patterns

I have the following example: structure(list(value = c("./LRoot_1/LClass_copepodo", "./LRoot_1/LClass_shadow", "./LRoot_2/LClass_bolha", "./LRoot_2/LClass_cladocera&...
Wilson Souza's user avatar
1 vote
3 answers
418 views

Replace NULL value in nested tibble / dataframe

I have this tibble of tibbles: a = tibble(a = c(1:3)) df <- tibble::tibble(a1 = list(a,a), a2 = list(NULL,a)) # A tibble: 2 x 2 a1 a2 <list> <...
Maël's user avatar
  • 51.7k
4 votes
2 answers
841 views

Using tidyverse to "unnest" a data.frame column inside a tibble

I'm working with some data which is returned from a www call which jsonlite and as_tibble somehow convert into a data.frame column. This result data has an Id integer column and an ActionCode data....
Stuart's user avatar
  • 66.9k
2 votes
3 answers
355 views

How to identify columns by pattern and convert it to datetime using R?

I have a data frame called data like as shown below structure(list(NRIC_ID = c(1234L, 4567L, 1234L, 3578L, 2468L), ADMIT_DATE = structure(c(2L, 3L, 4L, 5L, 1L), .Label = c("11/11/2011",...
The Great's user avatar
  • 7,673
0 votes
2 answers
263 views

Selecting some columns and assigning properties to columns in a data frame

In my mind, when I deal with a data frame, I like to consider that I may have subgroups of rows and subgroups of columns that I may want to distinguish or to refer to later in my analysis —for ...
Vicent's user avatar
  • 313
1 vote
1 answer
381 views

Unpacking a list-column of multi-row tibbles while preserving the number of rows

I have a tibble in which one column is a list of tibbles. Some tibbles in this list have more than one row. Here is a minimal example: library(tibble) tmp <- tribble( ~x, ~y, 1, tibble(a=1, ...
user697473's user avatar
  • 2,293
1 vote
1 answer
67 views

Split list column into multiple integer columns on R dataframe

I have an R dataframe with 2 columns: ID of the transaction, and a list of products associated I need a dataset that have the same number of rows (a row per transaction), a number of columns equal to ...
Motmot's user avatar
  • 15
7 votes
2 answers
17k views

From tibble to txt or excel file in R

Hi all: I am working with tibbles to summarise my data and now I have a problem. I need to send the data I have in a tibble to a partner in an excel or csv file format. The thing is that it requires ...
Daniel Aviles's user avatar