r
Colouring plot by factor in R
I am making a scatter plot of two variables and would like to colour the points by a factor variable. Here is some reproducible code:[详细]
2023-04-12 16:12 分类:问答grouping dataframe rows by factor and by function - output complete original dataframe row
My first post and I\'m very new to R so this may be a lob.I have search all over for a solution though, so I\'m finally posting for help.Let me know if I need to clarify or provide more information.[详细]
2023-04-12 14:45 分类:问答create loop function for calculating value of one column from other column in R
For on the dataframe AB: AB<-data.frame(ID=c(1,2,4),A=c(2,8,8),B=c(6,2,2),dE=c(0,0,0)) I would like to apply the following formula: AB$dE=AB$B/AB$A[详细]
2023-04-12 14:29 分类:问答Bootstrap variables correlation in R
My intention was to write several functions aimed at finding the overall similarity between two covariance matrices, either by multiplying them with random vectors and correlating the response vectors[详细]
2023-04-12 14:15 分类:问答Sourcing R script over HTTPS
Is there some way to source an R script 开发者_如何学Pythonfrom the web? e.g. source(\'http://github.com/project/R/file.r\')[详细]
2023-04-12 13:50 分类:问答How can I efficiently use R to add summary rows with 0 cases?
I have a data set that includes cases by year and month.Some months are missing, and I\'d like to create rows with a case count of zero for those months.[详细]
2023-04-12 12:32 分类:问答apply strsplit to specific column in a data.frame
I have a large dataframe with classification information. Here is an example: > d <- data.frame(x = c(1,2,3,4), classification = c(\"cl1.scl1\", \"cl2\", \"cl3-bla\", \"cl4.subclass2\"))[详细]
2023-04-12 11:24 分类:问答Create function to automatically create plots from summary(fit <- lm( y ~ x1 + x2 +... xn))
I am running the same regression with small alterations of x variables several times. My aim is after having determined the fit and significance of each variable for this linear regression model to vi[详细]
2023-04-12 10:47 分类:问答How do I get year and month when day is invalid without fixing the day myself?
I have some data that looks a bit like this: require(zoo) X <- rbind(c(date=\'20111001\', fmt=\'%Y%m%d\'),[详细]
2023-04-12 09:03 分类:问答How to use cast on a data frame?
I have a data frame like the following: year incomegroup 1200827907Under25 2200925522Under25 3201026777Under25[详细]
2023-04-12 08:48 分类:问答