Questions tagged as 'r'

1
answer

kruskal wallis significant (kruskal.test) and dunn test (dunn.test) not significant in R

I am new to the use of the R programming language and I have tried with this to do a Kruskal Wallis and then a Dunn test (with Bonferroni correction) using data from 6 fish species, 15 months of sampling, different number of samples ( between 25...
asked by 18.03.2016 / 22:45
2
answers

Database in R?

Greetings, I have problems with the insertion of new records to a Database. I use the library RODBC to connect to the database from R, all right there, but when I want to add a record that I have stored in a data frame like: datos<...
asked by 16.12.2015 / 00:23
2
answers

Filter rows of a dataframe whose columns have different / equal values in R

I have a data frame with a tumor classification. The program I use uses two different classification methods and in some samples it appears to me classified differently. I would like to make two tables one with the tumors whose classificat...
asked by 22.02.2017 / 10:45
1
answer

Rstudio Removewords doubt

I only have one question, is there any way to see how many words were removed using removewords? Thank you!     
asked by 10.04.2017 / 02:03
1
answer

How to add a new column to a data frame?

Hello, does anyone know how to add a new column to a data frame? DF <- data.frame (predictor=c ("a", "a", "b", "b"), respuesta=c (13.5, 0, 2.6, 4.1))     
asked by 22.11.2018 / 20:18
2
answers

Problem with accents when compiling HTML in R-Markdown

I have the following problem: When creating a graph, working from R-Markdown, and when changing the title and in this a special character is included as accents, ñ, etc. I have to change the enconding and place the following instructio...
asked by 30.08.2018 / 16:56
1
answer

Implement means and 95% CI for each subset of data using ggplot

I have a set of data that is more or less like this (note that this is a minimum example and that the limited data can affect the visual appearance of the obtained graph): y x z g 1 0 0 1 2 1 0 1 2 0 0.5 1 3 1...
asked by 10.04.2018 / 13:30
1
answer

ifelse with two conditions

I want to create a new variable from two dataframes, as long as two conditions are met. The df 1 and the 2 have two common variables, but only the df 1 contains a variable that I would like to join the df 2. I tried to use the vectorized functio...
asked by 30.07.2018 / 13:00
1
answer

Error in ggint $ map_layout (panel, plot $ facet, layer_data, plot $ data): unused argument (plot $ data)

After updating the libraries in RStudio , I get the error that has to do with the library ggplot2 . p <- ggplot(overviewplotdata, aes(x=Dataset, y=Well, fi...
asked by 16.03.2016 / 18:33
2
answers

Swap rows by columns with duplicate values

I am working with the following data: data <- data.frame(id=c(1811,1811,1522,7121), pregunta=c("17", "17", "20", "21"), valor=c("13","2","12","15")) id pregunta valor 1811 17 13 1811...
asked by 27.03.2018 / 09:38