Vector from a dataframe in R

how to extract a vector from a DataFrame in R ??
can you please explain me using examples