?as.POSIXct for time-formatting. This function makes a structured list of
time data, where you specify an input time and format i.e.
as.POSIXct('2014-01-09 01:30:00', format='%Y-%m-%d %H:%M:%S')
On 1/10/14, 15:24 , "Santosh" wrote:
I don't think apropos or indexing would help. I am open to your
I agree with Don... focus on identifying the names of the columns and then use
column name indexing to extract the columns you want. You will probably want to
rename them to a standard set of names once you have gone to all this
trouble... just assign the new vector of names to the names functio
At the risk of being annoying ...
Your original question was,
"Is there a way to dynamically include columns in a dataframe?"
The answer is yes. One way, and I think the simplest, is to calculate the
names of the columns you want to keep, and then use an expression like I
suggested, that is, one
I don't think apropos or indexing would help. I am open to your
suggestions/tips.
I usually get multiple versions of a dataset (even with the same column
names). In the source data, I occasionally notice inconsistencies...
formatting issues, column naming issues etc..
As shown In the "a1" example
Don's response seems apropos to me. Do you understanding indexing,
i.e. the "[" operator? If not, you should read An Introduction to R or
other tutorial (there are many good ones on the web). If that is not
the issue, you need to explain more clearly why his answer does not
suffice.
Cheers,
Bert
5 matches
Mail list logo