# Changing Variable Data Types

**URL:** <https://datashield.discourse.group/t/changing-variable-data-types/421>\
**Category:** Analyst Support\
**Created:** [14 July 2021 16:17 UTC](https://datashield.discourse.group/t/changing-variable-data-types/421 "2021-07-14T16:17:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbellamy](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@sbellamy](https://datashield.discourse.group/u/sbellamy)\
**Post date:** [14 July 2021 16:17 UTC](https://datashield.discourse.group/t/changing-variable-data-types/421/1 "2021-07-14T16:17:25Z")

</div>

Hello,

When I imported my data csv file all of the variables are set to “text” instead of ie. decimal. I attached a screenshot below for the age variable. How do I fix this?

 ![Screen Shot 2021-07-14 at 12.15.44 PM](https://global.discourse-cdn.com/free1/uploads/datashield1/original/1X/a5e61e94fc9d4ed4ec63efdac380768fb4b18b4c.png) ![Screen Shot 2021-07-14 at 12.15.59 PM](https://global.discourse-cdn.com/free1/uploads/datashield1/original/1X/3cd67d404aeca8b1406dff1343b470fed834fd32.png)

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [14 July 2021 17:30 UTC](https://datashield.discourse.group/t/changing-variable-data-types/421/2 "2021-07-14T17:30:00Z")

</div>

Hi,

Either make a view with appropriate value types, or import using the R CSV plugin, or import directly from R using the opalr::table\_save function. Datashield documentation is really out dated. I’ll make a cookbook for the import phase.

Regards Yannick
