Welcome to OStack Knowledge Sharing 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
926 views
1 answer
    In biology we often want to plot dose response curves. The R package 'drc' is really useful and base graphics ... plotted in the same colour? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
466 views
1 answer
    I'm still relatively new to R and hope you can again help me. I have a character vector with a length of ... someone help me with this? Thanks! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
408 views
1 answer
    Making a barplot the 'standard' way dat <- read.table(text = "A B + 1 1 4 + 2 2 3 + 3 3 2 + 4 4 1", ... like so How can I make such a plot in R? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
404 views
1 answer
    I have a list of dataframes for which I am certain that they all contain at least one row (in fact, some contain ... to be as fast as possible. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
392 views
1 answer
    I would like to extract the column name in the function call to mutate_if. With this, I then want to look up a value in a ... 8 d # 10 10 2 2 e See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
458 views
1 answer
    Suppose I have a List in Rcpp, here called x containing matrices. I can extract one of the elements using ... this element to do computations. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
582 views
1 answer
    I have text data (in R) and want to replace some characters with other characters in a data frame. I ... though there is no gsub involved. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
360 views
1 answer
    To train with ggplot and to improve my skills in writing R functions I decided to build a series of functions that ... time, nr)) + geom_area() See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
481 views
1 answer
    I want to plot the projection of 3-dimensional data on their simplex using ggplot2. I thought I could manage ... are appreciated. Many thanks! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
379 views
1 answer
    How do I plot the equivalent of contour (base R) with ggplot2? Below is an example with linear discriminant ... .e. the decision boundaries). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
366 views
1 answer
    I have a shiny application consisting of three files. server.R, ui.R and the file to launch the application with ... but I didn't find anything. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
353 views
1 answer
    Suppose I have arr = 2 1 3 1 2 3 1 1 2 How can I sort this into the below? arr = 1 1 2 1 2 3 ... , first by column one, then by column two etc. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
319 views
1 answer
    looking at the rcpp documentation and Rcpp::DataFrame in the gallery I realized that I didn't know how to modify a ... "] = newCol; return; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
754 views
1 answer
    I have a data frame that I want to remove duplicates that are consecutive (in base). I know rle may be helpful here ... C Mar 19 D Apr 20 A Jan See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
526 views
1 answer
    I'm trying to visualize a correlation map, and I think that I've gotten it to work, except for the jumbling of the ... , labs, xpd=TRUE, srt=90) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
474 views
1 answer
    I'm new to R, so I apologize if this is a straightforward question, however I've done quite a bit of searching ... to figure out a good way. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
652 views
1 answer
    If the column names of a data.frame are started with numbers, or have spaces, aes_string() fails to handle them: foo= ... 1st Col`, y=`2nd Col`) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
425 views
1 answer
    I am trying to retrieve the most repeated value in a particular column present in a data frame.Here is my ... (Forbes2000,country=="Bermuda") See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
515 views
1 answer
    My data is in a data.frame format like this sample data: data <- structure(list(Article = structure(c ... suggestions would be much appreciated! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
493 views
1 answer
    Suppose I have a data.table: x <- data.table(x=runif(3), group=factor(c('a','b','a'), levels=c('a','b','c'))) I ... # 1: a 2 # 2: b 1 # 3: c 0 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
430 views
1 answer
    I often want to do essentially the following: mat <- matrix(0,nrow=10,ncol=1) lapply(1:10, function(i) { ... rule of R that is blocking this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
671 views
1 answer
    I have a large data set with thousands of columns. The column names include various unwanted characters as follows: ... this for 5000+ columns? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
498 views
1 answer
    If I have two data frames, such as: df1 = data.frame(x=1:3,y=1:3,row.names=c('r1','r2','r3')) ... to remember. Anyone know of a cleaner way? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
941 views
1 answer
    I am trying to plot 2 solid lines in 2 different colours for each group, but also add dashed lines of the same ... = c("Group1", "Group2")) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I am reading in a bunch of CSVs that have stuff like "sales - thousands" in the title and come into R as ... words when that occurs. Thank you. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
391 views
1 answer
    While constructing expressions to put in the j-slot of a [.data.table call, it would often be helpful to be able ... to access the value of .SD? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
450 views
1 answer
    Let's say I have the RGB values like this (in R, for example): cols <- c("#CDE4F3","#E7F3D3","#F7F0C7","#EFCFE5 ... ? It doesn't have to be R. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
394 views
1 answer
    By playing around with a function in R, I found out there are more aspects to it than meets the eye. ... there any drawbacks of doing this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...