zia
November 3, 2020, 7:59pm
1
I read the data as follows:
sdata3 <- read_csv("F:/Model Development/Machine learning/Random Forest_Survival/sdata3.csv")
Now when I type the following code, I always get the message that data not found. Any help?
data(sdata3, package = "survival")
Warning message:
In data(sdata3, package = "survival") :
data set ‘sdata3’ not found
FJCC
November 3, 2020, 8:15pm
2
The second step where you call data() should be unnecessary. The data should be in the sdata3 object that got the result of read_csv(). After running read_csv(), does
summary(sdata3)
show you a correct summary of the data?
zia
November 3, 2020, 8:17pm
3
Yes, the summary gives correct summary data. Then if I want to use the package "survival" how should I code that?
FJCC
November 3, 2020, 8:19pm
4
If you have already installed the package, you need to run
library(survival)
If it needs to be installed, use the menu Tools -> Install Packages or run
install.packages("survival")
and then run the library() command from above.
zia
November 3, 2020, 8:22pm
5
Ok. many thanks for your response.
system
Closed
November 24, 2020, 8:22pm
6
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.