Helpfulbox Now Offers Free POS Software for restaurants, kiosk, and any other retails business completely free used windows cashier system or as full blown POS. You will able to print to kitchen, display orders on the kitchen screen, manage inventory, employee, report, customer loyalty offers, employee management, delivery address track and much more, al for free.

give some examples of “lapply”.

By: Guest
Date: Fri-Jun-17-2016-
Response
1

There are some functions available in R

which implement looping in a easy way. Those are lapply,sapply,tapply,apply and

mapply.

    

lapply - loop over the list of objects and evaluate a function on each

element.

    

Example:

>x<-list(a=1:4,b=2:9)

>

lapply(x,mean)

$a

[1]

2.5

$b

[1]

5.5

 

Example:

>

x<-list(a=matrix(1:6,3,2),b=matrix(7:12,3,2))

>

x

$a

     [,1] [,2]

[1,]    1   

4

[2,]    2   

5

[3,]    3   

6

$b

     [,1] [,2]

[1,]    7  

10

[2,]    8   11

[3,]    9  

12

 

>

lapply(x,function(elt) elt[,1])   # to

extract the first column of each matrix in a list 'x'

$a

[1]

1 2 3

$b

[1]

7 8 9

.

Date: Sat-Jun-18-2016
Response
What is 1 + 100



Helpfulbox Now Offers Free POS Software

for restaurants, kiosk, and any other retails business completely free. It can be used as windows cashier system or as full blown POS. You will able to print to kitchen, display orders on the kitchen screen, manage inventory, employee, report, customer loyalty offers, employee management, delivery address track and much more, all for free.

Just Updated::