Is there a way to print text and variable contents on the same line? For example,
wd <- getwd()
print("Current working dir: ", wd)
I couldn't find anything about the syntax that would allow me to do this.
How do I use the new line character in R?
myStringVariable <- "Very Nice ! I like";
myStringVariabel <- paste(myStringVariable, "\n", sep="");
The above code DOESN'T work
P.S There's significant challenges when googling this kind of stuff …
I am creating a dataframe using this code:
df <- data.frame(dbGetQuery(con, paste('select * from test')))
Which results in this:
UID BuildingCode AccessTime
1 123456 BUILD-1 2014-06-16 07:00:00
2 364952 BUILD-2 2014-06-15 08:00:00
3 95865 BUILD-1 2014-06-06 09:50:00
I am then trying to …