Questions tagged as 'r'

0
answers

How to make an MLP in the R whose output is a posteriori and the test set classified? [closed]

I used the "neuralnet" function of the package of the same name, but I could not run. Yes, I want to sort, so I have labels.     
asked by 18.06.2015 / 15:32
0
answers

Return of the original scale in a prediction function [closed]

I created a simple function to predict tree heights using regression models constructed for this purpose (hypsometric relation models). The function predicts heights and inserts them into a new column in the data.frame by merging them with the h...
asked by 07.01.2015 / 18:42
1
answer

Operation with large array

People would like to know how I can make the squared Euclidean distance between the octadimensional vectors of b and those that are not in a in a super matrix like this one in the example. I thought so and it did not work. Anyon...
asked by 21.06.2015 / 02:10
3
answers

How to join values in R?

I'm starting at R and I'm having a question. In a data frame I have a column with the social vulnerability index (IVS) that ranges from 0 to 1, per municipality (229). I need to group some values so that it looks like the example: #Como Est...
asked by 20.11.2018 / 17:19
1
answer

Impulse graph interpretation Answer [closed]

Hello, guys, how are you? I have a question when interpreting graphs of 'impulse response functions'. I have read a few books, but in none of the ones I consulted is it clearly stated when responses to an impulse may or may not be considered...
asked by 03.02.2017 / 10:15
4
answers

How can I save a list or export an object of type list in R?

I have an object of type list, similar to this that follows: x<- list(cod = 1:10, taxa = exp(-3:3), logico = c(TRUE,FALSE,FALSE,TRUE)) What is the best way to store this object in * .R, * .csv or _ _ _?     
asked by 17.11.2015 / 03:02
0
answers

Association between variables: database [closed]

I have the following database: id Acidente id_Vitima Sexo_Vitima Faixa_etaria Gravidade_acidente 1 1 1 7 2 2 1 1 6 1 2...
asked by 17.04.2015 / 00:34
2
answers

Mineration of text with R (stringr)

I have a lenght 15 string and I want to remove the first 70 charac. and the last 200 charac. of each. I tried the following code to remove the beginnings and it did not work: texto2009a <- texto2009 %>% map(str_sub(., 1, 72) <- "...
asked by 25.08.2018 / 22:22
3
answers

R: Remove columns from a dataframe [duplicate]

How can I remove columns from a dataframe without being as follows? > df x y z 1 1 6 A 2 1 5 B 3 2 4 C 4 2 3 D 5 3 2 E 6 3 1 F > df <- data.frame(df[,1:2]) > df x y 1 1 6 2 1 5 3 2 4 4 2 3 5 3 2 6 3 1     
asked by 22.12.2015 / 17:50
3
answers

How to compare columns from one dataframe with those from others and remove columns that are not common between them [R]

Suppose I have 3 dataframes. In them, I have varying columns (eg x1, x2 ..., xn). However, not all of these columns coexist in all dataframes. My goal is to compare these dataframes and leave, EACH OF THEM, with the columns in common. Is it p...
asked by 23.08.2018 / 21:56