R print & cat Functions (Examples) | Return Character String, Data Frame & Numeric Value to RStudio

preview_player
Показать описание
How to apply the print and cat functions in the R programming language. More details:

my_string <- "This is \nan example string" # Create example string

print(my_string) # Apply print to character string

cat(my_string) # Apply cat to character string

x2 = 3)

print(data) # Apply print to data frame

data # Print without print function

my_value <- 8235.675324 # Create example value

my_value # Default printing

print(my_value, digits = 5) # Changing number of digits

Follow me on Social Media:
Рекомендации по теме
Комментарии
Автор

Thank you so much for your clear and short explanation about the print and cat function, and it is very helpful!

hangliu
Автор

Step by step and effective, this is my your tutorials are among the best out there!! 😃😃😃

agsoutas
Автор

Is there a website like cses, where i can submit R codes for solving exercises??

isaacfritsch
Автор

Do you have any video avout spintf() ?

Rsingh