Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (490)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
Data Structure - Named Vector
What is a named vector?
✍: FYIcenter.com
A named vector is a special vector where each member
has a unique name.
A name vector is an associated array in many other programming language.
1. Create a named vector object with the name() function -
> v = c("Apple", "Banana", "Orange")
> v
[1] "Apple" "Banana" "Orange"
> names(f) = c("First", "Second", "Third")
> v
First Second Third
"Apple" "Banana" "Orange"
2. Get members by index and by name -
> v["Second"] Second "Banana" > f[2] Second "Banana"
2023-06-11, ∼2073🔥, 0💬
Popular Posts:
What port numbers are used for data connections in passive mode in FileZilla Server? Can I limit the...
Why I am getting an error message dialog box when I try to save my PowerPoint presentation with some...
How to troubleshoot Fitbit device sync issue? My Fitbit device is connected to my Windows computer, ...
How to login to Facebook with a Web browser? If you want to login to Facebook with a Web browser, yo...
How to download publication files from libgen.rs? libgen.rs or gen.lib.rus.ec is the most robust Web...