I am trying to initialize a data frame like this as I would like to have an empty data frame with two character vectors as columns
out_frame<-data.frame(Hospi
The data.frame function takes the following argument "stringsAsFactors". By default it is set to TRUE. Set it to FALSE to keep character from being cast to factors.
out_frame <- data.frame(Hospital = character(), State = character(), stringsAsFactors = FALSE) str(out_frame)