The readxl package makes it easy to get data out of Excel and into R. Compared to many of the existing packages (e.g. gdata, xlsx, xlsReadWrite) readxl has 如何在mt5上进行外汇交易 no external dependencies, so it’s easy to install and use on all operating systems. It is designed to work with tabular data.

readxl supports both the legacy .xls format and the modern xml-based .xlsx format. The libxls C library is used to support .xls , which abstracts away many of the complexities of the underlying binary format. To parse .xlsx , we use the RapidXML C++ library.


The easiest way to install the latest released version from CRAN is to install the whole 如何在mt5上进行外汇交易 tidyverse.

NOTE: you will still need to load readxl explicitly, because it is not a core tidyverse package loaded via library(tidyverse) .

Alternatively, install just readxl from CRAN:

Or install the development version from GitHub:


You can see how to 如何在mt5上进行外汇交易 read data with readxl in the data import cheatsheet, which also covers similar functionality in the related packages readr and googlesheets4.


readxl includes several example files, which we use throughout the documentation. Use the helper readxl_example() with no arguments to list them or call it with an example filename to get the path.

read_excel() reads both xls and xlsx files and detects the format from the extension.

List the sheet names 如何在mt5上进行外汇交易 with excel_sheets() .

Specify a worksheet by name or number.

There are various ways to control which cells are read. You can even specify the sheet here, if providing an Excel-style cell range.

If NA s are represented by something other 如何在mt5上进行外汇交易 than blank cells, set the na argument.

If you are new to the tidyverse conventions for data import, you may want to consult the data import chapter in R for Data Science. readxl will become increasingly consistent with other packages, such as readr.


Broad topics are explained in these articles:

We also have some focused articles that address specific aggravations presented by the world’s spreadsheets:


No external dependency on, e.g., Java or Perl.

Re-encodes non-ASCII characters to UTF-8.

Loads datetimes into POSIXct columns. Both Windows (1900) and Mac (1904) date specifications are processed correctly.

Discovers the minimal data rectangle and returns that, by default. User can exert more control with range , skip , and n_max .

Column names and types are determined from 如何在mt5上进行外汇交易 the data in the sheet, by default. User can also 如何在mt5上进行外汇交易 supply via col_names and col_types and control name repair via .name_repair .

Returns a tibble, i.e. a data frame with an additional tbl_df class. Among other things, this provide nicer printing.

Other relevant packages

Here are some other packages with functionality that is complementary to readxl and that also avoid a Java dependency.

Writing Excel files: The example files datasets.xlsx and datasets.xls were created with the help of openxlsx (and Excel). openxlsx provides “a high level interface to writing, styling 如何在mt5上进行外汇交易 and editing worksheets”.

writexl is a new option in this space, first released on CRAN in August 2017. It’s a portable and lightweight way to export a data frame to xlsx, based on libxlsxwriter. It is much more minimalistic than 如何在mt5上进行外汇交易 openxlsx, but on simple examples, appears to be about twice as fast and to write smaller files.

Non-tabular data and formatting: tidyxl is focused on importing awkward and non-tabular data from Excel. It also “exposes cell content, position and formatting in a tidy structure for further manipulation”.


最低保证金费用 1

Interactive Brokers ®, IB SM , InteractiveBrokers.com ®, Interactive Analytics ®, IB Options Analytics SM , IB SmartRouting SM , PortfolioAnalyst ®, IB Trader Workstation SM 和One World, One Account SM 是盈透证券有限公司(Interactive Brokers LLC)的服务标示和/或注册商标。任何声明的证明文件和统计数据均将根据要求提供。显示的交易代码仅作演示计,不旨在构成任何推荐。

Python for Excel and Google Sheets

xlwings is open source and free, comes preinstalled with Anaconda and WinPython, and works on Windows and macOS.

Automate Excel 如何在mt5上进行外汇交易 如何在mt5上进行外汇交易 via Python scripts or Jupyter notebooks, call Python from Excel via macros, and write user-defined functions (UDFs are Windows-only).

Our paid plans give you direct support and additional features including 1-click 如何在mt5上进行外汇交易 installers, template-based reporting, and the ability to install Python on a Linux server/cloud with support for Google Sheets, Excel on the web, and Desktop Excel.

Responsive image

What Our Users Say

We use 如何在mt5上进行外汇交易 如何在mt5上进行外汇交易 xlwings to automate the data feeds of one of our analytical spreadsheet tools, which saves us 1–2 days of tedious manual work every month. Data sources include REST APIs, CSV files via SFTP, and web scraping.

Jolanda Stadelmann , Founding Partner, zCapital

xlwings has saved me hundreds of hours in my current role. I replaced the VBA reporting with it and instead of taking 20–30 hours a month I can get the reports run in 6–7 hours.

Adam Wood, CFA , Analyst at a large U.S. custody bank

python for excel book cover

Get the O'Reilly Book

The book introduces you to:
Python, pandas, OpenPyXL, XlsxWriter, pyxlsb, xlrd, 如何在mt5上进行外汇交易 xlwt, xlutils and xlwings as well as Jupyter notebooks and 如何在mt5上进行外汇交易 Visual Studio Code. Available in English, French, Trad. Chinese, Simpl. Chinese, 如何在mt5上进行外汇交易 Korean, Serbian, Polish, and German (Q3 2022).

You're in good company





columbia business


european commission


Leverage Python's scientific stack for interactive 如何在mt5上进行外汇交易 data analysis using Jupyter Notebooks, NumPy, Pandas, scikit-learn etc. Or use xlwings to automate Excel reports with Python (Windows & Mac).


Write Excel tools with Python instead of VBA and call your code directly from within Excel, e.g. via a button on the sheet. This also works great for prototyping web apps (Windows & Mac).


Write (array) UDFs in a breeze by taking advantage of all the functionality already available in libraries like NumPy 如何在mt5上进行外汇交易 and Pandas. Since v0.10, dynamic array formulas are supported (Windows only).


Expose your workbooks via REST API and access them from other computers in your corporate intranet or over the web. See the REST API docs.

PotPlayer在线字幕实时翻译 百度翻译插件


第二步:获取 appId 和 密钥
2、我的服务下面一点,如果有“此服务已停用 开启(这两个字蓝色)”的提示,点击“开启”
3、拉到底部,会有“申请信息”,里面包含 “APP ID” 和 “密钥”
4、解压下载到的翻译插件,有两个文件,用记事本等文本编辑器打开SubtitleTranslate - baidu.如何在mt5上进行外汇交易 as
5、大约17行位置,string appId = "XXXXXXXXXXXXXXXXXXX";//appid,把一长串的X,替换为刚才获取到的APP ID,主要不要删除到英文的引号
6、大约18行位置,string toKey = "XXXXXXXXXXXXXXXXXXX";//密钥,把一长串的X,替换为刚才获取到的密钥,主要不要删除到英文的引号

1、打开PotPlayer播放器的安装路径,一般是C:Program FilesPotPlayer

3、把将SubtitleTranslate - baidu.as、SubtitleTranslate - baidu.ico这两个文件放到这里

2、右键点击视频->字幕->在线字幕翻译->Bai Du translate