-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathData Functions
More file actions
20 lines (19 loc) · 949 Bytes
/
Data Functions
File metadata and controls
20 lines (19 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
>> Useful functions for working with data objects
length(object) Number of elements/components.
dim(object) Dimensions of an object.
str(object) Structure of an object.
class(object) Class or type of an object.
mode(object) How an object is stored.
names(object) Names of components in an object.
c(object, object,...) Combines objects into a vector.
cbind(object, object, ...) Combines objects as columns.
rbind(object, object, ...) Combines objects as rows.
object Prints the object.
head(object) Lists the first part of the object.
tail(object) Lists the last part of the object.
ls() Lists current objects.
rm(object, object, ...) Deletes one or more objects. The statement
rm(list = ls()) will remove most objects
from the working environment.
newobject <- edit(object) Edits object and saves as newobject.
fix(object) Edits in place.