Questions tagged as 'r'

1
answer

how to obtain the quartiles, percentiles and deciles of sharp data?

Obtain this data from any grouped data type. Is there a library that does it or is it necessary to create the function? S slds     
asked by 01.10.2017 / 19:17
1
answer

Color scales for geom_point

I try to create a ternary graph ggtern(data = Libro1,x= Arcilla, y= Arena, z= MO) and use geom_point to represent with points and scales of colors the different Largos de planta obtained on the ternary graph. The problem is...
asked by 19.09.2017 / 16:45
1
answer

Limit axes so that they go from one range to another without problem

I am trying to generate a ternary graph with types of soils made up of different combinations of Arcilla , Arena and MO . In turn, I calculate the growth of the plants in the types of conformed soils. Values range from 0 to 10...
asked by 12.09.2017 / 17:00
1
answer

Get the name of a data.frame

I would like to get the name of a data.frame in R. For example: If I have the data.frame Users and I pass it as a parameter in a function, I would like to obtain "Users" and not the data.    name (Users) # Invented function but that sym...
asked by 20.04.2017 / 13:15
1
answer

Communicate R with javascript for a notification control

I'm creating a shiny app with the shinydashboard library. Right now I am testing what are notifications (alerts messages etc ...) My question is how do you manage these notifications (create, modify or delete) In the documentation of shiny...
asked by 28.02.2017 / 12:37
1
answer

How to establish the factor of classifications of the knn test on a data set?

From the known conjugate of iris data, from the length and width of sepals and petals, I want to predict the species. The data set is this: I do not know how to get classes of the same size to get the neighboring knn. I tried: data...
asked by 21.03.2017 / 09:25
1
answer

Change the order of the columns - rows of an R matrix

I need to add to this matrix a row of 0 (zeros) above and a column of 0 on the left. I tried to do it like this ... R <- rbind(Hxx, 0) R <- cbind(R, 0) ... but I add the row and column at the end. When I had the...
asked by 18.11.2016 / 13:06
1
answer

Import Files to R

Is there a way to import files without having to make a unique file name? That is: SURTIDORES <- read_excel("/home/po11/Desktop/nombre1.xlsx") After SURTIDORES <- read_excel("/home/po11/Desktop/nombre2.xlsx") That there is no...
asked by 19.12.2018 / 21:07
1
answer

Use R to obtain data from a web

I'm trying to get the data in the following web For this I use the rvest library: url <- "https://stats.nba.com/teams/advanced/?sort=OFF_RATING&dir=-1&CF=MIN*GE*15&Season=2018-19&SeasonType=Regular%20Season" tmp <-...
asked by 04.12.2018 / 19:39
1
answer

Interactive plot in R Shiny

A couple of days ago I asked this question: How to create bar chart Now I'm trying to create an interactive graphic in R Shiny. The expected result is something like this: I tried the following code: training <- read.csv("~/Deskt...
asked by 10.12.2018 / 12:54