Learn R Programming

rpymat (version 0.1.7)

py_list: List in 'Python'

Description

List in 'Python'

Usage

py_list(..., convert = FALSE)

Value

List instance, or an R vector if converted

Arguments

...

passing to list ('Python')

convert

whether to convert the results back into R; default is no

Examples

Run this code


if(interactive() && dir.exists(env_path())) {

  py_list(list(1,2,3))
  py_list(c(1,2,3))

  py_list(array(1:9, c(3,3)))
  py_list(list(list(1:3), letters[1:3]))

}

Run the code above in your browser using DataLab