File: dict.Rd

package info (click to toggle)
r-cran-reticulate 1.41.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,088 kB
  • sloc: cpp: 5,154; python: 620; sh: 13; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 1,059 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/python.R
\name{dict}
\alias{dict}
\alias{py_dict}
\title{Create Python dictionary}
\usage{
dict(..., convert = FALSE)

py_dict(keys, values, convert = FALSE)
}
\arguments{
\item{...}{Name/value pairs for dictionary (or a single named list to be
converted to a dictionary).}

\item{convert}{\code{TRUE} to automatically convert Python objects to their R
equivalent. If you pass \code{FALSE} you can do manual conversion using the
\code{\link[=py_to_r]{py_to_r()}} function.}

\item{keys}{Keys to dictionary (can be Python objects)}

\item{values}{Values for dictionary}
}
\value{
A Python dictionary
}
\description{
Create a Python dictionary object, including a dictionary whose keys are
other Python objects rather than character vectors.
}
\note{
The returned dictionary will not automatically convert its elements
from Python to R. You can do manual conversion with the \code{\link[=py_to_r]{py_to_r()}}
function or pass \code{convert = TRUE} to request automatic conversion.
}