I have noticed that if I combine two different data.frame
objects in a larger I try the data.frame
function by using data.fr
, the variable name is cut (i.e. the output of names (db)
See the code below.
I currently avoid the situation by combining variables using the data.table
function instead.
My question is this Is:
Does the data.frame
command can cut my variable names? This can be a simple question, and as.data.frame
on data.table
to convert the object back to data.frame
, but I am very curious why variable names are cut in the first place if I only use it Data.frame
function. I have tried to find an insight on this with the help of R and Google, but No success was found till I got R, and data.table
and data.frame
work (as I am a relatively new R user, More answers to help me understand better.
Thanks in advance!
& gt; A & lt; - data.frame (rnorm (100)) & gt; B & L; - data.frame (rnorm (100)) & gt; Name (A) & lt; - "This Israri Haralevvalbal Naam-Arth ()" & gt; Name (B) & lt; - "Escondary Harlavnavelbellnam-STD ()" & gt; DB & lt; - Data. Frame (A, B)> Name (DB) [1] "Iscierllegveerabnem.emann .." "Iscenterary Harlowarabalibanam.stead .." & gt; Name (C (A, B)) [1] "Iscierllegveerbellname-meaning ()" "Iscenterary Harlangvarabelabalname-STD ()" & gt; Db2 & lt; - Data Eligible (A, B) & gt; Name (DB2) [1] "EsciervilValvalelName-Earth ()" "Isisanari harariavalbelabnem-STD ()"
Variable names are not cut-off; Simply, they are making more "compatible" with the R environment. You can call it check.names = FALSE
to data. Frame ()
:
< Can override with code> a
No comments:
Post a Comment