Questions tagged as 'r'

0
answers

Fuzzy Logic in [R]

I want to create linguistic variables for a specialized system with R . However, in the documentation, I only found one way to do with trapezoid function and it is with standard error. How should I correct it? Follow the code. variables...
asked by 25.04.2017 / 16:50
1
answer

Build a Using R

Hello, I think my question is quite simple, but come on: How do I make this look like this: coef.matrix=matrix(0,4,16) for (k in c(1,4)){ for(i in 1:2){ coef.matrix[i,1]=summary(lm(y ~ x))$coef[2,k] } } Instead of "from 1 to 4"...
asked by 05.04.2017 / 17:15
1
answer

How to install the EBImage package for version 3.3.0 and or 3.3.1 of R?

Firstly, I made it very clear that I have already downloaded both CRAN 3.3.0 and 3.3.1 versions, normally, and uninstalled all previous versions, I also used the commands: remove.packages ("abind"), remove .packages ("EBImage"), remove.packages...
asked by 18.10.2016 / 23:51
0
answers

comparison (4) is possible only for atomic and list types

Good morning, I have a dataframe whose structure is given by > head(citationsAllYears) appln_id_cited appln_id_citn ano_prior 3 636 56755306 2008 4 636 644 2008 5 644 56755...
asked by 07.06.2016 / 12:27
0
answers

Subdivide square into mini squares

I have a random square (can be generated randomly) and I want to divide it into% w /% smaller squares without intersecting them, and save% w /% of smaller squares. In case the scope of the function would be funcao = function(n, dataset){ ret...
asked by 16.04.2016 / 06:41
0
answers

Read and scan dat files through R

Personal I have a dat file: "dadodat" How do I open it in R and explore it?     
asked by 29.03.2016 / 02:40
0
answers

How to install the rgeos package in R?

I'm trying to install the rgeos package in R and my operating system is Windows 7. I used the command install.packages('rgeos', type="source") and the following message appears: installing package into ‘C:/Users/Cloves/Documents/R/win-l...
asked by 20.04.2016 / 15:26
2
answers

how to convert MatLab functions to RStudio?

tempo=Seq; conc=NCelTotais; coef_ini = [MaxCT 1 2]; coef=[]; OPTIONS = optimset('MaxIter',1000,'TolFun',0.001,'TolX',0.01); coef = fminsearch(@funcaoerro_sigmoide,coef_ini,OPTIONS); A=coef(1); B=coef(2); C=coef(3); y = A*sigmf(tempo, [B C]);...
asked by 16.01.2018 / 00:03
1
answer

Make a subset with the same condition in different bases in the R

I want to apply the same condition of subset to different bases in R. I thought for would solve, but I did not succeed. Follow the programming used: for(i in c("mar16", "jun16", "set16", "dez16", "mar17")){ postos[i]<-subs...
asked by 09.08.2017 / 16:29
1
answer

Error trying to save script in R

When I try to save my script, the error message appears as per the image. How do I resolve this issue?     
asked by 02.01.2018 / 17:44