Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged r

0 votes
410 views
1 answer
    We are given a huge set of points in 2D plane. We need to find, for each point the closest point within the set. For instance suppose the initial set is as ... 1 4 3 3 # (could be 4 also) Any idea? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
304 views
1 answer
    If I write the following plot seen below and use theme(plot.title = element_text(hjust = 0.5)) to center the title "Flowers", everything seems to work ... = element_text(hjust = 0.5)) + theme_light() See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
409 views
1 answer
    Following on from this post can anyone please tell me if it's possible to implement a way to search an interactive Shiny DT datatable where keywords are ... .0.4.6 Biobase_2.46.0 BiocGenerics_0.32.0 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
373 views
1 answer
    This is the code I used, the goal is to visualize the evolution of covid in north africa library(readr) library(ggplot2) library(dplyr) covid <- read. ... weeks or months to scale instead of days plot. r See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
389 views
1 answer
    I'm struggling with an assignment I was given. We have to make a grouped histogram with normal fit superimposed. Now, I already managed to get de grouped ... Yes 111 ... And my graphs look like this: See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
461 views
1 answer
    I am trying to subset rows of a data set using a condition that's based on the previous row, whilst keeping the previous row in the subsetted ... incorrect 7.351168 Any help would be greatly appreciated! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
413 views
1 answer
    I know that there are many answers provided in this forum on how to get summary statistics (e.g. mean, se, N) for multiple groups using options like aggregate , ... who are at group B, E and I etc...) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
595 views
1 answer
    I am working on covid dataset and have mapped the data on Indian Map using highcharts but that Map is not latest & doesn't show all its States - for ... for India in highcharts that I can refer to ?? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
399 views
1 answer
    I am trying to reproduce something similar to this map using ggplot2: This is what I've done so far: load("mapdata.Rdata") > ls() #2 datasets: "depth ... (100,150) My data set can be downloaded here: data See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
462 views
1 answer
    I have two igraph objects, which have different color attributes. Vertices "A" and "B" in first graph are colored red. Vertices "AA" and "BB" in ... How can I preserve the distinct colors when joining ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
371 views
1 answer
    I'm struggling to create a query using $or within R and rmongodb. What I'd like to emulate is this from cmdline mongo: db.people.find( { $or : [ {"person. ... same when I view it). I'm stuck on this one. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
516 views
1 answer
    I am trying to find association rules using the apriori function from arules package in R. rules <- apriori(data=data, parameter=list(supp=0.001,conf = ... rules by confidence and lift at the same time? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
413 views
1 answer
    I have a list of polygons in a SpatialPolygonsDataFrame and need to set one of them as a hole in an other. I've found in the help of set_Polypath how ... to set the "hole" flag on an existing polygon? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
655 views
1 answer
    I am trying to add tooltips/popovers using the shinyBS package for a Shiny application but am having an issue due to tabs don't have input/ ... application using TabPanels and Tabset Panels for testing. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
364 views
1 answer
    I have a data frame like Id A B C D E F a 1 2 9 4 7 6 b 4 5 1 3 6 10 c 1 6 0 3 4 5 I want a data frame like Id a C ... row values by the respective column names. Is there any nice way to do this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
453 views
1 answer
    Let's say we have this: ex <- c('2012-41') This represent the week 41 from the year 2012. How would I get the month from this? Since a week can be ... R (do not have a standard date format like %Y-%m-%d). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
391 views
1 answer
    R suprises me almost every day again and again: m <- matrix( 1:6, ncol=2 ) while( dim(m)[1] > 0 ){ print(m); m <- m[ ... of my algorithm. Hence, efficient solutions are appreciated. Many thanks! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
268 views
1 answer
    I am using dplyr and trying to create a function to calculate p.values based on grouping arguments. I would like to be able to have an argument that ... this doesn't work and what I could do instead! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
396 views
1 answer
    I have a dataframe: df <- data.frame( Group=c('A','A','A','B','B','B'), Activity = c('Act1','Act4', 'Act3','Act1', 'Act2 ... . How can I get only those groups that necessarily contain both the activities? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
364 views
1 answer
    I am using following data and code: > > dput(ddf) structure(list(xx = c("aa", "bb", "cc"), gp = c("one", "two", "one"), yy = c ... . Can the smaller point size be increased so that it is clearly visible? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
412 views
1 answer
    Ok, so I posted a question a while back concerning writing an R function to accelerate string matching of large text files. I had my eyes opened to ' ... , ie: am I using lapply correctly here? Thanks! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
512 views
1 answer
    I'm trying to create a dynamic number of tabs in my rmd with some content inside. This one doesn't help. Something like this: --- title: "1" output: ... = Sepal.Length, y = Sepal.Width)) }) ``` See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
542 views
1 answer
    I am working on a similar issue, as already discussed here: r - ggplot2: connecting points in polar coordinates with a straight line Unfortunately, the ... didn't really get towards where I wanted. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
435 views
1 answer
    Is there any efficient way, without using for loops, to duplicate the columns in a data frame? For example, if I have the following data frame: Var1 Var2 ... 2 2 2 2 Any help would be greatly appreciated! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
463 views
1 answer
    I have about 10000 replicates of a sample in a matrix. My matrix has 1000 rows and 6 columns. Numbers in the columns range from 0:58 depending ... row without having to go back manually. Any suggestions? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
587 views
1 answer
    I've been using sqldf in my R-scripts until now when I got the following error: library(sqldf) data(mtcars) out <- sqldf("SELECT * FROM mtcars") > ... a problem before now, anyone know what's the issue? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
415 views
1 answer
    Suppose I have two dataframes: df1 <- data.frame(matrix(rnorm(10*10),ncol=10)) df2 <- data.frame(matrix(rnorm(10*10),ncol=10)) colnames(df1) < ... but I am interested in the application of merge here). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
384 views
1 answer
    I use glm.nb() function in R MASS package to estimate the parameters of a negative binomial regression model. How could I calculate the predicted probability ( ... 42 1.000000 31 0.734058 35 1.000000 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
...