Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged data.table

0 votes
553 views
1 answer
    I'm very new to R, so please bear with me on this basic question. I have a dataset, DATA, that I created ... 002 .999 How can I accomplish this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
416 views
1 answer
    My problem is similar to this previous question Fastest way to add rows for missing values in a data.frame? I can' ... ) with no luck Thank you! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
490 views
1 answer
    DT - data.table with column "A"(column index==1), "B"(column index 2), "C" and etc for example next code makes ... - DT[.SD==2, .SDcols = 1] See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
458 views
1 answer
    Let's say that have a data.table with an id and integer values in four other columns. How can I ... by operation in the second solution. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
369 views
1 answer
    I want create a new colume to represent which date are in the same week. A data.table DATE_SET contains Date ... to pecify "a same week". See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
339 views
1 answer
    I would like to subset rows of my data library(data.table); set.seed(333); n <- 100 dat <- data.table(id= ... be just as welcome if not more so. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
638 views
1 answer
    This is piggy backing on a question I answered last night as I am reconsidering how I'd like to format my ... to using any function or package. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
483 views
1 answer
    I have a data.frame really big (actually a data.table). Now, to simplify things, let's assume my data.frame is ... c(length(x), length(y)))) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
478 views
1 answer
    I'd like to create a variable containing the value of a variable in the previous year within a group. id ... id date gen value_lagged=L.value See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
616 views
1 answer
    I have a data table containing 20000+ rows and one column. The string in each column has different number of ... efficient way to do this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
422 views
1 answer
    Suppose I have two data tables: X <- data.table(id = 1:5, L = letters[1:5]) id L 1: 1 a 2: 2 b 3: 3 c 4: 4 d ... c NA 10 4: 4 d g NA 5: 5 e h 12 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
324 views
1 answer
    Can I use sub-assign by reference on atomic vectors somehow? Of course without wrapping it in 1 column data. ... object still makes copy: gist. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
417 views
1 answer
    My question might sound stupid but I have noticed that . and % is often used in R and to be frank I ... follow this logic, which confuses me. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
404 views
1 answer
    I don't understand how I can filter based on multiple keys in data.table. Take the built-in mtcars dataset. ... what is the right approach here? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
336 views
1 answer
    I need to aggregate overlapping segments into a single segment ranging all connected segments. Note that a ... package GenomicRanges solution. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
385 views
1 answer
    I am currently using R 3.5 (beta version) and I need data.table package in my project but my package does not ... help me? What should I do? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
537 views
1 answer
    I'm trying to do a complexe non-equi join between two tables. I got inspired by a presentation in the last ... rows... Thanks for your help See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...