vkApply: Apply a method over a vector of objects

Description Usage Arguments Examples

View source: R/utils.R

Description

Returns a data frame of the same number of rows as length of 'objs', each element of which is the result of applying 'method' to the corresponding element of 'objs'

Usage

1
vkApply(objs, method)

Arguments

objs

A vector of objects

method

The function to be applied to each element of 'objs'

Examples

1
2
3
4
5
## Not run: 
 users <- vkApply(c("",1234567), function(user) getUsers(user, fields="sex"))
 countries <- vkApply(c(2,5122182,1906578), getCountryByCityId)

## End(Not run)

Dementiy/vkR documentation built on Oct. 1, 2020, 9:48 a.m.