Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

short series of videos on CSVY (by me) #37

Open
aammd opened this issue Feb 24, 2017 · 8 comments
Open

short series of videos on CSVY (by me) #37

aammd opened this issue Feb 24, 2017 · 8 comments

Comments

@aammd
Copy link
Member

aammd commented Feb 24, 2017

hello @BIOL548O/2017_students ,

I have made a few short videos talking about how to create CSVY data. They're not mandatory, but you might find them useful if you have chosen that metadata format.

https://www.youtube.com/playlist?list=PLlsfgzA47vkgvwpNSZp7k93kKVhJygN_u

@jas-wong
Copy link

Hey @aammd

In case it wasn't on purpose, just thought I'd let you know that the video about "reading csvy with comments" was uploaded twice to the playlist. And no video about writing csvy.

@aammd
Copy link
Member Author

aammd commented Feb 27, 2017

@jas-wong oh no! that was definitely my mistake!

@aammd
Copy link
Member Author

aammd commented Feb 27, 2017

Wait no this is the video about CSVY I called it "writing yaml" by mistake (the Y in CSVY stands for YAML, because that is the format the metadata is written in)

@jas-wong
Copy link

@aammd
Got it, thanks!

@LinneaSandell
Copy link

LinneaSandell commented Feb 27, 2017

This was very helpful @aammd. I have an issue! When I try to read in my csvy file to edit it manually, R gives error "The file is too large to open in the source editor". I imagine that I can edit the file in a different text editor. However, I was wondering if there is a way I can write a YAML in R and later attach it to the csv to produce my csvy?

@aammd
Copy link
Member Author

aammd commented Feb 28, 2017

@LinneaSandell this is an interesting problem. In your case, I would probably write the metadata in its own text file (FILENAME_metadata.yaml or something) and then either a) leave it that way (two files) or b) stick one on top of another, with R or a shell script

@aammd
Copy link
Member Author

aammd commented Feb 28, 2017

@LinneaSandell something like this (readr makes this easy):

library(readr)

one <- read_lines("YAMLFILE.yaml")
two <- read_lines("DATAFILE.csv")

write_lines(c(one, two), "COMBINEDFILE.csvy")

@rstorlund
Copy link

@aammd I can't read in my data package using datapkg_read... I get the error message: "Error in read_tokens_(data, tokenizer, col_specs, col_names, locale_, :
expecting a string"
and I can't seem to find any solutions. Any idea what I'm doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants