Questions tagged as 'r'

2
answers

Reversing order column data.frame

I have this date frame: > head(df1) data spread 1 2006-01-01 -3.0404577 2 2006-02-01 -3.3902628 3 2006-03-01 -2.5283960 4 2006-04-01 -1.5279234 5 2006-05-01 -0.0897918 6 2006-06-01 1.0286549 > tail(df1)...
asked by 14.10.2015 / 22:59
1
answer

Update XLS worksheet without overwriting data using R

I need to add new information to the xls worksheet, but it already has information that was previously entered. I need this data to be on the same sheet. Is it possible to update a spreadsheet without overwriting data that already exists?...
asked by 23.09.2015 / 03:55
1
answer

How to import data from the clibboard to a data-frame in R

One of the advantages of using spreadsheet is that we can import data from the clipboard. Is there any way to do this in R?     
asked by 14.09.2014 / 17:17
1
answer

Barplot (bar graph) of numeric variable versus categorical in R

How to plot a bar chart in R where in eixo x I have a categorical variable (with 4 categories: frequent, sometimes rare, never) and eixo y the average of a numeric variable (Y = 0 : 13)? How do I insert the caption above the bars?...
asked by 18.01.2017 / 01:55
1
answer

Date formatting for Gtrends (gtrendsR package)

How do I resolve this formatting error in the gtrendsR package (actually how do I check the current native formatting and adjust it)? Error in as.POSIXlt.character(x, tz, ...) : character string is not in a standard unambiguous format...
asked by 22.01.2017 / 01:27
1
answer

Filling in data.frame from another data.frame

I have two data.frames: "a" and "df" a <- data.frame(x=seq(13,37,1),rep(c(1,2,3,4,5),each=5),seq(21,105,21)) colnames(a)<-c("values","date","term") b<-data.frame(x,21,42,63,84,105) colnames(b)<-c("date","term21","term42","term63",...
asked by 27.01.2016 / 19:14
1
answer

How do I make smaller tables from a data.frame in R?

I have a table in the data frame, with 100 animals, but with 500 observations of various characteristics. as I do to have subtables, with only the animals and the characteristic x, being q he should show tds the 500 observations of this characte...
asked by 21.01.2016 / 14:45
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
2
answers

How to extract a specific excerpt from a string

Let's get this extracted URL /ac/rio-branco/xpto-xyz-1-0-16-5-abcd-a1G57000003DE4QEAW And I want only the snippet that begins with a1G , does anyone know how I can only get this snippet?     
asked by 26.02.2016 / 21:14