• Register

Recent questions tagged r

0 votes
1 answer 2 views
Problem: What is wrong here? > Error in unique.default(x) : unique() applies only to vectors
asked 1 hour ago Aurelia Maja 880 points
1 vote
1 answer 1 view
Problem: I&rsquo;m facing a problem while running a mixed effect model. Sample data: data4<-structure(list(code = structure(1:10, .Label = c("10888", "10889", "10890", "10891", "10892", "10893", "10894", "10896", "10897", "10898", "10899", " ... , data4) Error message: Error in checkNlevels(reTrms$flist, n = n, control) : number of levels of each grouping factor must be < number of observations
asked 3 hours ago Raj Tyagi 14.9k points
0 votes
1 answer 2 views
Problem: Can anyone assist me with this issue? >Installation of package tidyverse had non-zero exit status.
asked 6 hours ago Rada Gracelynn 1.8k points
0 votes
1 answer 2 views
Problem: Please, want an answer >Error in library(dplyr) : there is no package called &lsquo;dplyr&rsquo;
asked 19 hours ago Chi Omega 1.9k points
0 votes
1 answer 1 view
Problem: Try to discover this >Error: stat_bin requires the following missing aesthetics: x
asked 20 hours ago Sawyer Parviz 1.9k points
0 votes
1 answer 7 views
Problem: How to fix this error > Error in `.rownamesdf<-`(x, value = value) : invalid 'row.names' length
asked 2 days ago ummeshani 9.5k points
0 votes
1 answer 3 views
Problem: What is the full path to the directory that contains the locale?
asked 3 days ago ochena 23.3k points
0 votes
1 answer 5 views
Problem: trying to subset 2 columns and then select only certain states in order to plot them against each other (CA,NY,PA,FL,TX) I have 2 columns: States and Tuition I created states <- mydata[,c("state","tuition") to get a df of just these two. I cant figure out how to drop the levels of ... PA", "NY", "FL", "CA") but was met with Error in drop && length(x) == 1L : invalid 'x' type in 'x && y'
asked 3 days ago Yeamin 22k points
0 votes
1 answer 2 views
Problem: Implementing this with ggplot2 and shiny by having two input selections for the date ranges and have the plot adjust the x(date values) adjust accordingly, however, I get this error below: Invalid input: date_trans works with objects of class Date only How can I ... ) gg <- ggplot(df, aes(x= event_date, y = total_events, group =PlatformName)) + geom_line(aes(color = PlatformName)) +
asked 3 days ago Yeamin 22k points
0 votes
1 answer 6 views
Problem: I am trying to run this code: lm_height<-lmer(Height_cm_JUN~ENTRY+(1|REP), data=ASM_HEIGHT18_CL, REML=FALSE) But I get this error: Error in mkRespMod(fr, REML = REMLpass) : response must be numeric I don't understand what part of my data is not "numeric" here is the ... 22 15 12 ... Can someone give me advice on what I am doing wrong and how to fix it. I appreciate it ---many thanks!
asked 3 days ago jamuna1 30.2k points
0 votes
1 answer 2 views
Problem: I am stuck on an error R "names attribute [1] must be the same length as the vector [0]. " I am not exactly sure how to fix this problem. Any advice would be greatly appreciated .
asked 3 days ago salim1 60.6k points
0 votes
1 answer 3 views
Problem: I am trying to perform a logit regression on a dummy variable. The variable y was a chr and I have converted it in numbers with the following code. myData$y <- as.numeric(as.character(myData$y)) myData$x19 <- as.numeric(as.character(myData$x19)) The result is ... (link="logit")) Error in weights * y : non-numeric argument to binary operator Can you please help me fix this? Thank you
asked 3 days ago anika11 32.2k points
0 votes
1 answer 4 views
Problem: I am running a model with the lavaan R package that predicts a continuous outcome by a continuous and two categorical codes. One of them is a dichotomous variable (let's call it A; 0 = no, 1 = yes) and the other is a three-level ... already tried using the non-centered version for one or both of the categorical variables for creating the interaction term and in the regression model.
asked 3 days ago anika11 32.2k points
0 votes
1 answer 4 views
Problem: I am quite new to R and I am trying to run a PCA for an incomplete data set with the code: res.comp <- imputePCA(questionaire_results_PCA, ncp = nb$ncp) but R tells me: Error: Must use a vector in [, not an object of class matrix. Run rlang::last_error() to see where the error ... .names = c(NA, -6L), class = c("tbl_df", "tbl", "data.frame")) I then ran the code: dput(nb$ncp) and got: 3L
asked 4 days ago anika11 32.2k points
0 votes
1 answer 4 views
Problem: I have the following problem when starting RStudio and when I try to compile a PDF from a .rnw format: Error: '\U' used without hex digits in character string starting ""C:\U" Can anybody help me with that issue?
asked 4 days ago salim1 60.6k points
0 votes
1 answer 2 views
Problem: #use readtable to create data frames of following unzipped files below x.train <- read.table("UCI HAR Dataset/train/X_train.txt") subject.train <- read.table("UCI HAR Dataset/train/subject_train.txt") y.train <- read.table("UCI HAR Dataset/train/y_train.txt") x.test <- read.table("UCI HAR ... = 1:2, V2 = c("tBodyAcc-mean()-X", "tBodyAcc-mean()-Y" )), row.names = 1:2, class = "data.frame")
asked 4 days ago Yeamin 22k points
0 votes
1 answer 2 views
Problem: Is there something that I'm doing wrong with the Developer program?
asked 4 days ago salim1 60.6k points
0 votes
1 answer 8 views
Problem: I'm currently trying to run some code that implements parallel processing, but I'm running into this error.
asked 4 days ago salim1 60.6k points
0 votes
1 answer 18 views
Problem: How to fix this error:confusionMatrix - Error in !all.equal(nrow(data), ncol(data)) : invalid argument type?
asked 5 days ago sumaiya simi 43.9k points
1 vote
1 answer 2 views
Problem: Can somebody help me ? Why am I gettign warning message in these two lines: > memb = dih_y2$MemberID[1:10] > dih_col = which(dih_y2$MemberID == memb) Warning message: In dih_y2$MemberID == memb : longer object length is not a multiple of shorter object length
asked 5 days ago Raj Tyagi 14.9k points