Questions tagged as 'r'

1
answer

Adding values to existing tables with RMySQL

I had previously asked a question about Mysql database in using the RODBC library and due to an error in the types, I saw in one of the answers told me about the RMySQL library and I decided to try it. But I'm not able to add data.frame table...
asked by 19.04.2015 / 15:55
2
answers

How to install the KriSp package in R?

I want to install the following package in the link It is in tar.gz format I used the following command:    install.packages ("~ / KriSp_0.4.tar.gz", repos = NULL, type="source") When I try to install it, the following message app...
asked by 28.04.2015 / 17:00
2
answers

SAS and R perform Merge differently

What is the difference between the way R and SAS execute the merge? The SAS Merge command returns 205546 rows, and the R returns 207208 rows. Here's an example. I'm working with the IBGE file available at: ftp: // ftp. ibge.gov.br/PNS/2013/...
asked by 26.01.2015 / 19:03
2
answers

Apply function in data groups

I need to separate the data into groups and perform the calculations in two or three groups / dimensions. I found the tapply function, it solves the problem. With it I get what I need using the average function, sum, etc. But now, I realiz...
asked by 09.10.2015 / 18:55
1
answer

Best value for span / f parameter in lowess / loess function in R

I'm experiencing a problem with smoothing curves adjusted by the lowess or loess functions in R, as far as the smoothing parameter f in lowess or span in loess I looked for some tips on web and foun...
asked by 11.07.2015 / 01:18
1
answer

Differences between RCurl, httr (R) and requests (python) when doing a POST

I was looking to access a page that you get by clicking "View all documents above" in that link . The company I got is just an example, I have no interest in it. I tried to resolve this through a POST request, and I got the result I wanted u...
asked by 10.10.2014 / 21:13
1
answer

I can not import data from a CSV to PostGreSQL with dbWriteTable from R

I am trying to import a CSV into a PostGreSQL database from R. On the PostGreSQL server, I created an empty database, called "Data". library(RPostgreSQL) library(sqldf) drv <- dbDriver("PostgreSQL") con <- dbConnect(drv...
asked by 09.10.2014 / 23:44
1
answer

How to create labels in a binary vector without it becoming categorical?

I have a binary variable in a dataframe , I want to assign the label "no" to the value 0 and "yes" to the value 1 without the vector becoming categorical (if this occurs, I can not use the function svymean() ). Does anyone...
asked by 27.10.2014 / 16:41
1
answer

Automatically check quantitative variables in R

I have a database here and I need to automatically check which are quantitative variables. My advisor says that I need to use sapply and the is.numeric function and create a code that returns a vector of true and false indicating w...
asked by 27.11.2014 / 15:41
1
answer

How to know the sources supported by commonality.cloud?

I would like to know which fonts are supported by wordcloud or commonality.cloud. I imported some fonts with the package below but many of them do not work. install.packages("extrafont") library(extrafont) font_import() Below is an examp...
asked by 07.08.2014 / 16:21