Questions tagged as 'r'

2
answers

Sort column of a date frame in R

I have a date frame with 89000 lines and in one of the columns the relationship with the employee appears. I need to split in 4 classes , namely: Class 1 - Conjugue / Children Class 2 - Mother / Father Class 3 - Brothers...
asked by 21.09.2017 / 14:37
1
answer

Compare rows in a column

I have a spreadsheet with about 15k lines, my problem is that in one of the most important columns for my analysis, the data is arranged in a very confusing way. The column is about the complaint that led to a lawsuit, for example: moral damages...
asked by 26.09.2017 / 20:10
1
answer

Import Excel Tables into R [duplicate]

I would like to know the best library for importing tables from excel to be manipulated in R. I would like one to support all extensions, especially .xlsm.     
asked by 11.07.2017 / 16:31
1
answer

Notification of a date for another R

DF = data idade dt nome 2 02-02-2016 Marq 8 05-05-2010 Andre 24 06-06-1994 Sudre 23 25-05-1995 Jaq This is my df, I need to show the person's name when she turns 24. For example, when it is 90 days befor...
asked by 24.09.2018 / 18:24
2
answers

Execute the tapply function for multiple variables in a dataframe (with pairwise.t.test)

I try to execute the tapply function for several variables at the same time, but with the use of the pairwise.t.test function. However, I do not succeed. So, I have to do this: pairwise.t.test(seguro1$tmp_habilit,seguro1$group...
asked by 24.09.2018 / 01:05
1
answer

Filter lines without knowing the name of the column in R

Hello, how can I select a line from a date frame that contains an expression but I do not know which column this expression will be in?     
asked by 17.09.2018 / 23:30
1
answer

Replace NA with data from another column

I would like to replace NA with the contents of another column. I have the following data: NOME TIPO VALOR ABC INTERNACAO 10 ADD 20 AFF CONSULTA 30 DDD EXAME 40 RTF 50 DRGG...
asked by 31.08.2018 / 14:00
2
answers

Convert all Environment files to '.Rda' and then load them at once with a loop

I want to convert ALL dataframes from my Environment to a file of type .Rda . My goal is, after this action, to restart R and load them all at once with a for loop.     
asked by 27.08.2018 / 21:51
1
answer

Lapply does not return the desired result for some functions

My list: structure(list(col1 = structure(list(a = 1:5, b = 1:5, c = 1:5), .Names = c("a", "b", "c"), row.names = c(NA, -5L), class = "data.frame"), col2 = structure(list( a = 6:10, c = 6:10), .Names = c("a", "c"), row.names = c(NA, -5L),...
asked by 09.09.2018 / 06:06
1
answer

How to delete repeated values in a text column in R?

I have a data.frame that has a column with names, but these names repeat a few times. I need to create a new column in a new data.frame with all names, but no repeats.     
asked by 01.06.2017 / 20:17