I am new to R and want to add a column to an existing data frame with values. For example, say this is my current table
Column 1 | Column 2 | Column 3
---------------------------------
Dog | Hound | Black
Doggo | Lab | Brown
I want to add another column such that the result would be this:
Column 1 | Column 2 | Column 3 | Column 4
---------------------------------------------
Dog | Hound | Black | Male
Dog | Hound | Black | Female
Doggo | Lab | Brown | Male
Doggo | Lab | Brown | Female
So it'd be almost like adding another dimension, but with a column. Any help would be appreciated!
Edit: found solution here https://stackoverflow.com/a/21911221/9882844
Second edit: Solution below in comment below is better actually