Questions tagged as 'r'

1
answer

Bar graph with percentages - ggplot2

v1 = c("Sim","Não","Não","Não","Não","Sim","Sim","Sim","Sim","Sim") v2 = c("branco","branco","pardo","preto","pardo","pardo","preto","branco","preto","pardo") dados = data.frame(v1,v2) I want to build a bar chart with relative frequencies tota...
asked by 01.10.2017 / 16:23
2
answers

Indicator in R with more than one condition with duplicate values

Suppose there is a base with two variables as follows: Município IF RIOBOM Cooperativa RIOBOM Cooperativa ABADIA Múltiplo ABADIA Múltiplo ABADIA Cooperativa ABADIA Banco DOURADOS Banco DOURADOS Múltiplo DOURADOS Banco DOURADOS...
asked by 09.01.2018 / 17:17
1
answer

How to upload data to Chunk?

I'm venturing into Rmarkdown, I found it a very interesting tool. It happens that I'm in trouble, I think it's basic beginner, when I complied Rmarkdown with knitr it gives the unknown object error: Quitting from lines 13-16 (doc.Rmd) E...
asked by 14.03.2018 / 15:55
1
answer

How to plot a curve to separate data?

I'm testing some things in the language and this question came to me. I made a program that has a database that is divided into two groups (Group 1 and Group 2) and its elements are already labeled. I want to classify a new group of elements bas...
asked by 14.06.2017 / 23:41
2
answers

Doubts about the model y = a / (x + b)? [closed]

Help! Hello everyone, does anyone know this model y = a / (ln (x) -b-e)? I would like any information about it to make the adjustment in R. The idea is to know if there is any restriction between the variables to make the adjustment or if it is...
asked by 08.01.2016 / 14:49
1
answer

How to find the position of equal elements in character vectors?

Considering: a<-c("Ano", "X2751006.", "X2751007.", "X2751008.", "X2751015.", "X2751017.", "X2751018.", "X2751025.", "X2752001.", "X2752006.", "X2752007.", "X2752008.", "X2752009.", "X2752010.", "X2752011.", "X2752012.", "X...
asked by 13.11.2015 / 19:25
1
answer

How to delete any row from a data frame in R? [duplicate]

I have a date frame as follows: How do I remove the first line?     
asked by 15.07.2016 / 00:24
2
answers

Change the X-axis scale

Hello, I'm trying to graph a tree trunk, where the y-axis is the height (meters) and the x-axis is the diameter (cm). Until then without problems, but I would like to change the scale of the x axis to give more realism and I can not do this, woul...
asked by 15.09.2015 / 15:02
1
answer

Multiple Linear Regression in R [closed]

Hello, I have data ( link ) from a completely randomized experiment, where the (0.25, 0.50, 0.75, and 1.00) of different fungicides (4 natural + 1 chemical + control) with water). In total there were 24 treatments x 4 replications each. Si...
asked by 14.09.2018 / 19:39
1
answer

Insert two commands (INSERT and UPDATE) into the same statement in SQLite via R Language

Hello, people I have a problem with how to insert two commands (INSERT and UPDATE) into the same SQLite statement via the R language. I do not know if this is impossible because of SQLite or the DBI package of R. Here is an example of w...
asked by 26.07.2018 / 20:20