How do you name the elements of a vector (turning it into a dictionary-like structure?)
Answer
we can name the elements of the vector x with the command, names(x)=c( "e" , "pi" , "sqrt2" , "zipcode" )
Tags
#bayes #programming #r #statistics
Question
How do you name the elements of a vector (turning it into a dictionary-like structure?)
Answer
?
Tags
#bayes #programming #r #statistics
Question
How do you name the elements of a vector (turning it into a dictionary-like structure?)
Answer
we can name the elements of the vector x with the command, names(x)=c( "e" , "pi" , "sqrt2" , "zipcode" )
If you want to change selection, open original toplevel document below and click on "Move attachment"
Parent (intermediate) annotation
Open it The elements of a vector can also, optionally, have names.Forexample,wecan name the elements of the vector x with the command, names(x)=c( "e" , "pi" , "sqrt2" , "zipcode" ) . Notice that the names are in quotes. Then we get at the components of the vector by specifying their names in square brackets. For example, x[c("pi","zipcode")] re
Original toplevel document (pdf)
owner: shihabdider - (no access) - Doing Bayesian Data Analysis, p47
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.