Questions tagged as 'r'

1
answer

How does the 'dplyr :: n ()' function know that it is not being called from the global environment?

When calling the dplyr::n() function in the global environment, an error occurs. n() # Error: This function should not be called directly This error makes sense and I was curious to see how it was implemented. n # function () # { #...
asked by 12.12.2018 / 20:00
1
answer

Calculation with R Matrices [closed]

What functions should I use to do the following calculations with arrays in R: - Find the transposed matrix; - Find the reverse matrix; - Find the identity matrix; - Find the determinant of an array.     
asked by 13.07.2017 / 15:43
1
answer

Breaking lines in colnames or rownames

This is an example of a report I'm making. Because the margin settings are already set, when you change the column names with the columns, it ends up passing the margin. Any help how to break this line? For example from the "ARIMA Forecast". Her...
asked by 11.07.2018 / 14:53
2
answers

How to make a cross-weighted tabulation?

I would like to cross-tab but with prop.table I can not use the weight variable. I use the command below: prop.table(table(mydata$Q_15,mydata$Q_35),1)     
asked by 18.09.2014 / 20:03
1
answer

create sequence that increases and decreases monotonically

I have the following vector: > a [1] 64.42 66.99 100.39 97.96 97.96 96.26 94.22 92.35 86.05 84.01 I want you to be able to generate another vector that grows and decreases monotonically, whatever increment I choose. The output...
asked by 14.08.2017 / 07:37
1
answer

How can I maintain only specific DataFrame rows?

I have code that goes into a website, fills in a form and pulls a table, however, I want to delete some rows from this table that I do not need. Let's go to the code: #library's require(RCurl) require(XML) require(stringr) require(plyr) req...
asked by 07.03.2017 / 21:05
1
answer

How to set initial kicks for nls function for potential regression model?

I'd like to know how to set the initial "kicks" to use the nonlinear power regression model. I'm working with a pet of data, testing several regression models, even without adjustment, I would like to cite this model, but I have difficulties in...
asked by 21.02.2017 / 00:53
1
answer

Delete total lines

I have the following structure of a database: MES EST.DET1 EST.DET2 EST.DET3 DIAS 2 Curso 1 Turma A Manha 5 2 Curso 1 Turma A Tarde 5 2 Curso 1 Turma B <NA> 5 2 Curso 1 <NA> <NA> 15 2 Curs...
asked by 28.11.2017 / 20:44
2
answers

Filtering data from a vector

I have a data frame that lists a series of customer evaluations for different products (each record is an evaluation / note). I need to do some boxplots with the evaluations of some specific products (the ids of those products are in a vector),...
asked by 29.10.2016 / 21:57
1
answer

Error: non-numeric argument for binary operator

I'm working on the following code: temperatura<-function(t){6/pi*atan(40*t-740)+7}#temperatura em função do tempo Ratkowski<-function(t){0.04291^2*(temperatura(t)-3.57877)^2*(1-exp(1.13744*(temperatura(t)-41.64632)))^2}#modelo dinâmico...
asked by 26.06.2017 / 00:34