Azure / Azure/Microsoft365R

load_dataframe set col_types

Open
#209 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
368
Forks
58
Avg merge
1h 42m
Merged PRs (30d)
4

Description

https://github.com/Azure/Microsoft365R/blame/57a9a88308c5a0e23704f45d6b68701eb4573680/R/ms_drive_item.R#L84

Hi,
thanks for your work. I have a question, i am troubling with the drv$laod_dataframe function.
How can i specify the col_types from my csv?
drv$load_dataframe("PATH", col_types=cols( etc. is not working. This argument is ignored.
Thanks a lot!

Contributor guide

Open the contributing guide

Research direction

Start in R/ms_drive_item.R around line 84 and trace how drv$load_dataframe handles the col_types argument. Reproduce the issue with a CSV and a cols(...) specification, then verify that the requested column types are honored.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.