The function is created but when I execute the function it chunks through everything (looks like its working) but never creates the new data frame. Heres how I have been executing the function:
extract_function ("Dataset.csv")
Why isn't it creating my new data frame once I put it into the function?
How can I name the new data frame based on the input from csv? (would like the new dataframe to have the same name as the csv it extracted from)
for the first question, you need to add the line return(df) or just df.
when you df <- extract_function("Dataset.csv") , the df will contain your data.frame.
for the second question, instead of return, you would need to assign(x,df) .
In general x is the name you want to give to df.
By default this will create x in the global environment.
Look at the documentation to modify this.