Questions tagged as 'data.frame'

1
answer

Convert numeric data into R

I imported a JSON table into the R and the dates are in Unix format. Example: data <- c(1436904192, 1490717463, 1491924165) How can I convert this entire column all at once to the date format with 14/7/15 20:03 ?     
asked by 01.05.2017 / 21:34
2
answers

How to delete a set of specific rows, listed in a vector, from a data frame in R?

Hello, I have a data.frame with thousands of rows and a vector with the rows I need this date.frame, how do I select only rows from the list in a separate object?     
asked by 05.11.2014 / 04:02
1
answer

How to loop to generate graphics in R?

Consider the following Data Frame: ITENS <-c("A","B","C","D","E") Q.1 <-c(10,20,10,40,10) Q.2 <-c(5,25,0,50,10) Q.3 <-c(15,20,5,40,10) Q.4 <-c(15,30,5,30,5) Q.5 <-c(20,25,5,20,15) Q.6 <-c(10,20,10,40,10) df <- data.fram...
asked by 10.05.2018 / 02:37
1
answer

Add two or more covariates in R

I have a database with multiple IDs (rows) and in the columns the covariates. These covariates are repeated in other columns with different information about the same ID. How to join these covariates using R in a single column and creating more...
asked by 27.03.2018 / 06:05
2
answers

gather multiple with 4 resulting columns "together"

Hi, I have the following situation: I have a data frame with several columns, a group of them I want to turn into key value. So far so good, but there are 2 groups and they can not kinda repeat themselves. Type, is a group of 3 and another...
asked by 14.07.2017 / 22:50
2
answers

ggplot data.frame

I have a data.frame (df): Mês SpreadMensal 1 jan2006 -3.04045769 2 fev2006 -3.39026284 3 mar2006 -2.52839603 4 abr2006 -1.52792341 5 mai2006 -0.08979180 6 jun2006 1.02865488 7 jul2006 0.54515613 8 ago2006 0.1...
asked by 13.10.2015 / 16:13
1
answer

How to remove specific rows from a data frame?

I need to generate a new table with only the hourly rounds. For example, from this table: Thesedatawouldbeleft: What is the best way to solve this problem in R?     
asked by 02.04.2015 / 13:34
1
answer

Automatically check quantitative variables in R

I have a database here and I need to automatically check which are quantitative variables. My advisor says that I need to use sapply and the is.numeric function and create a code that returns a vector of true and false indicating w...
asked by 27.11.2014 / 15:41
1
answer

Using function to make a subset and plot with only 1 command (R)

My dataFrame calls EWMA_SD252 3561 obs. of 102 variables (daily volatilities of 100 shares since 2000), follows a sample: Data IBOV ABEV3 AEDU3 ALLL3 3000 2012-02-09 16.88756 15.00696 33.46089 25.04788 3001 2012-02-...
asked by 22.05.2014 / 01:00
0
answers

Import from txt, change content and download content in R [closed]

Hi! I'm a beginner in R programming, I've read quite a lot of confusing with libraries and everything and I still do not know what their limitations are, so I ask you if it's possible with R to do the following:    I put in file * txt list...
asked by 11.12.2015 / 21:37