Questions tagged as 'data.frame'

1
answer

retrieve rows from a data frame

I need to retrieve the entire DF line, in a new DF, only when I find the element of the vector, in the DF id field ids 2001586 , 2007037,2012677,2020645) df
asked by 27.03.2017 / 20:27
1
answer

Convert data.frame object into numeric

I have a data.frame file and need to convert to numeric values to do column summation. I used the "dicpes < -as.numeric (dicpes)" code to try to convert and the following message appeared: "Error: (list) object can not be coerced to type 'dou...
asked by 02.03.2016 / 03:55
2
answers

Calculating a specific value in a dataframe?

Possessing this dataset: Índice Produto Classificação Comum Quilo 1 2 ABACAXI HAVAI A GRAUDO 3,32 2,2 2 3 ABACAXI HAVAI B MEDIO 2,81 1,8 3 4 ABACAXI HAVAI...
asked by 09.03.2017 / 20:59
2
answers

Look up values in one data.frame and add in another (R)

I have 2 data.frames, the first is a data.frame that contains stock data and a column with a unique identifier (column "ISIN") , as shown below: > Teste=data.frame(matrix(runif(20), nrow=5, ncol=4)) Teste$ISIN <- c("A1","A2","A3","A4","A5"...
asked by 19.04.2016 / 21:30