Questions tagged as 'r'

1
answer

Help with ggplot and Shiny

In normal R I generate a very simple graphic with ggplot that I would like to show in Shiny but I can not make it look and I do not know what the error is. Outside the Server declared the plot but I do not know how to use it. This is the code...
asked by 22.03.2018 / 01:26
1
answer

Problem with ranges when generating a histogram

I would like to create a frequency histogram, defining the ranges of each bar in the histogram. I thought that by defining the number of bars, their ranges would be defined but I have not managed to obtain a desired histogram. the code that I...
asked by 08.01.2018 / 15:54
1
answer

Comparative graph of exponential models

I have a 3x3 factorial experimental design and I want to perform a non-linear regression to adjust exponentially. I can easily adjust the curves individually in the following way: dataUrea0 <- subset(Suelo, Nurea == "0") dataUrea90 <- su...
asked by 01.02.2018 / 04:12
1
answer

Problem Anomaly Detection Twitter package, data frame with 0 columns and 0 rows

Good morning, everyone. I've been trying to use Twitter's anomaly detection package for the available R language here . My problem is that trying to emulate the examples of Twitter with a database in which I find myself working available here...
asked by 18.01.2018 / 22:47
2
answers

How to calculate Mallows's Cp

I find myself in a disadvantage, I am trying to calculate Mallows' Cp for different linear regressions (each regression has a different number of independent variables), but when I try to use the% package leaps() sends me an error    Error i...
asked by 18.11.2017 / 04:47
1
answer

Create "samples" with partial data

I am working with a normal distribution where 10% of the data is above a length0 and 5% below a length1. I have been trying to use the functions sample and dnorm in different ways but since I do not have the minimum and maximum...
asked by 02.11.2017 / 11:11
1
answer

xml to R database, different levels

I have this xml code: <?xml version="1.0"?> -<sct type="detail" version="0.1"> -<serviceLevelSegments timestamp="2017-10-25T11:45:44Z"> <Segment travelTimeMinutes="0.387" c-value="100" score="30" reference="85" average="7...
asked by 03.11.2017 / 08:41
1
answer

Enter Matrices in R

I want to enter a% n of matrices in R in a function, for example: Matriz<- as.integer(readline(prompt="CUantas Matrices desea? ")) for(i in 1:Matriz){ Fila = as.integer(readline(prompt="Ingrese el tamaño de la fila: ")) Columna...
asked by 21.10.2017 / 19:29
1
answer

Matrix Partida in R

In R there are routines to calculate operations like addition and subtraction, in this case I want to apply them to split matrices or also calls in blocks. Does anyone know what those functions are for adding and multiplying split matrices?...
asked by 20.10.2017 / 22:49
0
answers

Connection to SQL Server from R [closed]

I'm trying to make a connection to a database in SQL Server from R , I have the server 172.16.XXX.XXX , the name of the database "pnet" , user: "usrname" , pwd: "pwd" . I'm using the RODBC library, here's my...
asked by 12.10.2017 / 22:41