updatetable | R Documentation |
This function constructs an UPDATE statement from a mapping file or dataframe. It assumes that the first column of the data contains the key column and list of keys for the rows where the corresponding other columns have to be updated. It also assumes that the header for the data includes the column names. The function will generate one UPDATE statement for each row in the data.
updatetable(inputfile = NULL, tablename = NULL)
inputfile |
Dataframe OR path to the mapping file |
tablename |
Name of the SQL table |
A string that represents the constructed UPDATE statement(s)
input <- Data_Frame <- data.frame(Training = c("Strength", "Stamina",
"Other"), Pulse = c(100, 150, 120), Duration = c(60, 30, 45))
result <- updatetable(inputfile = input, tablename = "myTable")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.