dataframe
How can i convert a factor column that contains decimal numbers to numeric?
I have a csv file and when i use this command SOLK<-read.table(\'Book1.csv\',header=TRUE,sep=\';\')[详细]
2023-04-02 03:05 分类:问答Compare one row to all other rows in a file using R
I have a file like below: P1 A,B,C P2 B,C,D,F P3 C,D,E,F and I need to compare each row to all other rows to get a count of intersecting elements like below:[详细]
2023-04-01 22:19 分类:问答Problem of data frame and replacement in a loop in R
I\'m using R on a dataset containing trips. Each line is a trip (from A to B). On each line, I know the identity of the individual (a number), the purpose of the trip (1,2,3 or 4), the time category ([详细]
2023-04-01 21:35 分类:问答Why can't I add numbers in a dataframe created with cbind?
I’m looking for advice on how to subtract values from each other listed in two data frames. In the example below with the two data frames A and B, I would like to subtract the values开发者_StackOverf[详细]
2023-04-01 16:06 分类:问答subset function with "different than"?
is it possible to use the subset function by saying sth like subset(dataset, IA_LABEL not equal to \"Er\" or \"Sie\" or \"Es\" or \"wird\" or\"gleich\") ?[详细]
2023-04-01 13:49 分类:问答R Filter and subset a dataframe
Please give me some 开发者_JAVA百科advice on the followings. There is a data frame with three columns, the first one is a datetime(precise to seconds), the second one is a person\'s name, and the thi[详细]
2023-04-01 12:02 分类:问答Replace all NA with FALSE in selected columns in R
I have a question similar to this one, but my dataset is a bit bigger: 50 columns with 开发者_运维百科1 column as UID and other columns carrying either TRUE or NA, I want to change all the NA to FALSE[详细]
2023-04-01 05:47 分类:问答Compare two data.frames to find the rows in data.frame 1 and data.frame 2 which have equal values in selected columns
I have 2 data frames (a1 and a2) a1 ABCD 1A68 2D73 #** 3X33 a2 ABCD 4D23 #** 5Z35 6X34 a1 <- data.frame( A = 1:3,[详细]
2023-04-01 04:13 分类:问答Creating a data frame in R from list data that is missing some values
I have a CSV with a long list of data that looks like this: Dateuser_idvalue 4/115 4/123 4/1310 4/211 4/237[详细]
2023-03-31 22:49 分类:问答Fastest way to replace NAs in a large data.table
I have a large data.table, with many missing values scattered throughout its ~200k rows and 200 columns.I would like to re code those NA values to zeros as efficiently as possible.[详细]
2023-03-31 19:22 分类:问答