Questions In R Programming

P
Irshad Mohammad Trainer

Posted on 6th July 2020|891,666 views

Subscript Out Of Bounds

What is subscript out of bound?

16 votes

P
Irshad Mohammad Trainer

Posted on 6th July 2020|891,666 views

$ Operator Is Invalid For Atomic Vectors

how to resolve the error $ operator is invalid for atomic vectors?

here is my code 

y<-c(1,2) 

names(y)<- c("marvel","adam") 

y$ed

But, why am i getting the error called $ operator is invalid for atomic vectors

 

16 votes

P
Irshad Mohammad Trainer

Posted on 6th July 2020|891,666 views

Clear Environment In R

How to clear the r environment?

16 votes

P
naseer mohammad Trainer

Posted on 6th July 2020|891,666 views

Could Not Find Function Ggplot

What is could not find function ggplot mean?

16 votes

P
naseer mohammad Trainer

Posted on 6th July 2020|891,666 views

Scale Color Manual

What changes should I do if my scale_color_manul() is not working?

see the below code the scale_color_manul() is not working

ggplot(df, aes(x=cond, y=yval)) + geom_point() + scale_color_manual(values=c("green", "yellow", "orange"))

 

16 votes

P
naseer mohammad Trainer

Posted on 6th July 2020|891,666 views

Unused Argument

Will R ignore the unused arguments?

in R is it possible to ignore the unused arguments, for example, I have a module add(x,y) which returns the sum of x and y but the code is.

add(x=10, y=30, c=5)

It returns an error.

 

16 votes

P
Satish santu Trainer

Posted on 6th July 2020|891,666 views

The Condition Has Length 1 And Only The First Element Will Be Used

How to resolve the error the condition has length > 1 and only the first element will be used?

 I created a program something like this

a<-function(x) {

if (x<0){

a<-0

return(a)

}else{

a<-2+a

return(a)

}

    }

Which is displaying an error called In if (t < 0) {: the condition has length > 1 and only the first element will be used

 

16 votes

P
Satish santu Trainer

Posted on 6th July 2020|891,666 views

Nas Introduced By Coercion

What is nas introduced by coercion in r?

16 votes

P
Satish santu Trainer

Posted on 6th July 2020|891,666 views

Error In Plot Window Need Finite Xlim Values

How to resolve the error in plot window need finite xlim values?

16 votes

P
Swetha Shetty Trainer

Posted on 6th July 2020|891,666 views

Error In Lm Fit X Y Offset Offset Singular Ok Singular Ok Na Nan
How to resolve the error Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...)? I have the following code > str(alla) 'data.frame': 11 obs. of 4 variables:  $ demo : chr "498.300.775" "500.297.033" "502.090.235" "503.170.618" ...  $ tot : chr "4.846.423" "4.891.934" "4.901.358" "4.906.313" ...  $ besch: num 69.8 70.3 69 68.6 68.6 68.4 68.4 69.2 70.1 71.1 ...  $ usd : num 1.37 1.47 1.39 1.33 1.39 … But it is an error called  > abline(lm(alle$demo~alla$tot)$coef) Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :    NA/NaN/Inf in 'y'
16 votes

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos