NULL is coming during running a code

Hi, I am running the following code -

outcome <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
str(outcome)
complete.cases(outcome)
x <- outcome[complete.cases(outcome), ]
str(x)
summary(outcome)
head(outcome)
ncol(outcome)
nrow(outcome)
names(outcome)
outcome[, 11]
outcome[, 11] <- as.numeric(outcome[, 11])
hist(outcome[, 11])

source("best.R")
best("SC", "heart attack")

The results are -

best("SC", "heart attack")
NULL

NULL is coming only rather than resulting as best hospital so can anyone help me here?/

Thanks

We don't know what is in your csv file, nor do we know what the best() function is as we don't have the best.R file.

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.