Questions tagged as 'data.frame'

1
answer

Minimum value of a line excluding zero values (R)

TIMP3 TOTS3 UGPA3 USIM5 VALE3 VALE5 VIVT4 VLID3 WEGE3 1 0.7941716 0 0.00915221 0.2751215 0.3803796 0.5162442 1.505921 0 0.5559166 2 0.7710909 0 0.09351134 0.3925726 0.3687917 0.5158750 1.469548 0 0.53...
asked by 20.05.2014 / 22:26
3
answers

How to merge multiple frames into one

I want to create a data frame as a join of 4 other data frames. I was able to do this using these commands: ZHO<-as.data.frame.matrix(zho) ZHO ZES<-as.data.frame.matrix(zes) ZES ZRE<-as.data.frame.matrix(zre) ZRE POP<-as.data.frame...
asked by 28.05.2014 / 02:18
1
answer

Error in plot.window (...): need finite 'ylim' values

I have a continuous variable whose n=15000 remarks and displays 451 NA's. When running qqnorm to evaluate the normality, I verified that it does not present normality and so I applied a logarithmic transformation. However, when run...
asked by 07.09.2017 / 14:06
2
answers

Execute command for each column of a data.frame

Hello, I have a data.frame (df) 8 rows x 8 columns. I'm calling the columns of "ST [i]". df <- structure(list(ST1 = c(58.69, 58.5, 58.5, 58.69, 58.69, 58.5, 58.69, 58.69), ST2 = c(68.7, 68.42, 68.42, 68.7, 68.7, 68.42, 68.7, 68.7), ST3...
asked by 07.11.2017 / 15:23
3
answers

How to include columns in a data.frame?

Consider the following data.frame : df <- data.frame(x=c("a","b"), y=c(1,2)) How to include a new column, say z = c(1,2) ?     
asked by 14.09.2014 / 17:02
3
answers

Split a date frame and save to separate directories

I have a data frame composed of 100 rows and two columns (name and quantity). The quantity column is an integer ranging from 1 to 4. How can I split my original date frame into four date frames following column 2 (quantity)? In other words, I...
asked by 07.07.2017 / 21:36
2
answers

How to create a vector with repeating dates?

I need to create a vector with sequential dates between 01/01/2013 and 05/31/2018, but with repetitions, as shown below, associated with time. 01/01/2013 0:00 01/01/2013 1:00 01/01/2013 4:00 01/01/2013 8:00 01/01/2013 12:00 01/01/2013...
asked by 09.05.2018 / 15:21
2
answers

How to include rows in a data.frame?

Consider the following data.frame : df <- data.frame(x=c("a","b"), y=c(1,2)) How to include a new line with x="c" and y = 3 in data.frame ?     
asked by 14.09.2014 / 14:47
1
answer

Create a blank data.frame to receive results?

Suppose you want to create a blank data frame to receive the results of an adhesion test. x<-data.frame(Distribuicao=c(NULL),p-value=c(NULL)) After the test, you have a vector with the results: res.ad<-c("Gumbel", 0.9105) To incl...
asked by 01.12.2015 / 16:32
2
answers

r - sum of one variable in relation to the values of another variable in a data frame

I have a multi-column dataframe. How do I add the values of a column within an element of another variable? I want to do this to summarize the data of each species within each campaign. I have already tried using the summarize function of the pl...
asked by 11.07.2018 / 02:47