I am using CAT command in R to get following output.
The Output in knitted PDF file is different to what I get in console. How can I get similar output in PDF as I get in Console?
In PDF Output, the print question and code output is getting intermingled.
header <- blue$italic
cat(header("\nAre there any Missing Values ? \n"))
anyNA(cars_df)
cat(header("\nHow many Missing Values are there ? \n"))
sum(is.na(cars_df))
cat(header("\nWhich Variables have got Missing Values ? \n"))
colSums(is.na(cars_df))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.