• Register
search
Log In

Recent questions tagged r

1 vote
1 answer 17 views
Problem: I am very new to R programming. I have recently started learning R programming with the help of the online tutorials and I am also referring few books available on R programming. I have my one dataframe named dih_y2. Below mentioned two lines are giving me ... length I am unable to understand above error due to my limited knowledge on R. Kindly guide me in fixing above R related error.
asked May 27 Martin K 6.6k points
1 vote
1 answer 24 views
Problem: I am a naive to R. I am trying to create the bar graph using the ggplot2 to compare a type of 2016 primary election and the Bernie Sanders's respective percentage of the votes in that election. I have below code: y = $ Type : Factor w/ 2 levels ... data of class uneval. I have already tried to search the solution on above error around but because of some unknown reasons to me I am stuck.
asked May 27 Martin K 6.6k points
1 vote
1 answer 20 views
Problem: I have limited knowledge of R and ggplot. I have recently written a function and trying to run the function as shown below: ggplot(datfr, aes(x = dat1[1:951,], y = dat2[1:951,])) + geom_point() After executing above function I am facing below error: Don't ... and when I try to use nrow on my two datasets it again returns the same number of rows. How can I fix above ggplot related error.
asked May 26 Martin K 6.6k points
1 vote
1 answer 21 views
Problem: I have some knowledge about R and Rstudio. Currently I am trying to install the package known as dplyr but it constantly shows me the below error: Error in install.packages : missing value where TRUE/FALSE needed. Please find below my console history for your ... very limited knowledge about R and Rstudio so I am unable to fix it. I am still facing the same error please guide me.
asked May 26 Martin K 6.6k points
1 vote
1 answer 17 views
Problem: I have very fundamental knowledge of logistic regression. I am trying to write code on logistic regression. I have done a lot of research on this issue but because of my limited knowledge I am still unable to fix the below error. Error ... (data) stock.direction <- data$Direction training_model=glm(stock.direction~data$lag2,data=data,family=binomial) Please help me in fixing above error.
asked May 26 Martin K 6.6k points
1 vote
1 answer 21 views
Problem : I am facing the below problem if I try to start my RStudio and if I try to compile the PDF from the .rnw format: Error: '\U' used without hex digits in character string starting ""C:\U" If I try to start the RStudio or just the R then please find ... has changed. I have also tried updating RStudio and also my R-version, but it is not helping me. Please note I am running R on Windows.
asked May 21 Martin K 6.6k points
1 vote
1 answer 44 views
Problem : I am learning R. I am trying to make the subset of my data frame in the R which is based on one or the other value available in my column of the factors but because of some unknown reason to me I am unable to use | operator with the factor values. If I try to ... != "c" as it will not work. I am stuck with above error from past two days. Please guide me in fixing above R error for me.
asked May 12 Martin K 6.6k points
1 vote
1 answer 12 views
Problem : Currently I am in the process of learning the Dataframe and now I have the dataframe combination which includes the two variables DT and OD. I also have very few missing values like NA in both of the DT and OD but not necessary they have the same ... not very sure why two columns in a same dataframe will have the different length. Please guide me in fixing above dataframe related error.
asked May 12 stewart 4k points
–1 vote
0 answers 14 views
library(outbreaks) library(incidence) library(readxl) onset<- read_excel("projects/OR531/491780_788773_3_tm_tm_mf_samplekalman.xls") i <- incidence(onset) plot(i) plot(i[1:90]) library(projections) set.seed(1) pred <- project(i[1:100], R = 1.5, si = si, ... /491780_788773_3_tm_tm_mf_samplekalman.xls") > i <- incidence(onset) Error in is.finite(x) : default method not implemented for type 'list' >
asked May 10 anonymous
1 vote
1 answer 9 views
Problem : I am trying to understand R and I am very new to Programming as wel. If I try to create the box chart with the use of standard error bars I often face below error message: “Error: ggplot2 doesn't know how to deal with data of class numeric”. Looking for help in quick fixing the above error.
asked May 5 stewart 4k points
1 vote
1 answer 11 views
Problem : I am very new to R. Currently I need to embed RInside to the required application on the windows 7 64-bit Operating system but if I try to initialize the RInside as shown below: Rin = new RInside(argc, argv); I often face the message as shown below for ... done lot of research to fix above R error but unable to fix it. So looking for R expert who can help in quick fixing above error.
asked May 5 stewart 4k points
1 vote
2 answers 38 views
Problem : I am very new to R. Currently I want to split the column of my data frame (menuA) is as shown below Column1 1|3|4|5 4|5|6|7 I was trying to split my numbers in above columnA so I coded it as shown below. menuA <- data.frame (do.call('rbind', ... 120"),  :   number of columns of result is not a multiple of vector length (arg 1) Please let me know if all my data is separated properly?
asked Apr 22 stewart 4k points
1 vote
1 answer 161 views
Problem : I am very new to R. Now a days if I try to use the join function in a dplyr package then I often face following warning: Warning message: In left_join_impl(x, y, by$x, by$y) :   joining factors with different levels, coercing to character vector I am unable to find any relevant information about above warning. I need expert help from R expert to fix above warning.
asked Apr 20 stewart 4k points
1 vote
1 answer 95 views
Problem : I am very new to R. I have very recently joined R project team. I can surely say that there are no NA values in the data still I am facing following error for my below written code: Please find below my code for your reference: mydata=read.csv("noise.csv") ... spent a lot of time in trying to fix above error. So now I am looking for the expert who can suggest quick fix for above error.
asked Apr 16 morrisBson 3.2k points
1 vote
2 answers 55 views
Problem : I am very new to R. I am facing a issue while entering CurrentDay. I had previously created it as below : Transaction <- function(PnL, Day)   results <- list(a = PnL, b = Day)  return(results) The above PnL and Day are both numeric values. Day ... /MA  return(MAValue) } Please guide me why am I receiving below error? Error in fun(left, right) : non-numeric argument to binary operator.
asked Apr 14 morrisBson 3.2k points
1 vote
1 answer 140 views
Problem : I am beginner to Scatter Plot. I have recently joined new project and they gave task to plot the simple best fit line to a scatterplot. If I try to execute my below code with my data I always face the following error message: plot(log(datatest$MEAN_intact_for),log( ... plot my graph it works as expected but the problem comes up if I try to add a abline command to have a best fit line.
asked Apr 14 morrisBson 3.2k points
1 vote
2 answers 27 views
Problem : I have recently started using R I am very new to R while working on R I am facing the below error whenever I try to create the graph on the ggplot: &ldquo;Error: ggplot2 doesn't know how to deal with data of class gg/ggplot&rdquo; I often face the error message if ... = Cost)) MyCars %>% ggplot() %>% geom_point(mapping = aes(x = Destination, y = Cost)) I need help in fixing above error.
asked Mar 30 morrisBson 3.2k points
1 vote
1 answer 125 views
Problem : Currently I am learning the r programming. I am unable to find the answer to below error but I am unable to do so. Currently I have one dataframe it has a column of strings. My task is to count the exact number of characters present in each entry of ... , with no default Error in match.fun(FUN): argument "FUN" is missing, with no default Can someone guide me in fixing above error?
asked Mar 30 morrisBson 3.2k points
1 vote
1 answer 359 views
Problem : I am very new to R programming. Currently I am learning R programming. I have below two tables I have asembled them via cbind(). My first Table table_alpha is as below: x1 col1_x1 col2_x1 A "1999 12 01 00:00" " 0.4" " 0" B "1999 12 02 00:00" " - ... = table_num[,1], fill=-9999) Please find below the error: &ldquo;Error in fix.by(by.x, x) : 'by' must specify uniquely valid columns&rdquo;.
asked Mar 28 morrisBson 3.2k points
1 vote
1 answer 154 views
Problem : Currently I am learning r. I have the data table "normal" which has the numeric as far as I know normalized values. If I try to execute the below command k <- kmeans(normal,center=3) Then I always face the below error: &ldquo;Error in do_one(nmeth) : NA/NaN/ ... call (arg 1)&rdquo; I am trying to fix it by researching on it but still unable to fix it. Can somebody help me in fixing it?
asked Mar 28 morrisBson 3.2k points