# Read markups into R with read.markups.fcsv.R

**URL:** <https://discourse.slicer.org/t/read-markups-into-r-with-read-markups-fcsv-r/19914>\
**Category:** Support\
**Tags:** markups\
**Created:** [September 29, 2021, 2:15pm UTC](https://discourse.slicer.org/t/read-markups-into-r-with-read-markups-fcsv-r/19914 "2021-09-29T14:15:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anromero](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anromero/32/10120_2.png) [@anromero](https://discourse.slicer.org/u/anromero)\
**Post date:** [September 29, 2021, 2:15pm UTC](https://discourse.slicer.org/t/read-markups-into-r-with-read-markups-fcsv-r/19914/1 "2021-09-29T14:15:41Z")

</div>

I’d like to read a folder of fixed landmarks into R for asymmetry analysis. I have two trials for each specimen. Should I put files from both trials into the same folder for import into R (e.g., 24LM\_1 and 24LM\_2 and so on in the same folder)? I’m having trouble figuring out how to import all the landmark files at the same time using the read.markups.fcsv.R function. I’ve only been able to successfully import one landmark file at a time.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 29, 2021, 2:26pm UTC](https://discourse.slicer.org/t/read-markups-into-r-with-read-markups-fcsv-r/19914/2 "2021-09-29T14:26:24Z")

</div>

You need to loop over your files.  
Or use the $LM object returned by the parser function in Slicermorph R

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 29, 2021, 4:11pm UTC](https://discourse.slicer.org/t/read-markups-into-r-with-read-markups-fcsv-r/19914/3 "2021-09-29T16:11:56Z")

</div>

You can find the relevant tutorial here:

> **[Tutorials/GPA\_3 at main · SlicerMorph/Tutorials](https://github.com/SlicerMorph/Tutorials/tree/main/GPA_3)**
>
> main/GPA\_3

---

<div class="post-metadata">

**Author:** ![anromero](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anromero/32/10120_2.png) [@anromero](https://discourse.slicer.org/u/anromero)\
**Post date:** [September 29, 2021, 5:16pm UTC](https://discourse.slicer.org/t/read-markups-into-r-with-read-markups-fcsv-r/19914/4 "2021-09-29T17:16:26Z")

</div>

Okay, great! I’ll look at the tutorial and try it out. Thanks!
