Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chartgerink authored Feb 5, 2025
1 parent 8ef46cc commit 29c9e08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ pak::pak("epiverse-trace/safeframe")
library(safeframe)

# Create a safeframe object
x <- make_safeframe(cars, speed = 'Miles per hour', dist = 'Distance in miles')
x <- make_safeframe(cars, mph = "speed", distance = "dist")

# Validate the data are of a specific type
validate_safeframe(x,
speed = 'numeric', # speed should be numeric
mph = 'numeric', # speed should be numeric
# type() is a helper function of related classes
dist = type('numeric') # dist should be numeric, integer
distance = type('numeric') # dist should be numeric, integer
)
```

Expand Down

0 comments on commit 29c9e08

Please sign in to comment.