Questions tagged as 'r'

1
answer

Unify column to dataset and place this content below a table

I have table I have a column that is a dataset I need to separate this data and unify them to "standard columns". I have already been able to separate the contents of the column by doing this: nrow temp area sep1 sep2 sep3 sep4 sep...
asked by 24.05.2015 / 17:48
1
answer

R package to convert numbers into text in number extension

I'm looking for an R packet that converts a number into the number written in length. The functionality would be, for example, "134" = "cento e trinta e quatro" . Does anyone know?     
asked by 30.09.2015 / 13:45
1
answer

in R, dec="," does not work in read.csv2

Good afternoon ... I'm trying to import csv where the decimals are separated by a point ... or something like 2.5 I want it to come up with a comma, something like that, 2,5 uo_14<- read.csv2("csv\uo_2014.csv", as.is = FALSE , header =...
asked by 29.11.2014 / 17:49
2
answers

Function similar to matlabfunction () of MATLAB in R

Is there a function similar to matlabFunction() of MATLAB? Or how to do this in R ? The function in MATLAB. syms x dados = inputdlg({'P(x): ', 'Q(x): ', 'R(x): ', 'N: '},'Dados'); P = matlabFunction(sym(dados{1}),'vars',x,'file...
asked by 29.10.2014 / 02:44
2
answers

How to save an error message in a string in R?

I would like to know if there is a function that saves the error message of an expression in a string. For example I would like to get the result below: erro <- pegaErro(runif("a")) erro Error in runif("a") : invalid arguments In additio...
asked by 04.11.2014 / 13:06
1
answer

Error non-numeric argument to mathematical function

Good afternoon, I have the following code in R funcao<-function(delta) {delta} Intensity2AccumulationFactor<-function(delta,s,t){ int<-function(s,t) {integrate(funcao,s,t)} p=int(s,t) b=c(p) a=exp(b) print(a) }...
asked by 21.03.2015 / 16:52
1
answer

Which class identifier should I use?

There are several functions that can be used to identify classes in R (or at least "think" for this purpose), such as: class() mode() typeof() storage.mode() str() That, with a simple example: x<-(1:5) class(x) # [1] "integer" mode(x)...
asked by 20.10.2018 / 03:47
1
answer

Problems with indexing in cbind

I try to run the cbind function as follows: reg<-lm(cbind(variable1,variable2,variable3,variable4,variable5,variable6)~kmeans,data=dataset) and it works. But, consider this structure: vars<-names(dataset)[1:6] vars #[1] "v...
asked by 10.10.2018 / 00:17
1
answer

Error in bookdown generation

I'm trying to create a bookdown (from the link package). When I create the book it returns the error below. I have already set the parameters: output: bookdown::gitbook e site: bookdown::bookdown_site . Also I deleted the main fi...
asked by 22.10.2018 / 20:56
1
answer

Removing decimal places regulartable () flexible package {R}

I am making a report in .rmd to export to .docx and to mount the tables I am using the "flextable" package, which works for this type of export. The problem is that when I mount the tables the function adds three decimal places and I can not r...
asked by 23.07.2018 / 19:45