Questions tagged as 'r'

2
answers

Complete observations in a data frame

Suppose I have the following dataset: dados <- structure(list(Ano = c(2001L, 2001L, 2001L, 2002L, 2002L, 2002L, 2003L, 2003L, 2003L, 2004L, 2004L, 2004L, 2005L, 2005L, 2005L, 2005L), Categoria = structure(c(1L, 2L, 4L, 1L, 3L, 4L, 1L, 2L,...
asked by 05.09.2017 / 22:28
2
answers

Turn local into zip code

Does anyone know a script in the R, or could you help me put one together, that takes the name of a place and looks for the zip code of this?     
asked by 26.08.2014 / 17:25
1
answer

Split base with "for" in R

As my first for in R I found it difficult to apply this function. I have a base that has a base date with different years and I would like to split the base by base dates. The variable "date" has a split date from January 1995 (199501) until...
asked by 29.06.2017 / 22:53
2
answers

Deleting Double Rows from a Data.Frame

I have data.Frame with the following behavior: values ind 1 10.82000 2011-01-03 2 11.75000 2011-01-03 3 10.82000 2011-01-03 4 11.75000 2011-01-03 5 10.82000 2011-01-03 6 11.75000 2011-01-03 7 10.84048 2011-01-04 8 11...
asked by 12.10.2015 / 16:42
1
answer

How to read txt file with datasets composed of multiple dimensions?

I have a file with datasets composed of multiple dimensions in a single txt. For example, 2 3 #dimensao do primeiro dataset 1 2 3 4 5 6 4 4 #dimensao do segundo dataset 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 How to read this data and form...
asked by 03.11.2018 / 15:13
2
answers

Split Column into Other Two Lat Long

I have the following spreadsheets: BIRDS.GENERO SP1 SP2 XLOCAL Thamnomanes caesius glaucus 0°32'S52°12'W Thamnomanes ardesiacus obidensis 0°10'S51°50'W Tham...
asked by 28.11.2018 / 17:15
3
answers

Columns with different line numbers, how to join?

I have some time series (monthly) that end in different months, for example, some end in March 2017, others in April 2017 and some until May 2017, 228 2016-12-01 1.12 229 2017-01-01 1.09 230 2017-02-01 0.87 231 2017-03-01 1....
asked by 04.05.2017 / 20:58
1
answer

How to do the Dunnett test in R?

Assuming that I performed the ANOVA test on my data and gave significantly different, I would like to perform the Dunnett test precisely to compare my treatments with the control group. Should I use some specific package or in the default R's alr...
asked by 24.06.2018 / 16:28
2
answers

How can I transform a variable (0-10) into 3 categories?

The variable GLEASON of the database is 0 to 10. And I wanted to change this variable into 3 categories, for example: 0-4: not very aggressive, 5-7: aggressive intermediate and 8-10: very aggressive. In programming R. Thank you     
asked by 13.04.2017 / 10:03
2
answers

Overlay graphics in R with ggplot

Hello, consider two data frames: df = the number of students who answered items A, B, C, D and E of a 6-question test 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 &...
asked by 10.05.2018 / 16:01