Displaying 4 results from an estimated 4 matches for "dtan".
Did you mean:
dan
2017 Dec 04
0
Dynamic reference, right-hand side of function
...t; $ V3: int 5
#> $ V4: num 7.4
#> $ V5: int 4
#> $ V6: num 2.2
#> $ V7: int 0
# This actually makes no change to dta, because a data frame is already
# a list of columns, and lists are just vectors that can hold different
# types of variables, so dta is already a kind of vector.
dtan <- as.numeric( dta )
str(dtan)
#> num [1:7] 1.1 3 5 7.4 4 2.2 0
# I suspect this is what you are trying to accomplish... but really,
# if we had an example of the data you are working with, we would
# already know.
################################
Some more explanations of reproducibility...
2017 Dec 05
3
Dynamic reference, right-hand side of function
...t; $ V3: int 5
#> $ V4: num 7.4
#> $ V5: int 4
#> $ V6: num 2.2
#> $ V7: int 0
# This actually makes no change to dta, because a data frame is already # a list of columns, and lists are just vectors that can hold different # types of variables, so dta is already a kind of vector.
dtan <- as.numeric( dta )
str(dtan)
#> num [1:7] 1.1 3 5 7.4 4 2.2 0
# I suspect this is what you are trying to accomplish... but really, # if we had an example of the data you are working with, we would # already know.
################################
Some more explanations of reproducibility...
2017 Dec 04
2
Dynamic reference, right-hand side of function
:-)
I don't insist on anything, I'm just struggling to learn a new language and partly a new way of thinking, and I really appreciate the corrections. I hope I someday will be able to handle lists in R as easy as I handle loops in Stata...
Thanks again!
Love
-----Ursprungligt meddelande-----
Fr?n: peter dalgaard [mailto:pdalgd at gmail.com]
Skickat: den 4 december 2017 23:09
Till:
2017 Dec 05
0
Dynamic reference, right-hand side of function
...> $ V5: int 4
> #> $ V6: num 2.2
> #> $ V7: int 0
>
> # This actually makes no change to dta, because a data frame is already #
> a list of columns, and lists are just vectors that can hold different #
> types of variables, so dta is already a kind of vector.
>
> dtan <- as.numeric( dta )
> str(dtan)
> #> num [1:7] 1.1 3 5 7.4 4 2.2 0
>
> # I suspect this is what you are trying to accomplish... but really, # if
> we had an example of the data you are working with, we would # already know.
> ################################
>
> Some...