Skip to content

Feature Request: Something like Googlescripts' .setNumberFormat() #296

@benyamindsmith

Description

@benyamindsmith

First off, thank Jenny an all other contributors for putting so much work in such a useful R package!

I am working with using googlesheets4 for some automations but I have noticed that there are challenges with being able to format data in a human readable format that is also compatible with sheets (i.e. without a leading apostrophe '). After playing around with recording some macros on Google Sheets/App Scripts I discovered the setNumberFormat() method.

E.g.

mySheet.getRange('BE:BE').setNumberFormat('m"/"d"/"yy')

I wonder if it would be possible to have a function like gs4_formula() that would be able to format numbers in a desired format.

E.g for dates:

(excuse the messy code)

df$dates_formatted <- gs4_set_number_format(df$dates,"m/d/yy")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions