r - Removing a column whose header is blank from a dataframe -
i have following output r code:
trans_test11<- as.data.frame(t(test1)) trans_test11 (intercept) in_rec_count throughput cpu_usage memory_usage coef(lin_mod) 178.4455 0.000006450854 -0.0006819742 -1.223342 7.275717 cahce_size coef(lin_mod) -0.000000002349061
i want remove row.names coef(lin_mod) field. how can that?
the output should following: (intercept) in_rec_count throughput cpu_usage memory_usage 178.4455 0.000006450854 -0.0006819742 -1.223342 7.275717 cahce_size -0.000000002349061
i need because need load data in table in oracle db.
broadly speaking if intention delete column without name following:
# create column no name example data(mtcars) names(mtcars)[names(mtcars)=="cyl"] <- "" # remove column keep.cols <- names(mtcars) %in% c("") clean.crs <- mtcars [! keep.cols]
Comments
Post a Comment