I found a way to use cmd
to add a header record to a file:
@echo off
echo group id firstname lastname homephone > new.csv
type old.csv >> new.csv
I want to run this in R
using system()
, but I get a status code 127
error.
How can I get this command to run?