[R] Fill down a new column in data frame with a number
Marcelo Mariano Silva
m@rcelom@ri@no@ilv@ @ending from gm@il@com
Thu May 10 15:04:10 CEST 2018
Hi,
I am a begginer in R programming.
I am traying to create a a column in my data frame filled down with a
number.
> df$newcolumn <- number
How can I do it? I am considering use rep() but in this case it is
necessary know the number of rows in each data base that I have and I would
like to do it in a faster ( and more elegant) way.
TKs
[[alternative HTML version deleted]]
More information about the R-help
mailing list