Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I don't understand why I am having the Error(function(classes, fdef, mtable): unable to find an inherited method for function 'Summary' for signature '"prcomp"'.
I have checked through my code and the packages and everything looks very much okay.
One needs to use lower case summary. The code has capital S in Summary
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 months ago.
Improve this question
function "%n%" not working even though I've loaded package dplyr.
mutate(category = ifelse(Year.Last.Used %n% c("2015", "2016"),"baseline","treatment"))
Caused by error in Year.Last.Used %n% c("2015", "2016"):
! could not find function "%n%"
How to fix the error?
I think that you probably want to use %in%..
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
install.packages(qwraps2)
Error in install.packages : object 'qwraps2' not found
This package wont install, I get the above error. Can anyone help?
Try install.packages("qwraps2") instead.
it will not work without the quotes around package name
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I am doing an exercise to create a function. One of the questions is:
"We can estimate the cumulative risk of an certain event using the
exponential formula
1-exp(-1/10000*t) where t is the time to the event. Create a function ans(t), which returns the risk at time t.
and I am using this command:
function(t){ans(t)<-1-exp(-1/10000*t)return(ans(t))}
but it is giving wrong answer. Can someone help me to understand this please?
The proper format to define a function is this:
ans<-function(t){
answer<-1-exp(-1/10000*t)
return(answer)
}
ans(1)
#[1] 9.9995e-05
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I have the following code:
unlink(dir, recursive = true)
And I am getting this error message:
* object 'true' not found
What is the cause of the error message?
Boolean constants are in all caps - use TRUE/FALSE. Other languages usually define them as true/false. So the correct code would be:
unlink(dir, recursive = TRUE)
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 years ago.
Improve this question
I am new to r and am taking a basic course in which the identical code below is run without issue but when I try to run it I get the error below. Any help in resolving this would be much appreciated.
polling <- read.csv(file="C:/Users/njm3546/Desktop/xxx/PollingData.csv", header=TRUE, sep=",")
Summary(polling)
Error Message
unable to find an inherited method for function ‘Summary’ for signature ‘"data.frame"’
R is case sensitive and the function you need is summary (lowercase s).