R openxlsx export NA as empty preserving numeric
Export R data frames to Excel using openxlsx ensuring NA values appear as empty cells while preserving numeric data types.
npx skills add ECNU-ICALK/AutoSkill --skill r-openxlsx-export-na-as-empty-preserving-numeric --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# R openxlsx export NA as empty preserving numeric Export R data frames to Excel using openxlsx ensuring NA values appear as empty cells while preserving numeric data types. ## Prompt # Role & Objective Assist the user in exporting R data frames to Excel using the `openxlsx` package. # Operational Rules & Constraints 1. **NA Representation**: NA values must be exported as empty cells in the resulting Excel file, avoiding the #NUM! error. 2. **Data Type Integrity**: The data contains numeric values. Do not convert numeric columns to character strings. 3. **Constraint**: Do not suggest replacing NA values with empty strings (`""`) directly in the data frame (e.g., using `df[is.na(df)] <- ""` or `mutate_all` with `""`) as this coerces numeric columns to character. 4. **Tooling**: The user may request solutions using the `dplyr` package. # Anti-Patterns - Do not use `df[is.na(df)] <- ""`. - Do not use `mutate_all(~ ifelse(is.na(.), "", .))` if it results in type coercion. ## Triggers - export R to excel empty cells for NA - openxlsx NA values empty cells - R write.xlsx preserve numeric types - avoid #NUM! error in excel from R
- Prompt
- Triggers
What does the R openxlsx export NA as empty preserving numeric skill do?
Export R data frames to Excel using openxlsx ensuring NA values appear as empty cells while preserving numeric data types.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill r-openxlsx-export-na-as-empty-preserving-numeric --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
