Error: unexpected symbol for stats project

Tried to insert the code below but it is saying that theres error with the symbol, pretty new into this for college so plz help if possible.
companies$logAssets <- log(companies$assets)cat("Sales in Millions\n"); summary(companies$salesMillions)cat("Profit in Millions\n"); summary(companies$profitsMillions)cat("Number of employees\n"); summary(companies$numEmploy)

It is hard to say what is wrong with your code since it may have copied in to your post with incorrect formatting. Does this work for you?

companies$logAssets <- log(companies$assets)
cat("Sales in Millions\n") 
cat("Profit in Millions\n") 
cat("Number of employees\n") 
1 Like

Yes it did, I apparently copied the code incorrectly but thank you!

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.