Learn R Programming

bigml (version 0.1.2)

createSource: Creating BigML Sources

Description

Creating BigML Sources

Usage

createSource(file_name, name = basename(file_name), header = TRUE, locale = "en-US", missing_tokens = c("NA"), quote = "\"", separator = ",", trim = TRUE, flatten = TRUE, ...)

Arguments

file_name
A string giving a file location
name
A string specifying the name of the source
header
logical; TRUE if data contains name information, false otherwise.
locale
A string giving the locale (defaults to en-US).
missing_tokens
A vector of character strings that will be used to specify missing values in a file name.
quote
A string specifying the quoting character used.
separator
the separator character used when a file name is specified.
trim
A logical value indicating whether white space should be trimmed.
flatten
A logical value indicating whether or not the returned field objects should be "flattened" into a data frame.
...
Arbitrary named arguments that are passed on to formEncodeURL in order to create form-encoded URL options.

Value

category
numeric
code
numeric
content_type
character
created
character
credits
numeric
description
character
fields
data.frame (or list if flatten=FALSE)
file_name
character
md5
character
name
character
number_of_datasets
numeric
number_of_models
numeric
number_of_predictions
numeric
private
logical
resource
character
size
numeric
source_parser
list
status
list
tags
AsIs
type
numeric
updated
character

Details

createSource

References

https://bigml.com/developers/sources

See Also

Other source methods: getSource; listSources; quickSource

Examples

Run this code
## Not run: 
# # simple example
# m1 = createSource("/tmp/iris.csv")
# 
# ## End(Not run)

Run the code above in your browser using DataLab