Description Usage Arguments Examples
View source: R/nz_convert_df_to_dggs.R
Converts a dataframe with a DGGID/TID column and set of other columns (keys) to csv datasets to be able to import them into netezza. You can import csv files to the database using nz_import_dir_to_db function
1 | nz_convert_df_to_dggs(DGGID, TID, df, SaveIn, convertKeys = "all")
|
DGGID |
A dataframe column containing DGGIDs |
TID |
An integer or dataframe column |
df |
dataframe with the remaining keys. Remove DGGID/TID columns from it |
SaveIn |
The directory path to store data there. It must exist |
convertKeys |
Keys that are supposed to be converted. all means converting all the keys. NA means does not convert any keys.Use a vector of column names to only convert specific keys |
1 2 3 4 5 6 7 8 9 10 | ## Not run:
csv<-read.csv2("D:\\UserData\\Majid\\Downloads\\mpb-ev.csv",sep=",")
head(csv)
nz_convert_df_to_dggs(csv$DGGID,-1,csv,"E:\\home\\crobertson")
#importing to the db
DSN <- nz_init("NZSQLF","SPATIAL_SCHEMA")
nz_import_dir_to_db(DSN,"/home/crobertson/import/","mbpev","varchar(100)")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.