-
Notifications
You must be signed in to change notification settings - Fork 1
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
vdat_csv_format #7
base: main
Are you sure you want to change the base?
Conversation
…into vdat-format
Thanks for taking a stab at a new idea! I think this would be a good fit for a function that
|
Oh, and with regard to |
Hi Mike,
I'm finally out of a big writing phase and will be doing more data stuff in the coming weeks. I've made a small function that removes the top rows of the csv
vdat_to_csv()
creates and then assigns the correct column names given the selected event field. You can also make it return the top rows giving you the event field data frame. Let me know what you think/if this is of interest. Should note that right now I have it hardcoded for the number of rows to select (not ideal, I know)...not sure if that will be appropriate given different .vrl files depending on the receiver (I did this based of .vrl files from VR2W).I didn't add this functionality/not sure how light you want the package but could make this function use
{data.table}
to increase speed and could have it wrap aroundfread()
orread.csv()
ect. so that the user doesn't have to tell either of those functions to not read in the header. Might be something to consider if detection logs are big. I played with the function using a small csv.If wanting to keep light we could shunt this to a supplementary package but not sure if that is really necessary...it really depends on your vision with the package.
Cheers,
Ben