Questions tagged as 'r'

2
answers

How to use the svymean () function if I have missings in the comments?

I'm using the svymean () function of the Survey package, but when the data has missings ("NA"), calculated. Please, does anyone know how to solve this?     
asked by 20.10.2014 / 14:00
2
answers

How to save or reserve a list of objects? (R)

In R, I want to "save a list of arrays". Actually, I'm wanting to reserve a list of 10 objects, where each object will turn an array, after using a for () Something like this: Data <- uma base de dados Lista <- é a lista que eu qu...
asked by 27.08.2014 / 21:37
2
answers

What does the "Design has only one primary sampling unit" error mean?

I'm using the Survey package of R and, when doing some svymean() , what returns is warning :    Design has only one primary sampling unit.     
asked by 05.11.2014 / 15:02
1
answer

Is it possible to modify a value of a vector with assign () in R?

Suppose we have x <- "teste" You can assign another string to the test, using assign: assign(x, 1:5) So:    test       [1] 1 2 3 4 5 Would it be possible for me to modify any of the vector values using assign? Something like...
asked by 09.01.2015 / 01:04
1
answer

Sample generation in R

I have a dataset with 200 observations. I generated a sample without replacement of size 100 with the following commands: library(car) require(car) (amostra1= some(dados,n=100,replace=F)) write.xlsx(amostra1,"C:/Users/../Desktop/amostra1.xlsx"...
asked by 24.10.2018 / 22:39
1
answer

Subtitles ggplot2

I have this graph created by the geom_bar () function: Iwouldliketoseparatethetwoboxeswheretheyareplottedtofill,asfollows: How do I do this? which parameter of the theme () function can I use to solve this problem?     
asked by 21.09.2018 / 03:52
3
answers

Transform factor into numerical R

Good evening! I'm doing a job where I import a base and after importing I create a range of values. Ex. I import the base with read.csv dados <- read.csv(base, header=TRUE, sep=',') But in this column of values ($$), which I...
asked by 05.06.2018 / 04:45
1
answer

How to make R repeat a request?

I'm trying to extract data from Vagalume through R, for that, I used the package "vagalumeR", and I took an example code from here: The problem: when trying to extract the lyrics of certain artist's music I get an error, almost always, but...
asked by 03.03.2018 / 20:01
1
answer

GLMM - Prediction with ID

Friends, I have different companies with different characteristics and each company has the same positions I selected the data of several members of each position of each company and noted behavioral variables, ranging from 0 to 10, to facili...
asked by 04.03.2018 / 01:30
1
answer

How to insert selectInput throughout the dataTable

I'm using the shiny. How can I display a selectInput , with options from 1 to 5, in all cells of a DT :: dataTable ? All I'm getting is display is the div tag, via vlr [i] within for . library(shiny) library(DT) ui <- fluidPa...
asked by 07.03.2018 / 20:33